Skip to main content

aws_account_metric_name_filter_previews

Creates, updates, deletes, gets or lists an aws_account_metric_name_filter_previews resource.

Overview

Nameaws_account_metric_name_filter_previews
TypeResource
Iddatadog.integrations.aws_account_metric_name_filter_previews

Fields

The following fields are returned by SELECT queries:

AWS metric name filter preview result

NameDatatypeDescription
idstringUnique Datadog ID of the AWS Account Integration Config. To get the config ID for an account, use the [List all AWS integrations](https:​//docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) endpoint and query by AWS Account ID. (example: 00000000-abcd-0001-0000-000000000000)
attributesobjectAWS metric name filter preview response attributes.
typestringThe AWSMetricNameFilterPreviewResponseData type. (metric_name_filter_preview) (default: metric_name_filter_preview, example: metric_name_filter_preview)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_awsmetric_name_filter_previewselectaws_account_config_idPreview which collected CloudWatch metrics would be filtered by the account's saved metric name filters.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
aws_account_config_idstringUnique Datadog ID of the AWS Account Integration Config. To get the config ID for an account, use the [List all AWS integrations](https:​//docs.datadoghq.com/api/latest/aws-integration/#list-all-aws-integrations) endpoint and query by AWS Account ID.
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

SELECT examples

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

SELECT
id,
attributes,
type
FROM datadog.integrations.aws_account_metric_name_filter_previews
WHERE aws_account_config_id = '{{ aws_account_config_id }}' -- required
;