{
  "opencollection": "1.0.0",
  "info": {
    "name": "Datadog Account Metric Tags API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "DD-API-KEY",
      "value": "{{DD-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Metric Tags",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Datadog List Tags by Metric Name",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/metrics/:metric_name/tags",
            "params": [
              {
                "name": "metric_name",
                "value": "",
                "type": "path",
                "description": "The name of the metric to manage tag configuration for (e.g., system.cpu.user)"
              }
            ]
          },
          "docs": "Returns the tag configuration for a specified metric including all configured tag keys, aggregation types, and exclude percentiles setting. Only available for custom metrics with tag configurations."
        },
        {
          "info": {
            "name": "Datadog Create a Tag Configuration",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/metrics/:metric_name/tags",
            "params": [
              {
                "name": "metric_name",
                "value": "",
                "type": "path",
                "description": "The name of the metric to manage tag configuration for (e.g., system.cpu.user)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a tag configuration for a specified custom metric. Allows specifying which tag keys to include, the metric type, whether to exclude percentile aggregations, and aggregation settings. Tag configurations reduce the number of custom metrics by limiting which tag combinations are stored."
        },
        {
          "info": {
            "name": "Datadog Update a Tag Configuration",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.{site}/api/v2/metrics/:metric_name/tags",
            "params": [
              {
                "name": "metric_name",
                "value": "",
                "type": "path",
                "description": "The name of the metric to manage tag configuration for (e.g., system.cpu.user)"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the tag configuration for a specified custom metric. Supports partial updates using JSON merge patch semantics. Allows changing the set of tag keys, aggregation types, and exclude percentiles settings."
        },
        {
          "info": {
            "name": "Datadog Delete a Tag Configuration",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.{site}/api/v2/metrics/:metric_name/tags",
            "params": [
              {
                "name": "metric_name",
                "value": "",
                "type": "path",
                "description": "The name of the metric to manage tag configuration for (e.g., system.cpu.user)"
              }
            ]
          },
          "docs": "Deletes the tag configuration for a specified custom metric. After deletion, all tag combinations for the metric will be stored again, which may increase custom metric usage. This action cannot be undone."
        }
      ]
    }
  ],
  "bundled": true
}