Module Values.DescribeAlarmHistoryInputSource

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.

Sourcetype nonrec t = {
  1. alarmName : AlarmName.t option;
    (*

    The name of the alarm.

    *)
  2. alarmContributorId : ContributorId.t option;
    (*

    The unique identifier of a specific alarm contributor to filter the alarm history results.

    *)
  3. alarmTypes : AlarmTypes.t option;
    (*

    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.

    *)
  4. historyItemType : HistoryItemType.t option;
    (*

    The type of alarm histories to retrieve.

    *)
  5. startDate : Timestamp.t option;
    (*

    The starting date to retrieve alarm history.

    *)
  6. endDate : Timestamp.t option;
    (*

    The ending date to retrieve alarm history.

    *)
  7. maxRecords : MaxRecords.t option;
    (*

    The maximum number of alarm history records to retrieve.

    *)
  8. nextToken : NextToken.t option;
    (*

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

    *)
  9. scanBy : ScanBy.t option;
    (*

    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.

    *)
}
Sourceval make : ?alarmName:??? -> ?alarmContributorId:??? -> ?alarmTypes:??? -> ?historyItemType:??? -> ?startDate:??? -> ?endDate:??? -> ?maxRecords:??? -> ?nextToken:??? -> ?scanBy:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of MaxRecords.t | `List of [> `Enum of string ] list | `String of AlarmName.t | `Timestamp of Timestamp.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t