Skip to main content

tag_cardinality_details

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

Overview

Nametag_cardinality_details
TypeResource
Iddatadog.metrics.tag_cardinality_details

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe name of the tag key.
attributesobjectAn object containing properties related to the tag key
typestringThis describes the endpoint action. (default: tag_cardinality)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_metric_tag_cardinality_detailsselectmetric_name, regionReturns the cardinality details of tags for a specific metric.

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
metric_namestringThe name of the metric. (example: dist.http.endpoint.request)
regionstring(default: datadoghq.com)

SELECT examples

Returns the cardinality details of tags for a specific metric.

SELECT
id,
attributes,
type
FROM datadog.metrics.tag_cardinality_details
WHERE metric_name = '{{ metric_name }}' -- required
AND region = '{{ region }}' -- required
;