Skip to content

Commit 5d20a01

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add Cloud Cost Management fields to Usage Metering endpoints (#1335)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 163b17c commit 5d20a01

File tree

6 files changed

+32
-7
lines changed

6 files changed

+32
-7
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-02-10 19:48:01.617844",
8-
"spec_repo_commit": "b3e2c8a4"
7+
"regenerated": "2023-02-10 22:01:56.096464",
8+
"spec_repo_commit": "3916cc96"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-02-10 19:48:01.669023",
13-
"spec_repo_commit": "b3e2c8a4"
12+
"regenerated": "2023-02-10 22:01:56.108254",
13+
"spec_repo_commit": "3916cc96"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17054,6 +17054,11 @@ components:
1705417054
over all hours in the current date for the given org.
1705517055
format: int64
1705617056
type: integer
17057+
cloud_cost_management_host_count_avg:
17058+
description: Host count average of Cloud Cost Management for the given date
17059+
and given org.
17060+
format: int64
17061+
type: integer
1705717062
container_avg:
1705817063
description: Shows the average of all distinct containers over all hours
1705917064
in the current date for the given org.
@@ -17434,6 +17439,10 @@ components:
1743417439
over all hours in the current months for all organizations.
1743517440
format: int64
1743617441
type: integer
17442+
cloud_cost_management_host_count_avg_sum:
17443+
description: Sum of the host count average for Cloud Cost Management.
17444+
format: int64
17445+
type: integer
1743717446
container_avg_sum:
1743817447
description: Shows the average of all distinct containers over all hours
1743917448
in the current months for all organizations.

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20037,8 +20037,8 @@ paths:
2003720037
- description: 'Comma separated list of product families to retrieve. Available
2003820038
families are `all`, `analyzed_logs`,
2003920039

20040-
`application_security`, `audit_logs`, `serverless`, `ci_app`, `cspm`, `custom_events`,
20041-
`cws`, `dbm`, `fargate`,
20040+
`application_security`, `audit_logs`, `serverless`, `ci_app`, `cloud_cost_management`,
20041+
`cspm`, `custom_events`, `cws`, `dbm`, `fargate`,
2004220042

2004320043
`infra_hosts`, `incident_management`, `indexed_logs`, `indexed_spans`, `ingested_spans`,
2004420044
`iot`,

src/datadog_api_client/v1/model/usage_summary_date_org.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def openapi_types(_):
3636
"ci_test_indexed_spans_sum": (int,),
3737
"ci_visibility_pipeline_committers_hwm": (int,),
3838
"ci_visibility_test_committers_hwm": (int,),
39+
"cloud_cost_management_host_count_avg": (int,),
3940
"container_avg": (int,),
4041
"container_hwm": (int,),
4142
"cspm_aas_host_top99p": (int,),
@@ -114,6 +115,7 @@ def openapi_types(_):
114115
"ci_test_indexed_spans_sum": "ci_test_indexed_spans_sum",
115116
"ci_visibility_pipeline_committers_hwm": "ci_visibility_pipeline_committers_hwm",
116117
"ci_visibility_test_committers_hwm": "ci_visibility_test_committers_hwm",
118+
"cloud_cost_management_host_count_avg": "cloud_cost_management_host_count_avg",
117119
"container_avg": "container_avg",
118120
"container_hwm": "container_hwm",
119121
"cspm_aas_host_top99p": "cspm_aas_host_top99p",
@@ -193,6 +195,7 @@ def __init__(
193195
ci_test_indexed_spans_sum: Union[int, UnsetType] = unset,
194196
ci_visibility_pipeline_committers_hwm: Union[int, UnsetType] = unset,
195197
ci_visibility_test_committers_hwm: Union[int, UnsetType] = unset,
198+
cloud_cost_management_host_count_avg: Union[int, UnsetType] = unset,
196199
container_avg: Union[int, UnsetType] = unset,
197200
container_hwm: Union[int, UnsetType] = unset,
198201
cspm_aas_host_top99p: Union[int, UnsetType] = unset,
@@ -311,6 +314,9 @@ def __init__(
311314
:param ci_visibility_test_committers_hwm: Shows the high-water mark of all CI visibility test committers over all hours in the current date for the given org.
312315
:type ci_visibility_test_committers_hwm: int, optional
313316
317+
:param cloud_cost_management_host_count_avg: Host count average of Cloud Cost Management for the given date and given org.
318+
:type cloud_cost_management_host_count_avg: int, optional
319+
314320
:param container_avg: Shows the average of all distinct containers over all hours in the current date for the given org.
315321
:type container_avg: int, optional
316322
@@ -517,6 +523,8 @@ def __init__(
517523
kwargs["ci_visibility_pipeline_committers_hwm"] = ci_visibility_pipeline_committers_hwm
518524
if ci_visibility_test_committers_hwm is not unset:
519525
kwargs["ci_visibility_test_committers_hwm"] = ci_visibility_test_committers_hwm
526+
if cloud_cost_management_host_count_avg is not unset:
527+
kwargs["cloud_cost_management_host_count_avg"] = cloud_cost_management_host_count_avg
520528
if container_avg is not unset:
521529
kwargs["container_avg"] = container_avg
522530
if container_hwm is not unset:

src/datadog_api_client/v1/model/usage_summary_response.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def openapi_types(_):
4646
"ci_test_indexed_spans_agg_sum": (int,),
4747
"ci_visibility_pipeline_committers_hwm_sum": (int,),
4848
"ci_visibility_test_committers_hwm_sum": (int,),
49+
"cloud_cost_management_host_count_avg_sum": (int,),
4950
"container_avg_sum": (int,),
5051
"container_hwm_sum": (int,),
5152
"cspm_aas_host_top99p_sum": (int,),
@@ -131,6 +132,7 @@ def openapi_types(_):
131132
"ci_test_indexed_spans_agg_sum": "ci_test_indexed_spans_agg_sum",
132133
"ci_visibility_pipeline_committers_hwm_sum": "ci_visibility_pipeline_committers_hwm_sum",
133134
"ci_visibility_test_committers_hwm_sum": "ci_visibility_test_committers_hwm_sum",
135+
"cloud_cost_management_host_count_avg_sum": "cloud_cost_management_host_count_avg_sum",
134136
"container_avg_sum": "container_avg_sum",
135137
"container_hwm_sum": "container_hwm_sum",
136138
"cspm_aas_host_top99p_sum": "cspm_aas_host_top99p_sum",
@@ -217,6 +219,7 @@ def __init__(
217219
ci_test_indexed_spans_agg_sum: Union[int, UnsetType] = unset,
218220
ci_visibility_pipeline_committers_hwm_sum: Union[int, UnsetType] = unset,
219221
ci_visibility_test_committers_hwm_sum: Union[int, UnsetType] = unset,
222+
cloud_cost_management_host_count_avg_sum: Union[int, UnsetType] = unset,
220223
container_avg_sum: Union[int, UnsetType] = unset,
221224
container_hwm_sum: Union[int, UnsetType] = unset,
222225
cspm_aas_host_top99p_sum: Union[int, UnsetType] = unset,
@@ -344,6 +347,9 @@ def __init__(
344347
:param ci_visibility_test_committers_hwm_sum: Shows the high-water mark of all CI visibility test committers over all hours in the current months for all organizations.
345348
:type ci_visibility_test_committers_hwm_sum: int, optional
346349
350+
:param cloud_cost_management_host_count_avg_sum: Sum of the host count average for Cloud Cost Management.
351+
:type cloud_cost_management_host_count_avg_sum: int, optional
352+
347353
:param container_avg_sum: Shows the average of all distinct containers over all hours in the current months for all organizations.
348354
:type container_avg_sum: int, optional
349355
@@ -570,6 +576,8 @@ def __init__(
570576
kwargs["ci_visibility_pipeline_committers_hwm_sum"] = ci_visibility_pipeline_committers_hwm_sum
571577
if ci_visibility_test_committers_hwm_sum is not unset:
572578
kwargs["ci_visibility_test_committers_hwm_sum"] = ci_visibility_test_committers_hwm_sum
579+
if cloud_cost_management_host_count_avg_sum is not unset:
580+
kwargs["cloud_cost_management_host_count_avg_sum"] = cloud_cost_management_host_count_avg_sum
573581
if container_avg_sum is not unset:
574582
kwargs["container_avg_sum"] = container_avg_sum
575583
if container_hwm_sum is not unset:

src/datadog_api_client/v2/api/usage_metering_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def get_hourly_usage(
424424
:param filter_timestamp_start: Datetime in ISO-8601 format, UTC, precise to hour: [YYYY-MM-DDThh] for usage beginning at this hour.
425425
:type filter_timestamp_start: datetime
426426
:param filter_product_families: Comma separated list of product families to retrieve. Available families are ``all`` , ``analyzed_logs`` ,
427-
``application_security`` , ``audit_logs`` , ``serverless`` , ``ci_app`` , ``cspm`` , ``custom_events`` , ``cws`` , ``dbm`` , ``fargate`` ,
427+
``application_security`` , ``audit_logs`` , ``serverless`` , ``ci_app`` , ``cloud_cost_management`` , ``cspm`` , ``custom_events`` , ``cws`` , ``dbm`` , ``fargate`` ,
428428
``infra_hosts`` , ``incident_management`` , ``indexed_logs`` , ``indexed_spans`` , ``ingested_spans`` , ``iot`` ,
429429
``lambda_traced_invocations`` , ``logs`` , ``network_flows`` , ``network_hosts`` , ``observability_pipelines`` ,
430430
``online_archive`` , ``profiling`` , ``rum`` , ``rum_browser_sessions`` , ``rum_mobile_sessions`` , ``sds`` , ``snmp`` ,

0 commit comments

Comments
 (0)