Skip to content

Commit ec640e8

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add usage metering fields for AWS and Azure cloud cost management (#1524)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 0d06f84 commit ec640e8

File tree

5 files changed

+91
-12
lines changed

5 files changed

+91
-12
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-06-13 15:21:28.416210",
8-
"spec_repo_commit": "a19e81fb"
7+
"regenerated": "2023-06-13 18:21:46.823025",
8+
"spec_repo_commit": "28c27b69"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2023-06-13 15:21:28.432206",
13-
"spec_repo_commit": "a19e81fb"
12+
"regenerated": "2023-06-13 18:21:46.835511",
13+
"spec_repo_commit": "28c27b69"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17488,9 +17488,19 @@ components:
1748817488
over all hours in the current month for all organizations.
1748917489
format: int64
1749017490
type: integer
17491+
cloud_cost_management_aws_host_count_avg:
17492+
description: Host count average of Cloud Cost Management for AWS for the
17493+
given date and given organization.
17494+
format: int64
17495+
type: integer
17496+
cloud_cost_management_azure_host_count_avg:
17497+
description: Host count average of Cloud Cost Management for Azure for the
17498+
given date and given organization.
17499+
format: int64
17500+
type: integer
1749117501
cloud_cost_management_host_count_avg:
17492-
description: Host count average of Cloud Cost Management for the given date
17493-
and given organization.
17502+
description: Host count average of Cloud Cost Management for all cloud providers
17503+
for the given date and given organization.
1749417504
format: int64
1749517505
type: integer
1749617506
container_avg:
@@ -17900,9 +17910,19 @@ components:
1790017910
over all hours in the current date for the given org.
1790117911
format: int64
1790217912
type: integer
17913+
cloud_cost_management_aws_host_count_avg:
17914+
description: Host count average of Cloud Cost Management for AWS for the
17915+
given date and given org.
17916+
format: int64
17917+
type: integer
17918+
cloud_cost_management_azure_host_count_avg:
17919+
description: Host count average of Cloud Cost Management for Azure for the
17920+
given date and given org.
17921+
format: int64
17922+
type: integer
1790317923
cloud_cost_management_host_count_avg:
17904-
description: Host count average of Cloud Cost Management for the given date
17905-
and given org.
17924+
description: Host count average of Cloud Cost Management for all cloud providers
17925+
for the given date and given org.
1790617926
format: int64
1790717927
type: integer
1790817928
container_avg:
@@ -18321,8 +18341,19 @@ components:
1832118341
over all hours in the current months for all organizations.
1832218342
format: int64
1832318343
type: integer
18344+
cloud_cost_management_aws_host_count_avg_sum:
18345+
description: Sum of the host count average for Cloud Cost Management for
18346+
AWS.
18347+
format: int64
18348+
type: integer
18349+
cloud_cost_management_azure_host_count_avg_sum:
18350+
description: Sum of the host count average for Cloud Cost Management for
18351+
Azure.
18352+
format: int64
18353+
type: integer
1832418354
cloud_cost_management_host_count_avg_sum:
18325-
description: Sum of the host count average for Cloud Cost Management.
18355+
description: Sum of the host count average for Cloud Cost Management for
18356+
all cloud providers.
1832618357
format: int64
1832718358
type: integer
1832818359
container_avg_sum:

src/datadog_api_client/v1/model/usage_summary_date.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def openapi_types(_):
4444
"ci_test_indexed_spans_sum": (int,),
4545
"ci_visibility_pipeline_committers_hwm": (int,),
4646
"ci_visibility_test_committers_hwm": (int,),
47+
"cloud_cost_management_aws_host_count_avg": (int,),
48+
"cloud_cost_management_azure_host_count_avg": (int,),
4749
"cloud_cost_management_host_count_avg": (int,),
4850
"container_avg": (int,),
4951
"container_excl_agent_avg": (int,),
@@ -128,6 +130,8 @@ def openapi_types(_):
128130
"ci_test_indexed_spans_sum": "ci_test_indexed_spans_sum",
129131
"ci_visibility_pipeline_committers_hwm": "ci_visibility_pipeline_committers_hwm",
130132
"ci_visibility_test_committers_hwm": "ci_visibility_test_committers_hwm",
133+
"cloud_cost_management_aws_host_count_avg": "cloud_cost_management_aws_host_count_avg",
134+
"cloud_cost_management_azure_host_count_avg": "cloud_cost_management_azure_host_count_avg",
131135
"cloud_cost_management_host_count_avg": "cloud_cost_management_host_count_avg",
132136
"container_avg": "container_avg",
133137
"container_excl_agent_avg": "container_excl_agent_avg",
@@ -213,6 +217,8 @@ def __init__(
213217
ci_test_indexed_spans_sum: Union[int, UnsetType] = unset,
214218
ci_visibility_pipeline_committers_hwm: Union[int, UnsetType] = unset,
215219
ci_visibility_test_committers_hwm: Union[int, UnsetType] = unset,
220+
cloud_cost_management_aws_host_count_avg: Union[int, UnsetType] = unset,
221+
cloud_cost_management_azure_host_count_avg: Union[int, UnsetType] = unset,
216222
cloud_cost_management_host_count_avg: Union[int, UnsetType] = unset,
217223
container_avg: Union[int, UnsetType] = unset,
218224
container_excl_agent_avg: Union[int, UnsetType] = unset,
@@ -339,7 +345,13 @@ def __init__(
339345
:param ci_visibility_test_committers_hwm: Shows the high-water mark of all CI visibility test committers over all hours in the current month for all organizations.
340346
:type ci_visibility_test_committers_hwm: int, optional
341347
342-
:param cloud_cost_management_host_count_avg: Host count average of Cloud Cost Management for the given date and given organization.
348+
:param cloud_cost_management_aws_host_count_avg: Host count average of Cloud Cost Management for AWS for the given date and given organization.
349+
:type cloud_cost_management_aws_host_count_avg: int, optional
350+
351+
:param cloud_cost_management_azure_host_count_avg: Host count average of Cloud Cost Management for Azure for the given date and given organization.
352+
:type cloud_cost_management_azure_host_count_avg: int, optional
353+
354+
:param cloud_cost_management_host_count_avg: Host count average of Cloud Cost Management for all cloud providers for the given date and given organization.
343355
:type cloud_cost_management_host_count_avg: int, optional
344356
345357
:param container_avg: Shows the average of all distinct containers over all hours in the current date for all organizations.
@@ -562,6 +574,10 @@ def __init__(
562574
kwargs["ci_visibility_pipeline_committers_hwm"] = ci_visibility_pipeline_committers_hwm
563575
if ci_visibility_test_committers_hwm is not unset:
564576
kwargs["ci_visibility_test_committers_hwm"] = ci_visibility_test_committers_hwm
577+
if cloud_cost_management_aws_host_count_avg is not unset:
578+
kwargs["cloud_cost_management_aws_host_count_avg"] = cloud_cost_management_aws_host_count_avg
579+
if cloud_cost_management_azure_host_count_avg is not unset:
580+
kwargs["cloud_cost_management_azure_host_count_avg"] = cloud_cost_management_azure_host_count_avg
565581
if cloud_cost_management_host_count_avg is not unset:
566582
kwargs["cloud_cost_management_host_count_avg"] = cloud_cost_management_host_count_avg
567583
if container_avg is not unset:

src/datadog_api_client/v1/model/usage_summary_date_org.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def openapi_types(_):
3737
"ci_test_indexed_spans_sum": (int,),
3838
"ci_visibility_pipeline_committers_hwm": (int,),
3939
"ci_visibility_test_committers_hwm": (int,),
40+
"cloud_cost_management_aws_host_count_avg": (int,),
41+
"cloud_cost_management_azure_host_count_avg": (int,),
4042
"cloud_cost_management_host_count_avg": (int,),
4143
"container_avg": (int,),
4244
"container_excl_agent_avg": (int,),
@@ -123,6 +125,8 @@ def openapi_types(_):
123125
"ci_test_indexed_spans_sum": "ci_test_indexed_spans_sum",
124126
"ci_visibility_pipeline_committers_hwm": "ci_visibility_pipeline_committers_hwm",
125127
"ci_visibility_test_committers_hwm": "ci_visibility_test_committers_hwm",
128+
"cloud_cost_management_aws_host_count_avg": "cloud_cost_management_aws_host_count_avg",
129+
"cloud_cost_management_azure_host_count_avg": "cloud_cost_management_azure_host_count_avg",
126130
"cloud_cost_management_host_count_avg": "cloud_cost_management_host_count_avg",
127131
"container_avg": "container_avg",
128132
"container_excl_agent_avg": "container_excl_agent_avg",
@@ -210,6 +214,8 @@ def __init__(
210214
ci_test_indexed_spans_sum: Union[int, UnsetType] = unset,
211215
ci_visibility_pipeline_committers_hwm: Union[int, UnsetType] = unset,
212216
ci_visibility_test_committers_hwm: Union[int, UnsetType] = unset,
217+
cloud_cost_management_aws_host_count_avg: Union[int, UnsetType] = unset,
218+
cloud_cost_management_azure_host_count_avg: Union[int, UnsetType] = unset,
213219
cloud_cost_management_host_count_avg: Union[int, UnsetType] = unset,
214220
container_avg: Union[int, UnsetType] = unset,
215221
container_excl_agent_avg: Union[int, UnsetType] = unset,
@@ -338,7 +344,13 @@ def __init__(
338344
: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.
339345
:type ci_visibility_test_committers_hwm: int, optional
340346
341-
:param cloud_cost_management_host_count_avg: Host count average of Cloud Cost Management for the given date and given org.
347+
:param cloud_cost_management_aws_host_count_avg: Host count average of Cloud Cost Management for AWS for the given date and given org.
348+
:type cloud_cost_management_aws_host_count_avg: int, optional
349+
350+
:param cloud_cost_management_azure_host_count_avg: Host count average of Cloud Cost Management for Azure for the given date and given org.
351+
:type cloud_cost_management_azure_host_count_avg: int, optional
352+
353+
:param cloud_cost_management_host_count_avg: Host count average of Cloud Cost Management for all cloud providers for the given date and given org.
342354
:type cloud_cost_management_host_count_avg: int, optional
343355
344356
:param container_avg: Shows the average of all distinct containers over all hours in the current date for the given org.
@@ -567,6 +579,10 @@ def __init__(
567579
kwargs["ci_visibility_pipeline_committers_hwm"] = ci_visibility_pipeline_committers_hwm
568580
if ci_visibility_test_committers_hwm is not unset:
569581
kwargs["ci_visibility_test_committers_hwm"] = ci_visibility_test_committers_hwm
582+
if cloud_cost_management_aws_host_count_avg is not unset:
583+
kwargs["cloud_cost_management_aws_host_count_avg"] = cloud_cost_management_aws_host_count_avg
584+
if cloud_cost_management_azure_host_count_avg is not unset:
585+
kwargs["cloud_cost_management_azure_host_count_avg"] = cloud_cost_management_azure_host_count_avg
570586
if cloud_cost_management_host_count_avg is not unset:
571587
kwargs["cloud_cost_management_host_count_avg"] = cloud_cost_management_host_count_avg
572588
if container_avg is not unset:

src/datadog_api_client/v1/model/usage_summary_response.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ def openapi_types(_):
4747
"ci_test_indexed_spans_agg_sum": (int,),
4848
"ci_visibility_pipeline_committers_hwm_sum": (int,),
4949
"ci_visibility_test_committers_hwm_sum": (int,),
50+
"cloud_cost_management_aws_host_count_avg_sum": (int,),
51+
"cloud_cost_management_azure_host_count_avg_sum": (int,),
5052
"cloud_cost_management_host_count_avg_sum": (int,),
5153
"container_avg_sum": (int,),
5254
"container_excl_agent_avg_sum": (int,),
@@ -140,6 +142,8 @@ def openapi_types(_):
140142
"ci_test_indexed_spans_agg_sum": "ci_test_indexed_spans_agg_sum",
141143
"ci_visibility_pipeline_committers_hwm_sum": "ci_visibility_pipeline_committers_hwm_sum",
142144
"ci_visibility_test_committers_hwm_sum": "ci_visibility_test_committers_hwm_sum",
145+
"cloud_cost_management_aws_host_count_avg_sum": "cloud_cost_management_aws_host_count_avg_sum",
146+
"cloud_cost_management_azure_host_count_avg_sum": "cloud_cost_management_azure_host_count_avg_sum",
143147
"cloud_cost_management_host_count_avg_sum": "cloud_cost_management_host_count_avg_sum",
144148
"container_avg_sum": "container_avg_sum",
145149
"container_excl_agent_avg_sum": "container_excl_agent_avg_sum",
@@ -234,6 +238,8 @@ def __init__(
234238
ci_test_indexed_spans_agg_sum: Union[int, UnsetType] = unset,
235239
ci_visibility_pipeline_committers_hwm_sum: Union[int, UnsetType] = unset,
236240
ci_visibility_test_committers_hwm_sum: Union[int, UnsetType] = unset,
241+
cloud_cost_management_aws_host_count_avg_sum: Union[int, UnsetType] = unset,
242+
cloud_cost_management_azure_host_count_avg_sum: Union[int, UnsetType] = unset,
237243
cloud_cost_management_host_count_avg_sum: Union[int, UnsetType] = unset,
238244
container_avg_sum: Union[int, UnsetType] = unset,
239245
container_excl_agent_avg_sum: Union[int, UnsetType] = unset,
@@ -371,7 +377,13 @@ def __init__(
371377
: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.
372378
:type ci_visibility_test_committers_hwm_sum: int, optional
373379
374-
:param cloud_cost_management_host_count_avg_sum: Sum of the host count average for Cloud Cost Management.
380+
:param cloud_cost_management_aws_host_count_avg_sum: Sum of the host count average for Cloud Cost Management for AWS.
381+
:type cloud_cost_management_aws_host_count_avg_sum: int, optional
382+
383+
:param cloud_cost_management_azure_host_count_avg_sum: Sum of the host count average for Cloud Cost Management for Azure.
384+
:type cloud_cost_management_azure_host_count_avg_sum: int, optional
385+
386+
:param cloud_cost_management_host_count_avg_sum: Sum of the host count average for Cloud Cost Management for all cloud providers.
375387
:type cloud_cost_management_host_count_avg_sum: int, optional
376388
377389
:param container_avg_sum: Shows the average of all distinct containers over all hours in the current months for all organizations.
@@ -620,6 +632,10 @@ def __init__(
620632
kwargs["ci_visibility_pipeline_committers_hwm_sum"] = ci_visibility_pipeline_committers_hwm_sum
621633
if ci_visibility_test_committers_hwm_sum is not unset:
622634
kwargs["ci_visibility_test_committers_hwm_sum"] = ci_visibility_test_committers_hwm_sum
635+
if cloud_cost_management_aws_host_count_avg_sum is not unset:
636+
kwargs["cloud_cost_management_aws_host_count_avg_sum"] = cloud_cost_management_aws_host_count_avg_sum
637+
if cloud_cost_management_azure_host_count_avg_sum is not unset:
638+
kwargs["cloud_cost_management_azure_host_count_avg_sum"] = cloud_cost_management_azure_host_count_avg_sum
623639
if cloud_cost_management_host_count_avg_sum is not unset:
624640
kwargs["cloud_cost_management_host_count_avg_sum"] = cloud_cost_management_host_count_avg_sum
625641
if container_avg_sum is not unset:

0 commit comments

Comments
 (0)