v1

latestOpenAPI 3.0.02026-07-141,4077,1665.2 MB
AWS Integration

Get AWS metric name filter preview

Preview which collected CloudWatch metrics would be filtered by the account's saved metric name filters.

get/api/v2/integration/aws/accounts/{aws_account_config_id}/metric_name_filter_preview

Path parameters

aws_account_config_idstring required

Unique Datadog ID of the AWS Account Integration Config. To get the config ID for an account, use the List all AWS integrations endpoint and query by AWS Account ID.

Response

AWS metric name filter preview result

Example response

{
  "data": {
    "attributes": {
      "namespaces": [
        {
          "filters": [
            {
              "match_count": 1,
              "pattern": "aws.ec2.network_in"
            }
          ],
          "metrics": [
            {
              "cw_name": "NetworkIn",
              "dd_names": [
                {
                  "filtered": true,
                  "name": "aws.ec2.network_in"
                }
              ]
            }
          ],
          "namespace": "AWS/EC2"
        }
      ]
    },
    "id": "00000000-abcd-0001-0000-000000000000",
    "type": "metric_name_filter_preview"
  }
}