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:34.170"
"spec_repo_commit": "1211759",
"generated": "2025-08-21 16:44:11.566"
}
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
3 changes: 3 additions & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1514,6 +1514,9 @@
"cloud_account_id" => "Integer",
"body" => "GCPUsageCostConfigPatchRequest",
},
"v2.GetActiveBillingDimensions" => {
"month" => "Time",
},
"v2.GetMonthlyCostAttribution" => {
"start_month" => "Time",
"end_month" => "Time",
Expand Down
4 changes: 3 additions & 1 deletion lib/datadog_api_client/v2/api/usage_metering_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ def get_active_billing_dimensions(opts = {})

# 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 opts [Hash] the optional parameters
# @option opts [Time] :month Datetime in ISO-8601 format, UTC, precise to month: [YYYY-MM] for billing dimensions active this month. Defaults to the current month.
# @return [Array<(ActiveBillingDimensionsResponse, Integer, Hash)>] ActiveBillingDimensionsResponse data, response status code and response headers
def get_active_billing_dimensions_with_http_info(opts = {})

Expand All @@ -47,6 +48,7 @@ def get_active_billing_dimensions_with_http_info(opts = {})

# query parameters
query_params = opts[:query_params] || {}
query_params[:'month'] = opts[:'month'] if !opts[:'month'].nil?

# header parameters
header_params = opts[:header_params] || {}
Expand Down
Loading