{
  "opencollection": "1.0.0",
  "info": {
    "name": "Datadog Account Cardinality API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "DD-API-KEY",
      "value": "{{DD-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Cardinality",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Datadog Tag Configuration Cardinality Estimator",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/metrics/:metric_name/estimate",
            "params": [
              {
                "name": "metric_name",
                "value": "dist.http.endpoint.request",
                "type": "path",
                "description": "The name of the metric."
              },
              {
                "name": "filter[groups]",
                "value": "app,host",
                "type": "query",
                "description": "Filtered tag keys that the metric is configured to query with."
              },
              {
                "name": "filter[hours_ago]",
                "value": "49",
                "type": "query",
                "description": "The number of hours of look back (from now) to estimate cardinality with. If unspecified, it defaults to 0 hours."
              },
              {
                "name": "filter[num_aggregations]",
                "value": "1",
                "type": "query",
                "description": "Deprecated. Number of aggregations has no impact on volume."
              },
              {
                "name": "filter[pct]",
                "value": "true",
                "type": "query",
                "description": "A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators."
              },
              {
                "name": "filter[timespan_h]",
                "value": "6",
                "type": "query",
                "description": "A window, in hours, from the look back to estimate cardinality with. The minimum and default is 1 hour."
              }
            ]
          },
          "docs": "Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits&trade;."
        }
      ]
    }
  ],
  "bundled": true
}