Amazon CloudWatch
API Reference (API Version 2010-08-01)

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.


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 all alarms are returned.

CloudWatch retains the history of an alarm even if you delete the alarm.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.


The name of the alarm.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 255.

Required: No


The ending date to retrieve alarm history.

Type: Timestamp

Required: No


The type of alarm histories to retrieve.

Type: String

Valid Values: ConfigurationUpdate | StateUpdate | Action

Required: No


The maximum number of alarm history records to retrieve.

Type: Integer

Valid Range: Minimum value of 1. Maximum value of 100.

Required: No


The token returned by a previous call to indicate that there is more data available.

Type: String

Required: No


The starting date to retrieve alarm history.

Type: Timestamp

Required: No

Response Elements

The following elements are returned by the service.


The alarm histories, in JSON format.

Type: Array of AlarmHistoryItem objects


The token that marks the start of the next batch of returned results.

Type: String


For information about the errors that are common to all actions, see Common Errors.


The next token specified is invalid.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: