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_nameReturns 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)
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

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
;