aws.cloudwatch.describe_alarm_history
Example SQL Queries
SELECT * FROMaws.cloudwatch.describe_alarm_history;Description
Retrieves the history for the specified alarm. You can filter the results by date range or item type. If an alarm name is not specified, the histories for either all metric alarms or all composite alarms are returned.
CloudWatch retains the history of an alarm even if you delete the alarm.
To use this operation and return information about a composite alarm, you must be signed on with the cloudwatch:DescribeAlarmHistory permission that is scoped to *. You can't return information about composite alarms if your cloudwatch:DescribeAlarmHistory permission has a narrower scope.
Table Definition
| Column Name | Column Data Type |
|---|---|
| alarm_name Input Column The descriptive name for the alarm. | VARCHAR |
| alarm_types Input Column Use this parameter to specify whether you want the operation to return metric alarms or composite alarms. If you omit this parameter, only metric alarms are returned. | VARCHAR[] |
Show child fields
| |
| end_date Input Column The ending date to retrieve alarm history. | TIMESTAMP_S |
| history_item_type Input Column The type of alarm history item. | VARCHAR |
| scan_by Input Column Specified whether to return the newest or oldest alarm history first. Specify TimestampDescending to have the newest event history returned first, and specify TimestampAscending to have the oldest history returned first. | VARCHAR |
| start_date Input Column The starting date to retrieve alarm history. | TIMESTAMP_S |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| alarm_type The type of alarm, either metric alarm or composite alarm. | VARCHAR |
| history_data Data about the alarm, in JSON format. | VARCHAR |
| history_summary A summary of the alarm history, in text format. | VARCHAR |
| timestamp The time stamp for the alarm history item. | TIMESTAMP_S |