alarms_for_metrics
Creates, updates, deletes, gets or lists an alarms_for_metrics resource.
Overview
| Name | alarms_for_metrics |
| Type | Resource |
| Id | aws.cloudwatch.alarms_for_metrics |
Fields
The following fields are returned by SELECT queries:
- describe_alarms_for_metric
| Name | Datatype | Description |
|---|---|---|
metric_alarms | array | The information for each alarm with the specified metric. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_alarms_for_metric | select | region | 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. |
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 |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_alarms_for_metric
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
;