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_windowTypes::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)


1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 1448

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

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



1448
1449
1450
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 1448

def unknown
  @unknown
end

#wall_clock_windowTypes::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.



1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
# File 'gems/aws-sdk-cloudwatch/lib/aws-sdk-cloudwatch/types.rb', line 1448

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