@@ -2165,6 +2165,73 @@ components:
21652165 - storage_account
21662166 - storage_container
21672167 type: object
2168+ BillingDimensionsMappingBody:
2169+ description: Billing dimensions mapping data.
2170+ items:
2171+ $ref: '#/components/schemas/BillingDimensionsMappingBodyItem'
2172+ type: array
2173+ BillingDimensionsMappingBodyItem:
2174+ description: The definition of `BillingDimensionsMappingBodyItem` object.
2175+ properties:
2176+ attributes:
2177+ $ref: '#/components/schemas/BillingDimensionsMappingBodyItemAttributes'
2178+ id:
2179+ description: ID of the billing dimension.
2180+ type: string
2181+ type:
2182+ $ref: '#/components/schemas/ActiveBillingDimensionsType'
2183+ type: object
2184+ BillingDimensionsMappingBodyItemAttributes:
2185+ description: Mapping of billing dimensions to endpoint keys.
2186+ properties:
2187+ endpoints:
2188+ description: List of supported endpoints with their keys mapped to the billing_dimension.
2189+ items:
2190+ $ref: '#/components/schemas/BillingDimensionsMappingBodyItemAttributesEndpointsItems'
2191+ type: array
2192+ in_app_label:
2193+ description: Label used for the billing dimension in the Plan & Usage charts.
2194+ example: APM Hosts
2195+ type: string
2196+ timestamp:
2197+ description: 'Month in ISO-8601 format, UTC, precise to second: `[YYYY-MM-DDThh:mm:ss]`.'
2198+ format: date-time
2199+ type: string
2200+ type: object
2201+ BillingDimensionsMappingBodyItemAttributesEndpointsItems:
2202+ description: An endpoint's keys mapped to the billing_dimension.
2203+ properties:
2204+ id:
2205+ description: The URL for the endpoint.
2206+ example: api/v1/usage/billable-summary
2207+ type: string
2208+ keys:
2209+ description: The billing dimension.
2210+ example:
2211+ - apm_host_top99p
2212+ - apm_host_sum
2213+ items:
2214+ example: apm_host_top99p
2215+ type: string
2216+ type: array
2217+ status:
2218+ $ref: '#/components/schemas/BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus'
2219+ type: object
2220+ BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus:
2221+ description: Denotes whether or not mapping keys were available for this endpoint.
2222+ enum:
2223+ - OK
2224+ - NOT_FOUND
2225+ type: string
2226+ x-enum-varnames:
2227+ - OK
2228+ - NOT_FOUND
2229+ BillingDimensionsMappingResponse:
2230+ description: Billing dimensions mapping response.
2231+ properties:
2232+ data:
2233+ $ref: '#/components/schemas/BillingDimensionsMappingBody'
2234+ type: object
21682235 BulkMuteFindingsRequest:
21692236 description: The new bulk mute finding request.
21702237 properties:
@@ -40066,6 +40133,70 @@ paths:
4006640133 operator: OR
4006740134 permissions:
4006840135 - usage_read
40136+ /api/v2/usage/billing_dimension_mapping:
40137+ get:
40138+ description: 'Get a mapping of billing dimensions to the corresponding keys
40139+ for the supported usage metering public API endpoints.
40140+
40141+ Mapping data are updated on a monthly cadence.
40142+
40143+
40144+ This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/).'
40145+ operationId: GetBillingDimensionMapping
40146+ parameters:
40147+ - description: Datetime in ISO-8601 format, UTC, for mappings beginning this
40148+ month. Defaults to the current month.
40149+ in: query
40150+ name: filter[month]
40151+ required: false
40152+ schema:
40153+ format: date-time
40154+ type: string
40155+ - description: String to specify whether to retrieve active billing dimension
40156+ mappings for the contract or all available mappings. Allowed views are `active`
40157+ and `all`. Defaults to `active`.
40158+ in: query
40159+ name: filter[view]
40160+ required: false
40161+ schema:
40162+ default: active
40163+ type: string
40164+ responses:
40165+ '200':
40166+ content:
40167+ application/json;datetime-format=rfc3339:
40168+ schema:
40169+ $ref: '#/components/schemas/BillingDimensionsMappingResponse'
40170+ description: OK
40171+ '400':
40172+ content:
40173+ application/json;datetime-format=rfc3339:
40174+ schema:
40175+ $ref: '#/components/schemas/APIErrorResponse'
40176+ description: Bad Request
40177+ '403':
40178+ content:
40179+ application/json;datetime-format=rfc3339:
40180+ schema:
40181+ $ref: '#/components/schemas/APIErrorResponse'
40182+ description: Forbidden - User is not authorized
40183+ '429':
40184+ content:
40185+ application/json;datetime-format=rfc3339:
40186+ schema:
40187+ $ref: '#/components/schemas/APIErrorResponse'
40188+ description: Too many requests
40189+ security:
40190+ - apiKeyAuth: []
40191+ appKeyAuth: []
40192+ - AuthZ:
40193+ - usage_read
40194+ summary: Get billing dimension mapping for usage endpoints
40195+ tags:
40196+ - Usage Metering
40197+ x-unstable: '**Note**: This endpoint is in public beta.
40198+
40199+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
4006940200 /api/v2/usage/cost_by_org:
4007040201 get:
4007140202 deprecated: true
0 commit comments