Class: Aws::CloudWatch::Types::EvaluationWindow

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb

Overview

Note:

EvaluationWindow is a union - when making an API calls you must set exactly one of the members.

Note:

EvaluationWindow is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of EvaluationWindow corresponding to the set member.

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.

Defined Under Namespace

Classes: SlidingWindow, Unknown, WallClockWindow

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#sliding_window ⇒ Types::SlidingWindow

A sliding window, which advances each time the alarm is evaluated, forming a rolling time window. This is the default evaluation window.

Returns:

  • (Types::SlidingWindow)


1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 1650

class EvaluationWindow < Struct.new(
  :wall_clock_window,
  :sliding_window,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class WallClockWindow < EvaluationWindow; end
  class SlidingWindow < EvaluationWindow; end
  class Unknown < EvaluationWindow; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



1650
1651
1652
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 1650

def unknown
  @unknown
end

#wall_clock_window ⇒ Types::WallClockWindow

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.



1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 1650

class EvaluationWindow < Struct.new(
  :wall_clock_window,
  :sliding_window,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class WallClockWindow < EvaluationWindow; end
  class SlidingWindow < EvaluationWindow; end
  class Unknown < EvaluationWindow; end
end