EvaluationWindow
The evaluation window that an alarm uses to select the range of metric data that it evaluates each time it runs. This is a union type. Set exactly one of its members, SlidingWindow or WallClockWindow. If you don't set EvaluationWindow, the alarm uses a SlidingWindow by default.
For more information, see Alarm evaluation windows in the CloudWatch User Guide.
Inheritors
Types
A sliding window, which advances each time the alarm is evaluated, forming a rolling time window. This is the default evaluation window.
A wall clock window, which aligns the evaluated range to fixed clock boundaries that match the alarm's period, such as the top of the hour, midnight, or the start of the calendar week.
Functions
Casts this EvaluationWindow as a SlidingWindow and retrieves its aws.sdk.kotlin.services.cloudwatch.model.SlidingWindow value. Throws an exception if the EvaluationWindow is not a SlidingWindow.
Casts this EvaluationWindow as a SlidingWindow and retrieves its aws.sdk.kotlin.services.cloudwatch.model.SlidingWindow value. Returns null if the EvaluationWindow is not a SlidingWindow.
Casts this EvaluationWindow as a WallClockWindow and retrieves its aws.sdk.kotlin.services.cloudwatch.model.WallClockWindow value. Throws an exception if the EvaluationWindow is not a WallClockWindow.
Casts this EvaluationWindow as a WallClockWindow and retrieves its aws.sdk.kotlin.services.cloudwatch.model.WallClockWindow value. Returns null if the EvaluationWindow is not a WallClockWindow.