Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .generated-info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"spec_repo_commit": "4413e63",
"generated": "2025-08-19 20:28:38.330"
"spec_repo_commit": "1211759",
"generated": "2025-08-21 16:44:42.831"
}
15 changes: 13 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50180,9 +50180,20 @@ paths:
- cloud_cost_management_write
/api/v2/cost_by_tag/active_billing_dimensions:
get:
description: Get active billing dimensions for cost attribution. Cost data for
a given month becomes available no later than the 19th of the following month.
description: 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.
operationId: GetActiveBillingDimensions
parameters:
- description: 'Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM]
for billing dimensions active this month. Defaults to the current month.'
in: query
name: month
required: false
schema:
format: date-time
type: string
responses:
'200':
content:
Expand Down
17 changes: 15 additions & 2 deletions src/datadog_api_client/v2/api/usage_metering_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ def __init__(self, api_client=None):
"http_method": "GET",
"version": "v2",
},
params_map={},
params_map={
"month": {
"openapi_types": (datetime,),
"attribute": "month",
"location": "query",
},
},
headers_map={
"accept": ["application/json;datetime-format=rfc3339"],
},
Expand Down Expand Up @@ -442,14 +448,21 @@ def __init__(self, api_client=None):

def get_active_billing_dimensions(
self,
*,
month: Union[datetime, UnsetType] = unset,
) -> ActiveBillingDimensionsResponse:
"""Get active billing dimensions for cost attribution.

Get active billing dimensions for cost attribution. Cost data for a given month becomes available no later than the 19th of the following month.
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.

:param month: Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for billing dimensions active this month. Defaults to the current month.
:type month: datetime, optional
:rtype: ActiveBillingDimensionsResponse
"""
kwargs: Dict[str, Any] = {}
if month is not unset:
kwargs["month"] = month

return self._get_active_billing_dimensions_endpoint.call_with_http_info(**kwargs)

def get_billing_dimension_mapping(
Expand Down
Loading