billing_dimension_mapping
Creates, updates, deletes, gets or lists a billing_dimension_mapping resource.
Overview
| Name | billing_dimension_mapping | 
| Type | Resource | 
| Id | datadog.organization.billing_dimension_mapping | 
Fields
The following fields are returned by SELECT queries:
- get_billing_dimension_mapping
| Name | Datatype | Description | 
|---|---|---|
| id | string | ID of the billing dimension. | 
| attributes | object | Mapping of billing dimensions to endpoint keys. | 
| type | string | Type of active billing dimensions data. (default: billing_dimensions) | 
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description | 
|---|---|---|---|---|
| get_billing_dimension_mapping | select | region | filter[month],filter[view] | Get a mapping of billing dimensions to the corresponding keys for the supported usage metering public API endpoints. Mapping data is updated on a monthly cadence. This endpoint is only accessible to parent-level organizations. | 
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description | 
|---|---|---|
| region | string | (default: datadoghq.com) | 
| filter[month] | string (date-time) | Datetime in ISO-8601 format, UTC, and for mappings beginning this month. Defaults to the current month. | 
| filter[view] | string | String to specify whether to retrieve active billing dimension mappings for the contract or for all available mappings. Allowed views have the string activeorall. Defaults toactive. | 
SELECT examples
- get_billing_dimension_mapping
Get a mapping of billing dimensions to the corresponding keys for the supported usage metering public API endpoints.
Mapping data is updated on a monthly cadence.
This endpoint is only accessible to parent-level organizations.
SELECT
id,
attributes,
type
FROM datadog.organization.billing_dimension_mapping
WHERE region = '{{ region }}' -- required
AND filter[month] = '{{ filter[month] }}'
AND filter[view] = '{{ filter[view] }}'
;