tag_cardinality_details
Creates, updates, deletes, gets or lists a tag_cardinality_details resource.
Overview
| Name | tag_cardinality_details |
| Type | Resource |
| Id | datadog.metrics.tag_cardinality_details |
Fields
The following fields are returned by SELECT queries:
- get_metric_tag_cardinality_details
| Name | Datatype | Description |
|---|---|---|
id | string | The name of the tag key. |
attributes | object | An object containing properties related to the tag key |
type | string | This describes the endpoint action. (default: tag_cardinality) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_metric_tag_cardinality_details | select | metric_name, region | Returns 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.
| Name | Datatype | Description |
|---|---|---|
metric_name | string | The name of the metric. (example: dist.http.endpoint.request) |
region | string | (default: datadoghq.com) |
SELECT examples
- get_metric_tag_cardinality_details
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
;