class
Amazonite::CloudWatch::EvaluationWindow
- Amazonite::CloudWatch::EvaluationWindow
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
Defined in:
cloudwatch/evaluation_window.crConstructors
- .new(pull : JSON::PullParser)
- .new(wall_clock_window : WallClockWindow | Nil = nil, sliding_window : SlidingWindow | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#sliding_window : SlidingWindow | Nil
A sliding window, which advances each time the alarm is evaluated, forming a rolling time window.
-
#sliding_window=(sliding_window : SlidingWindow | Nil)
A sliding window, which advances each time the alarm is evaluated, forming a rolling time window.
- #validate! : Nil
-
#wall_clock_window : WallClockWindow | Nil
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.
-
#wall_clock_window=(wall_clock_window : WallClockWindow | Nil)
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.
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
A sliding window, which advances each time the alarm is evaluated, forming a rolling time window. This is the default evaluation window.
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.
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.