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_describe_alarm_history(AlarmName, AlarmTypes,
HistoryItemType, StartDate, EndDate, MaxRecords, NextToken, ScanBy)
The name of the alarm.
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.
The type of alarm histories to retrieve.
The starting date to retrieve alarm history.
The ending date to retrieve alarm history.
The maximum number of alarm history records to retrieve.
The token returned by a previous call to indicate that there is more data available.
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.
svc$describe_alarm_history( AlarmName = "string", AlarmTypes = list( "CompositeAlarm"|"MetricAlarm" ), HistoryItemType = "ConfigurationUpdate"|"StateUpdate"|"Action", StartDate = as.POSIXct( "2015-01-01" ), EndDate = as.POSIXct( "2015-01-01" ), MaxRecords = 123, NextToken = "string", ScanBy = "TimestampDescending"|"TimestampAscending" )
CloudWatch retains the history of an alarm even if you delete the alarm.