@@ -2175,6 +2175,73 @@ components:
21752175 - storage_account
21762176 - storage_container
21772177 type: object
2178+ BillingDimensionsMappingBody:
2179+ description: Billing dimensions mapping data.
2180+ items:
2181+ $ref: '#/components/schemas/BillingDimensionsMappingBodyItem'
2182+ type: array
2183+ BillingDimensionsMappingBodyItem:
2184+ description: The definition of `BillingDimensionsMappingBodyItem` object.
2185+ properties:
2186+ attributes:
2187+ $ref: '#/components/schemas/BillingDimensionsMappingBodyItemAttributes'
2188+ id:
2189+ description: ID of the billing dimension.
2190+ type: string
2191+ type:
2192+ $ref: '#/components/schemas/ActiveBillingDimensionsType'
2193+ type: object
2194+ BillingDimensionsMappingBodyItemAttributes:
2195+ description: Mapping of billing dimensions to endpoint keys.
2196+ properties:
2197+ endpoints:
2198+ description: List of supported endpoints with their keys mapped to the billing_dimension.
2199+ items:
2200+ $ref: '#/components/schemas/BillingDimensionsMappingBodyItemAttributesEndpointsItems'
2201+ type: array
2202+ in_app_label:
2203+ description: Label used for the billing dimension in the Plan & Usage charts.
2204+ example: APM Hosts
2205+ type: string
2206+ timestamp:
2207+ description: 'Month in ISO-8601 format, UTC, precise to second: `[YYYY-MM-DDThh:mm:ss]`.'
2208+ format: date-time
2209+ type: string
2210+ type: object
2211+ BillingDimensionsMappingBodyItemAttributesEndpointsItems:
2212+ description: An endpoint's keys mapped to the billing_dimension.
2213+ properties:
2214+ id:
2215+ description: The URL for the endpoint.
2216+ example: api/v1/usage/billable-summary
2217+ type: string
2218+ keys:
2219+ description: The billing dimension.
2220+ example:
2221+ - apm_host_top99p
2222+ - apm_host_sum
2223+ items:
2224+ example: apm_host_top99p
2225+ type: string
2226+ type: array
2227+ status:
2228+ $ref: '#/components/schemas/BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus'
2229+ type: object
2230+ BillingDimensionsMappingBodyItemAttributesEndpointsItemsStatus:
2231+ description: Denotes whether or not mapping keys were available for this endpoint.
2232+ enum:
2233+ - OK
2234+ - NOT_FOUND
2235+ type: string
2236+ x-enum-varnames:
2237+ - OK
2238+ - NOT_FOUND
2239+ BillingDimensionsMappingResponse:
2240+ description: Billing dimensions mapping response.
2241+ properties:
2242+ data:
2243+ $ref: '#/components/schemas/BillingDimensionsMappingBody'
2244+ type: object
21782245 BulkMuteFindingsRequest:
21792246 description: The new bulk mute finding request.
21802247 properties:
@@ -38471,6 +38538,68 @@ paths:
3847138538 summary: Get hourly usage for application security
3847238539 tags:
3847338540 - Usage Metering
38541+ /api/v2/usage/billing_dimension_mapping:
38542+ get:
38543+ description: 'Get a mapping of billing dimensions to the corresponding keys
38544+ for the supported usage metering public API endpoints.
38545+
38546+
38547+ This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/).'
38548+ operationId: GetBillingDimensionMapping
38549+ parameters:
38550+ - description: Datetime in ISO-8601 format, UTC, for mappings beginning this
38551+ month. Defaults to the current month.
38552+ in: query
38553+ name: filter[month]
38554+ required: false
38555+ schema:
38556+ format: date-time
38557+ type: string
38558+ - description: String to specify whether to retrieve active billing dimension
38559+ mappings for the contract or all available mappings. Allowed views are `active`
38560+ and `all`. Defaults to `active`.
38561+ in: query
38562+ name: filter[view]
38563+ required: false
38564+ schema:
38565+ default: active
38566+ type: string
38567+ responses:
38568+ '200':
38569+ content:
38570+ application/json;datetime-format=rfc3339:
38571+ schema:
38572+ $ref: '#/components/schemas/BillingDimensionsMappingResponse'
38573+ description: OK
38574+ '400':
38575+ content:
38576+ application/json;datetime-format=rfc3339:
38577+ schema:
38578+ $ref: '#/components/schemas/APIErrorResponse'
38579+ description: Bad Request
38580+ '403':
38581+ content:
38582+ application/json;datetime-format=rfc3339:
38583+ schema:
38584+ $ref: '#/components/schemas/APIErrorResponse'
38585+ description: Forbidden - User is not authorized
38586+ '429':
38587+ content:
38588+ application/json;datetime-format=rfc3339:
38589+ schema:
38590+ $ref: '#/components/schemas/APIErrorResponse'
38591+ description: Too many requests
38592+ security:
38593+ - apiKeyAuth: []
38594+ appKeyAuth: []
38595+ - AuthZ:
38596+ - usage_read
38597+ summary: Get billing dimension mapping for usage endpoints
38598+ tags:
38599+ - Usage Metering
38600+ x-unstable: '**Note**: This endpoint is in public beta.
38601+
38602+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
3847438603 /api/v2/usage/cost_by_org:
3847538604 get:
3847638605 deprecated: true
0 commit comments