Skip to content

Commit ffe817c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Publish the new ingested timeseries metrics for usage attribution (#1365)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent ea1c27b commit ffe817c

File tree

5 files changed

+55
-10
lines changed

5 files changed

+55
-10
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.4",
7-
"regenerated": "2023-03-24 15:23:44.382927",
8-
"spec_repo_commit": "cdf4007e"
7+
"regenerated": "2023-03-24 16:41:58.517780",
8+
"spec_repo_commit": "9bdb5ee6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-03-24 15:23:44.399386",
13-
"spec_repo_commit": "cdf4007e"
12+
"regenerated": "2023-03-24 16:41:58.529517",
13+
"spec_repo_commit": "9bdb5ee6"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3655,6 +3655,7 @@ components:
36553655
- container_usage
36563656
- cspm_containers_usage
36573657
- cspm_hosts_usage
3658+
- custom_ingested_timeseries_usage
36583659
- custom_timeseries_usage
36593660
- cws_containers_usage
36603661
- cws_hosts_usage
@@ -3686,6 +3687,7 @@ components:
36863687
- CONTAINER_USAGE
36873688
- CSPM_CONTAINERS_USAGE
36883689
- CSPM_HOSTS_USAGE
3690+
- CUSTOM_INGESTED_TIMESERIES_USAGE
36893691
- CUSTOM_TIMESERIES_USAGE
36903692
- CWS_CONTAINERS_USAGE
36913693
- CWS_HOSTS_USAGE
@@ -7123,6 +7125,8 @@ components:
71237125
- cspm_hosts_usage
71247126
- custom_timeseries_usage
71257127
- custom_timeseries_percentage
7128+
- custom_ingested_timeseries_usage
7129+
- custom_ingested_timeseries_percentage
71267130
- cws_containers_percentage
71277131
- cws_containers_usage
71287132
- cws_hosts_percentage
@@ -7184,6 +7188,8 @@ components:
71847188
- CSPM_HOSTS_USAGE
71857189
- CUSTOM_TIMESERIES_USAGE
71867190
- CUSTOM_TIMESERIES_PERCENTAGE
7191+
- CUSTOM_INGESTED_TIMESERIES_USAGE
7192+
- CUSTOM_INGESTED_TIMESERIES_PERCENTAGE
71877193
- CWS_CONTAINERS_PERCENTAGE
71887194
- CWS_CONTAINERS_USAGE
71897195
- CWS_HOSTS_PERCENTAGE
@@ -7308,12 +7314,20 @@ components:
73087314
description: The CSPM host usage by tag(s).
73097315
format: double
73107316
type: number
7317+
custom_ingested_timeseries_percentage:
7318+
description: The percentage of ingested custom metrics usage by tag(s).
7319+
format: double
7320+
type: number
7321+
custom_ingested_timeseries_usage:
7322+
description: The ingested custom metrics usage by tag(s).
7323+
format: double
7324+
type: number
73117325
custom_timeseries_percentage:
7312-
description: The percentage of custom metrics usage by tag(s).
7326+
description: The percentage of indexed custom metrics usage by tag(s).
73137327
format: double
73147328
type: number
73157329
custom_timeseries_usage:
7316-
description: The custom metrics usage by tag(s).
7330+
description: The indexed custom metrics usage by tag(s).
73177331
format: double
73187332
type: number
73197333
cws_containers_percentage:

src/datadog_api_client/v1/model/hourly_usage_attribution_usage_type.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class HourlyUsageAttributionUsageType(ModelSimple):
1616
"""
1717
Supported products for hourly usage attribution requests.
1818
19-
:param value: Must be one of ["api_usage", "apm_fargate_usage", "apm_host_usage", "appsec_fargate_usage", "appsec_usage", "browser_usage", "container_excl_agent_usage", "container_usage", "cspm_containers_usage", "cspm_hosts_usage", "custom_timeseries_usage", "cws_containers_usage", "cws_hosts_usage", "dbm_hosts_usage", "dbm_queries_usage", "estimated_indexed_logs_usage", "estimated_ingested_logs_usage", "estimated_indexed_spans_usage", "estimated_ingested_spans_usage", "fargate_usage", "functions_usage", "infra_host_usage", "invocations_usage", "npm_host_usage", "profiled_container_usage", "profiled_fargate_usage", "profiled_host_usage", "snmp_usage", "estimated_rum_sessions_usage"].
19+
:param value: Must be one of ["api_usage", "apm_fargate_usage", "apm_host_usage", "appsec_fargate_usage", "appsec_usage", "browser_usage", "container_excl_agent_usage", "container_usage", "cspm_containers_usage", "cspm_hosts_usage", "custom_ingested_timeseries_usage", "custom_timeseries_usage", "cws_containers_usage", "cws_hosts_usage", "dbm_hosts_usage", "dbm_queries_usage", "estimated_indexed_logs_usage", "estimated_ingested_logs_usage", "estimated_indexed_spans_usage", "estimated_ingested_spans_usage", "fargate_usage", "functions_usage", "infra_host_usage", "invocations_usage", "npm_host_usage", "profiled_container_usage", "profiled_fargate_usage", "profiled_host_usage", "snmp_usage", "estimated_rum_sessions_usage"].
2020
:type value: str
2121
"""
2222

@@ -31,6 +31,7 @@ class HourlyUsageAttributionUsageType(ModelSimple):
3131
"container_usage",
3232
"cspm_containers_usage",
3333
"cspm_hosts_usage",
34+
"custom_ingested_timeseries_usage",
3435
"custom_timeseries_usage",
3536
"cws_containers_usage",
3637
"cws_hosts_usage",
@@ -61,6 +62,7 @@ class HourlyUsageAttributionUsageType(ModelSimple):
6162
CONTAINER_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
6263
CSPM_CONTAINERS_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
6364
CSPM_HOSTS_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
65+
CUSTOM_INGESTED_TIMESERIES_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
6466
CUSTOM_TIMESERIES_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
6567
CWS_CONTAINERS_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
6668
CWS_HOSTS_USAGE: ClassVar["HourlyUsageAttributionUsageType"]
@@ -100,6 +102,9 @@ def openapi_types(_):
100102
HourlyUsageAttributionUsageType.CONTAINER_USAGE = HourlyUsageAttributionUsageType("container_usage")
101103
HourlyUsageAttributionUsageType.CSPM_CONTAINERS_USAGE = HourlyUsageAttributionUsageType("cspm_containers_usage")
102104
HourlyUsageAttributionUsageType.CSPM_HOSTS_USAGE = HourlyUsageAttributionUsageType("cspm_hosts_usage")
105+
HourlyUsageAttributionUsageType.CUSTOM_INGESTED_TIMESERIES_USAGE = HourlyUsageAttributionUsageType(
106+
"custom_ingested_timeseries_usage"
107+
)
103108
HourlyUsageAttributionUsageType.CUSTOM_TIMESERIES_USAGE = HourlyUsageAttributionUsageType("custom_timeseries_usage")
104109
HourlyUsageAttributionUsageType.CWS_CONTAINERS_USAGE = HourlyUsageAttributionUsageType("cws_containers_usage")
105110
HourlyUsageAttributionUsageType.CWS_HOSTS_USAGE = HourlyUsageAttributionUsageType("cws_hosts_usage")

src/datadog_api_client/v1/model/monthly_usage_attribution_supported_metrics.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class MonthlyUsageAttributionSupportedMetrics(ModelSimple):
1616
"""
1717
Supported metrics for monthly usage attribution requests.
1818
19-
:param value: Must be one of ["api_usage", "api_percentage", "apm_fargate_usage", "apm_fargate_percentage", "appsec_fargate_usage", "appsec_fargate_percentage", "apm_host_usage", "apm_host_percentage", "appsec_usage", "appsec_percentage", "browser_usage", "browser_percentage", "container_excl_agent_usage", "container_excl_agent_percentage", "container_usage", "container_percentage", "cspm_containers_percentage", "cspm_containers_usage", "cspm_hosts_percentage", "cspm_hosts_usage", "custom_timeseries_usage", "custom_timeseries_percentage", "cws_containers_percentage", "cws_containers_usage", "cws_hosts_percentage", "cws_hosts_usage", "dbm_hosts_percentage", "dbm_hosts_usage", "dbm_queries_percentage", "dbm_queries_usage", "estimated_indexed_logs_usage", "estimated_indexed_logs_percentage", "estimated_ingested_logs_usage", "estimated_ingested_logs_percentage", "estimated_indexed_spans_usage", "estimated_indexed_spans_percentage", "estimated_ingested_spans_usage", "estimated_ingested_spans_percentage", "fargate_usage", "fargate_percentage", "functions_usage", "functions_percentage", "infra_host_usage", "infra_host_percentage", "invocations_usage", "invocations_percentage", "npm_host_usage", "npm_host_percentage", "profiled_container_usage", "profiled_container_percentage", "profiled_fargate_usage", "profiled_fargate_percentage", "profiled_host_usage", "profiled_host_percentage", "snmp_usage", "snmp_percentage", "estimated_rum_sessions_usage", "estimated_rum_sessions_percentage", "*"].
19+
:param value: Must be one of ["api_usage", "api_percentage", "apm_fargate_usage", "apm_fargate_percentage", "appsec_fargate_usage", "appsec_fargate_percentage", "apm_host_usage", "apm_host_percentage", "appsec_usage", "appsec_percentage", "browser_usage", "browser_percentage", "container_excl_agent_usage", "container_excl_agent_percentage", "container_usage", "container_percentage", "cspm_containers_percentage", "cspm_containers_usage", "cspm_hosts_percentage", "cspm_hosts_usage", "custom_timeseries_usage", "custom_timeseries_percentage", "custom_ingested_timeseries_usage", "custom_ingested_timeseries_percentage", "cws_containers_percentage", "cws_containers_usage", "cws_hosts_percentage", "cws_hosts_usage", "dbm_hosts_percentage", "dbm_hosts_usage", "dbm_queries_percentage", "dbm_queries_usage", "estimated_indexed_logs_usage", "estimated_indexed_logs_percentage", "estimated_ingested_logs_usage", "estimated_ingested_logs_percentage", "estimated_indexed_spans_usage", "estimated_indexed_spans_percentage", "estimated_ingested_spans_usage", "estimated_ingested_spans_percentage", "fargate_usage", "fargate_percentage", "functions_usage", "functions_percentage", "infra_host_usage", "infra_host_percentage", "invocations_usage", "invocations_percentage", "npm_host_usage", "npm_host_percentage", "profiled_container_usage", "profiled_container_percentage", "profiled_fargate_usage", "profiled_fargate_percentage", "profiled_host_usage", "profiled_host_percentage", "snmp_usage", "snmp_percentage", "estimated_rum_sessions_usage", "estimated_rum_sessions_percentage", "*"].
2020
:type value: str
2121
"""
2222

@@ -43,6 +43,8 @@ class MonthlyUsageAttributionSupportedMetrics(ModelSimple):
4343
"cspm_hosts_usage",
4444
"custom_timeseries_usage",
4545
"custom_timeseries_percentage",
46+
"custom_ingested_timeseries_usage",
47+
"custom_ingested_timeseries_percentage",
4648
"cws_containers_percentage",
4749
"cws_containers_usage",
4850
"cws_hosts_percentage",
@@ -103,6 +105,8 @@ class MonthlyUsageAttributionSupportedMetrics(ModelSimple):
103105
CSPM_HOSTS_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
104106
CUSTOM_TIMESERIES_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
105107
CUSTOM_TIMESERIES_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
108+
CUSTOM_INGESTED_TIMESERIES_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
109+
CUSTOM_INGESTED_TIMESERIES_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
106110
CWS_CONTAINERS_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
107111
CWS_CONTAINERS_USAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
108112
CWS_HOSTS_PERCENTAGE: ClassVar["MonthlyUsageAttributionSupportedMetrics"]
@@ -196,6 +200,12 @@ def openapi_types(_):
196200
MonthlyUsageAttributionSupportedMetrics.CUSTOM_TIMESERIES_PERCENTAGE = MonthlyUsageAttributionSupportedMetrics(
197201
"custom_timeseries_percentage"
198202
)
203+
MonthlyUsageAttributionSupportedMetrics.CUSTOM_INGESTED_TIMESERIES_USAGE = MonthlyUsageAttributionSupportedMetrics(
204+
"custom_ingested_timeseries_usage"
205+
)
206+
MonthlyUsageAttributionSupportedMetrics.CUSTOM_INGESTED_TIMESERIES_PERCENTAGE = MonthlyUsageAttributionSupportedMetrics(
207+
"custom_ingested_timeseries_percentage"
208+
)
199209
MonthlyUsageAttributionSupportedMetrics.CWS_CONTAINERS_PERCENTAGE = MonthlyUsageAttributionSupportedMetrics(
200210
"cws_containers_percentage"
201211
)

src/datadog_api_client/v1/model/monthly_usage_attribution_values.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def openapi_types(_):
3737
"cspm_containers_usage": (float,),
3838
"cspm_hosts_percentage": (float,),
3939
"cspm_hosts_usage": (float,),
40+
"custom_ingested_timeseries_percentage": (float,),
41+
"custom_ingested_timeseries_usage": (float,),
4042
"custom_timeseries_percentage": (float,),
4143
"custom_timeseries_usage": (float,),
4244
"cws_containers_percentage": (float,),
@@ -98,6 +100,8 @@ def openapi_types(_):
98100
"cspm_containers_usage": "cspm_containers_usage",
99101
"cspm_hosts_percentage": "cspm_hosts_percentage",
100102
"cspm_hosts_usage": "cspm_hosts_usage",
103+
"custom_ingested_timeseries_percentage": "custom_ingested_timeseries_percentage",
104+
"custom_ingested_timeseries_usage": "custom_ingested_timeseries_usage",
101105
"custom_timeseries_percentage": "custom_timeseries_percentage",
102106
"custom_timeseries_usage": "custom_timeseries_usage",
103107
"cws_containers_percentage": "cws_containers_percentage",
@@ -160,6 +164,8 @@ def __init__(
160164
cspm_containers_usage: Union[float, UnsetType] = unset,
161165
cspm_hosts_percentage: Union[float, UnsetType] = unset,
162166
cspm_hosts_usage: Union[float, UnsetType] = unset,
167+
custom_ingested_timeseries_percentage: Union[float, UnsetType] = unset,
168+
custom_ingested_timeseries_usage: Union[float, UnsetType] = unset,
163169
custom_timeseries_percentage: Union[float, UnsetType] = unset,
164170
custom_timeseries_usage: Union[float, UnsetType] = unset,
165171
cws_containers_percentage: Union[float, UnsetType] = unset,
@@ -263,10 +269,16 @@ def __init__(
263269
:param cspm_hosts_usage: The CSPM host usage by tag(s).
264270
:type cspm_hosts_usage: float, optional
265271
266-
:param custom_timeseries_percentage: The percentage of custom metrics usage by tag(s).
272+
:param custom_ingested_timeseries_percentage: The percentage of ingested custom metrics usage by tag(s).
273+
:type custom_ingested_timeseries_percentage: float, optional
274+
275+
:param custom_ingested_timeseries_usage: The ingested custom metrics usage by tag(s).
276+
:type custom_ingested_timeseries_usage: float, optional
277+
278+
:param custom_timeseries_percentage: The percentage of indexed custom metrics usage by tag(s).
267279
:type custom_timeseries_percentage: float, optional
268280
269-
:param custom_timeseries_usage: The custom metrics usage by tag(s).
281+
:param custom_timeseries_usage: The indexed custom metrics usage by tag(s).
270282
:type custom_timeseries_usage: float, optional
271283
272284
:param cws_containers_percentage: The percentage of Cloud Workload Security container usage by tag(s).
@@ -417,6 +429,10 @@ def __init__(
417429
kwargs["cspm_hosts_percentage"] = cspm_hosts_percentage
418430
if cspm_hosts_usage is not unset:
419431
kwargs["cspm_hosts_usage"] = cspm_hosts_usage
432+
if custom_ingested_timeseries_percentage is not unset:
433+
kwargs["custom_ingested_timeseries_percentage"] = custom_ingested_timeseries_percentage
434+
if custom_ingested_timeseries_usage is not unset:
435+
kwargs["custom_ingested_timeseries_usage"] = custom_ingested_timeseries_usage
420436
if custom_timeseries_percentage is not unset:
421437
kwargs["custom_timeseries_percentage"] = custom_timeseries_percentage
422438
if custom_timeseries_usage is not unset:

0 commit comments

Comments
 (0)