v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBAWS Integration
Preview AWS metric name filter
Preview which collected CloudWatch metrics would be filtered by the supplied metric name filters. The filters are not persisted.
post/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.
Request body
Example request
{
"data": {
"attributes": {
"metric_name_filters": [
{
"include_only": [
"aws.ec2.network_in"
],
"namespace": "AWS/EC2"
}
]
},
"type": "metric_name_filter_preview"
}
}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"
}
}