{
  "opencollection": "1.0.0",
  "info": {
    "name": "Datadog Account Configuration API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "DD-API-KEY",
      "value": "{{DD-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Configuration",
        "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;."
        },
        {
          "info": {
            "name": "Datadog List Tag Configuration by Name",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/metrics/:metric_name/tags",
            "params": [
              {
                "name": "metric_name",
                "value": "dist.http.endpoint.request",
                "type": "path",
                "description": "The name of the metric."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Returns the tag configuration for the given metric name."
        },
        {
          "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": "dist.http.endpoint.request",
                "type": "path",
                "description": "The name of the metric."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric.\nOptionally, include percentile aggregations on any distribution metric. By setting `exclude_tags_mode`\nto true, the behavior is changed from an allow-list to a deny-list, and tags in the defined list are\nnot queryable. Can only be used with application keys of users with the `Manage Tags for Metrics`\npermission."
        },
        {
          "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": "dist.http.endpoint.request",
                "type": "path",
                "description": "The name of the metric."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update the tag configuration of a metric or percentile aggregations of a distribution metric or custom aggregations\nof a count, rate, or gauge metric. By setting `exclude_tags_mode` to true the behavior is changed\nfrom an allow-list to a deny-list, and tags in the defined list will not be queryable.\nCan only be used with application keys from users with the `Manage Tags for Metrics` permission. This endpoint requires\na tag configuration to be created first."
        },
        {
          "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": "dist.http.endpoint.request",
                "type": "path",
                "description": "The name of the metric."
              }
            ]
          },
          "docs": "Deletes a metric's tag configuration. Can only be used with application\nkeys from users with the `Manage Tags for Metrics` permission."
        },
        {
          "info": {
            "name": "Datadog Get All Monitor Configuration Policies",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/monitor/policy",
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Get all monitor configuration policies."
        },
        {
          "info": {
            "name": "Datadog Create a Monitor Configuration Policy",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/monitor/policy",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a monitor configuration policy."
        },
        {
          "info": {
            "name": "Datadog Get a Monitor Configuration Policy",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/monitor/policy/:policy_id",
            "params": [
              {
                "name": "policy_id",
                "value": "00000000-0000-1234-0000-000000000000",
                "type": "path",
                "description": "ID of the monitor configuration policy."
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "DD-API-KEY",
              "value": "{{DD-API-KEY}}",
              "placement": "header"
            }
          },
          "docs": "Get a monitor configuration policy by `policy_id`."
        },
        {
          "info": {
            "name": "Datadog Edit a Monitor Configuration Policy",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.{site}/api/v2/monitor/policy/:policy_id",
            "params": [
              {
                "name": "policy_id",
                "value": "00000000-0000-1234-0000-000000000000",
                "type": "path",
                "description": "ID of the monitor configuration policy."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Edit a monitor configuration policy."
        },
        {
          "info": {
            "name": "Datadog Delete a Monitor Configuration Policy",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.{site}/api/v2/monitor/policy/:policy_id",
            "params": [
              {
                "name": "policy_id",
                "value": "00000000-0000-1234-0000-000000000000",
                "type": "path",
                "description": "ID of the monitor configuration policy."
              }
            ]
          },
          "docs": "Delete a monitor configuration policy."
        }
      ]
    }
  ],
  "bundled": true
}