Skip to main content

billing_dimension_mapping

Creates, updates, deletes, gets or lists a billing_dimension_mapping resource.

Overview

Namebilling_dimension_mapping
TypeResource
Iddatadog.organization.billing_dimension_mapping

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the billing dimension.
attributesobjectMapping of billing dimensions to endpoint keys.
typestringType of active billing dimensions data. (default: billing_dimensions)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_billing_dimension_mappingselectregionfilter[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.

NameDatatypeDescription
regionstring(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]stringString to specify whether to retrieve active billing dimension mappings for the contract or for all available mappings. Allowed views have the string active or all. Defaults to active.

SELECT examples

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] }}'
;