aws_account_metric_name_filter_previews
Creates, updates, deletes, gets or lists an aws_account_metric_name_filter_previews resource.
Overview
| Name | aws_account_metric_name_filter_previews |
| Type | Resource |
| Id | datadog.integrations.aws_account_metric_name_filter_previews |
Fields
The following fields are returned by SELECT queries:
- get_awsmetric_name_filter_preview
AWS metric name filter preview result
| Name | Datatype | Description |
|---|---|---|
id | string | Unique 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) |
attributes | object | AWS metric name filter preview response attributes. |
type | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_awsmetric_name_filter_preview | select | aws_account_config_id | Preview 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.
| Name | Datatype | Description |
|---|---|---|
aws_account_config_id | string | Unique 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. |
site | string | The 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
- get_awsmetric_name_filter_preview
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
;