@@ -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:
@@ -38360,6 +38427,50 @@ paths:
3836038427 summary: Get hourly usage for application security
3836138428 tags:
3836238429 - Usage Metering
38430+ /api/v2/usage/billing_dimension_mapping:
38431+ get:
38432+ description: 'Get a mapping of billing dimensions to the corresponding keys
38433+ for the supported usage metering public API endpoints.
38434+
38435+
38436+ This endpoint is only accessible for [parent-level organizations](https://docs.datadoghq.com/account_management/multi_organization/).'
38437+ operationId: GetBillingDimensionMapping
38438+ responses:
38439+ '200':
38440+ content:
38441+ application/json;datetime-format=rfc3339:
38442+ schema:
38443+ $ref: '#/components/schemas/BillingDimensionsMappingResponse'
38444+ description: OK
38445+ '400':
38446+ content:
38447+ application/json;datetime-format=rfc3339:
38448+ schema:
38449+ $ref: '#/components/schemas/APIErrorResponse'
38450+ description: Bad Request
38451+ '403':
38452+ content:
38453+ application/json;datetime-format=rfc3339:
38454+ schema:
38455+ $ref: '#/components/schemas/APIErrorResponse'
38456+ description: Forbidden - User is not authorized
38457+ '429':
38458+ content:
38459+ application/json;datetime-format=rfc3339:
38460+ schema:
38461+ $ref: '#/components/schemas/APIErrorResponse'
38462+ description: Too many requests
38463+ security:
38464+ - apiKeyAuth: []
38465+ appKeyAuth: []
38466+ - AuthZ:
38467+ - usage_read
38468+ summary: Get billing dimensions mapping for usage endpoints
38469+ tags:
38470+ - Usage Metering
38471+ x-unstable: '**Note**: This endpoint is in public beta.
38472+
38473+ If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
3836338474 /api/v2/usage/cost_by_org:
3836438475 get:
3836538476 deprecated: true
0 commit comments