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 | 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) |
site | string | The 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
- 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
;