Skip to content

Commit 4c0e231

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1211759 of spec repo
1 parent c2a5dd9 commit 4c0e231

3 files changed

Lines changed: 30 additions & 6 deletions

File tree

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "4413e63",
3-
"generated": "2025-08-19 20:28:38.330"
2+
"spec_repo_commit": "1211759",
3+
"generated": "2025-08-21 16:44:42.831"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50180,9 +50180,20 @@ paths:
5018050180
- cloud_cost_management_write
5018150181
/api/v2/cost_by_tag/active_billing_dimensions:
5018250182
get:
50183-
description: Get active billing dimensions for cost attribution. Cost data for
50184-
a given month becomes available no later than the 19th of the following month.
50183+
description: Get active billing dimensions for cost attribution in a given month.
50184+
Note that billing dimensions active in a given month may not appear in the
50185+
Monthly Cost Attribution API response until the 19th of the following month.
50186+
For the most accurate results, request the same month for both endpoints.
5018550187
operationId: GetActiveBillingDimensions
50188+
parameters:
50189+
- description: 'Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]
50190+
for billing dimensions active this month. Defaults to the current month.'
50191+
in: query
50192+
name: month
50193+
required: false
50194+
schema:
50195+
format: date-time
50196+
type: string
5018650197
responses:
5018750198
'200':
5018850199
content:

src/datadog_api_client/v2/api/usage_metering_api.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ def __init__(self, api_client=None):
5555
"http_method": "GET",
5656
"version": "v2",
5757
},
58-
params_map={},
58+
params_map={
59+
"month": {
60+
"openapi_types": (datetime,),
61+
"attribute": "month",
62+
"location": "query",
63+
},
64+
},
5965
headers_map={
6066
"accept": ["application/json;datetime-format=rfc3339"],
6167
},
@@ -442,14 +448,21 @@ def __init__(self, api_client=None):
442448

443449
def get_active_billing_dimensions(
444450
self,
451+
*,
452+
month: Union[datetime, UnsetType] = unset,
445453
) -> ActiveBillingDimensionsResponse:
446454
"""Get active billing dimensions for cost attribution.
447455
448-
Get active billing dimensions for cost attribution. Cost data for a given month becomes available no later than the 19th of the following month.
456+
Get active billing dimensions for cost attribution in a given month. Note that billing dimensions active in a given month may not appear in the Monthly Cost Attribution API response until the 19th of the following month. For the most accurate results, request the same month for both endpoints.
449457
458+
:param month: Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for billing dimensions active this month. Defaults to the current month.
459+
:type month: datetime, optional
450460
:rtype: ActiveBillingDimensionsResponse
451461
"""
452462
kwargs: Dict[str, Any] = {}
463+
if month is not unset:
464+
kwargs["month"] = month
465+
453466
return self._get_active_billing_dimensions_endpoint.call_with_http_info(**kwargs)
454467

455468
def get_billing_dimension_mapping(

0 commit comments

Comments
 (0)