Skip to main content

alarms_for_metrics

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

Overview

Namealarms_for_metrics
TypeResource
Idaws.cloudwatch.alarms_for_metrics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
metric_alarmsarrayThe information for each alarm with the specified metric.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_alarms_for_metricselectregionRetrieves the alarms for the specified metric. To filter the results, specify a statistic, period, or unit. This operation retrieves only standard alarms that are based on the specified metric. It does not return alarms based on math expressions that use the specified metric, or composite alarms that use the specified metric.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the alarms for the specified metric. To filter the results, specify a statistic, period, or unit. This operation retrieves only standard alarms that are based on the specified metric. It does not return alarms based on math expressions that use the specified metric, or composite alarms that use the specified metric.

SELECT
metric_alarms
FROM aws.cloudwatch.alarms_for_metrics
WHERE region = '{{ region }}' -- required
;