@@ -2117,6 +2117,73 @@ components:
21172117 - storage_account
21182118 - storage_container
21192119 type: object
2120+ BillingDimensionsMappingBody:
2121+ description: Billing dimensions mapping data.
2122+ items:
2123+ $ref: '#/components/schemas/BillingDimensionsMappingBodyItem'
2124+ type: array
2125+ BillingDimensionsMappingBodyItem:
2126+ description: The definition of `BillingDimensionsMappingBodyItem` object.
2127+ properties:
2128+ attributes:
2129+ $ref: '#/components/schemas/BillingDimensionsMappingBodyItemAttributes'
2130+ id:
2131+ description: ID of the billing dimension.
2132+ type: string
2133+ type:
2134+ $ref: '#/components/schemas/ActiveBillingDimensionsType'
2135+ type: object
2136+ BillingDimensionsMappingBodyItemAttributes:
2137+ description: Mapping of billing dimensions to endpoint keys.
2138+ properties:
2139+ endpoints:
2140+ description: List of supported endpoints with their keys mapped to the billing_dimension.
2141+ items:
2142+ $ref: '#/components/schemas/BillingDimensionsMappingBodyItemAttributesEndpointsItems'
2143+ type: array
2144+ in_app_label:
2145+ description: Label used for the billing dimension in the Plan & Usage charts.
2146+ example: APM Hosts
2147+ type: string
2148+ timestamp:
2149+ description: 'Month in ISO-8601 format, UTC, precise to second: `[YYYY-MM-DDThh:mm:ss]`.'
2150+ format: date-time
2151+ type: string
2152+ type: object
2153+ BillingDimensionsMappingBodyItemAttributesEndpointsItems:
2154+ description: An endpoint's keys mapped to the billing_dimension.
2155+ properties:
2156+ id:
2157+ description: The URL for the endpoint.
2158+ example: api/v1/usage/billable-summary
2159+ type: string
2160+ keys:
2161+ description: The billing dimension.
2162+ example:
2163+ - apm_host_top99p
2164+ - apm_host_sum
2165+ items:
2166+ example: apm_host_top99p
2167+ type: string
2168+ type: array
2169+ status:
2170+ $ref: '#/components/schemas/BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus'
2171+ type: object
2172+ BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus:
2173+ description: Denotes whether or not mapping keys were available for this endpoint.
2174+ enum:
2175+ - OK
2176+ - NOT_FOUND
2177+ type: string
2178+ x-enum-varnames:
2179+ - OK
2180+ - NOT_FOUND
2181+ BillingDimensionsMappingResponse:
2182+ description: Billing dimensions mapping response.
2183+ properties:
2184+ data:
2185+ $ref: '#/components/schemas/BillingDimensionsMappingBody'
2186+ type: object
21202187 BulkMuteFindingsRequest:
21212188 description: The new bulk mute finding request.
21222189 properties:
@@ -38362,6 +38429,68 @@ paths:
3836238429 summary: Get hourly usage for application security
3836338430 tags:
3836438431 - Usage Metering
38432+ /api/v2/usage/billing_dimension_mapping:
38433+ get:
38434+ description: 'Get a mapping of billing dimensions to the corresponding keys
38435+ for the supported usage metering public API endpoints.
38436+
38437+
38438+ This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/).'
38439+ operationId: GetBillingDimensionMapping
38440+ parameters:
38441+ - description: Datetime in ISO-8601 format, UTC, for mappings beginning this
38442+ month. Defaults to the current month.
38443+ in: query
38444+ name: filter[month]
38445+ required: false
38446+ schema:
38447+ format: date-time
38448+ type: string
38449+ - description: String to specify whether to retrieve active billing dimension
38450+ mappings or all available mappings. Available views are `active` and `all`.
38451+ Defaults to `active`.
38452+ in: query
38453+ name: filter[view]
38454+ required: false
38455+ schema:
38456+ default: active
38457+ type: string
38458+ responses:
38459+ '200':
38460+ content:
38461+ application/json;datetime-format=rfc3339:
38462+ schema:
38463+ $ref: '#/components/schemas/BillingDimensionsMappingResponse'
38464+ description: OK
38465+ '400':
38466+ content:
38467+ application/json;datetime-format=rfc3339:
38468+ schema:
38469+ $ref: '#/components/schemas/APIErrorResponse'
38470+ description: Bad Request
38471+ '403':
38472+ content:
38473+ application/json;datetime-format=rfc3339:
38474+ schema:
38475+ $ref: '#/components/schemas/APIErrorResponse'
38476+ description: Forbidden - User is not authorized
38477+ '429':
38478+ content:
38479+ application/json;datetime-format=rfc3339:
38480+ schema:
38481+ $ref: '#/components/schemas/APIErrorResponse'
38482+ description: Too many requests
38483+ security:
38484+ - apiKeyAuth: []
38485+ appKeyAuth: []
38486+ - AuthZ:
38487+ - usage_read
38488+ summary: Get billing dimensions mapping for usage endpoints
38489+ tags:
38490+ - Usage Metering
38491+ x-unstable: '**Note**: This endpoint is in public beta.
38492+
38493+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
3836538494 /api/v2/usage/cost_by_org:
3836638495 get:
3836738496 deprecated: true
0 commit comments