class Amazonite::CloudWatch::CompositeAlarm

Overview

The details about a composite alarm.

Included Modules

Defined in:

cloudwatch/composite_alarm.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(actions_enabled : Bool | Nil = nil, alarm_actions : Array(String) | Nil = nil, alarm_arn : String | Nil = nil, alarm_configuration_updated_timestamp : Time | Nil = nil, alarm_description : String | Nil = nil, alarm_name : String | Nil = nil, alarm_rule : String | Nil = nil, insufficient_data_actions : Array(String) | Nil = nil, ok_actions : Array(String) | Nil = nil, state_reason : String | Nil = nil, state_reason_data : String | Nil = nil, state_updated_timestamp : Time | Nil = nil, state_value : StateValue | Nil = nil, state_transitioned_timestamp : Time | Nil = nil, actions_suppressed_by : ActionsSuppressedBy | Nil = nil, actions_suppressed_reason : String | Nil = nil, actions_suppressor : String | Nil = nil, actions_suppressor_wait_period : Int32 | Nil = nil, actions_suppressor_extension_period : Int32 | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def actions_enabled : Bool | Nil #

Indicates whether actions should be executed during any changes to the alarm state.


[View source]
def actions_enabled=(actions_enabled : Bool | Nil) #

Indicates whether actions should be executed during any changes to the alarm state.


[View source]
def actions_suppressed_by : ActionsSuppressedBy | Nil #

When the value is ALARM, it means that the actions are suppressed because the suppressor alarm is in ALARM When the value is WaitPeriod, it means that the actions are suppressed because the composite alarm is waiting for the suppressor alarm to go into into the ALARM state. The maximum waiting time is as specified in ActionsSuppressorWaitPeriod. After this time, the composite alarm performs its actions. When the value is ExtensionPeriod, it means that the actions are suppressed because the composite alarm is waiting after the suppressor alarm went out of the ALARM state. The maximum waiting time is as specified in ActionsSuppressorExtensionPeriod. After this time, the composite alarm performs its actions.


[View source]
def actions_suppressed_by=(actions_suppressed_by : ActionsSuppressedBy | Nil) #

When the value is ALARM, it means that the actions are suppressed because the suppressor alarm is in ALARM When the value is WaitPeriod, it means that the actions are suppressed because the composite alarm is waiting for the suppressor alarm to go into into the ALARM state. The maximum waiting time is as specified in ActionsSuppressorWaitPeriod. After this time, the composite alarm performs its actions. When the value is ExtensionPeriod, it means that the actions are suppressed because the composite alarm is waiting after the suppressor alarm went out of the ALARM state. The maximum waiting time is as specified in ActionsSuppressorExtensionPeriod. After this time, the composite alarm performs its actions.


[View source]
def actions_suppressed_reason : String | Nil #

Captures the reason for action suppression.


[View source]
def actions_suppressed_reason=(actions_suppressed_reason : String | Nil) #

Captures the reason for action suppression.


[View source]
def actions_suppressor : String | Nil #

Actions will be suppressed if the suppressor alarm is in the ALARM state. ActionsSuppressor can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.


[View source]
def actions_suppressor=(actions_suppressor : String | Nil) #

Actions will be suppressed if the suppressor alarm is in the ALARM state. ActionsSuppressor can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.


[View source]
def actions_suppressor_extension_period : Int32 | Nil #

The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the ALARM state. After this time, the composite alarm performs its actions.

ExtensionPeriod is required only when ActionsSuppressor is specified.


[View source]
def actions_suppressor_extension_period=(actions_suppressor_extension_period : Int32 | Nil) #

The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the ALARM state. After this time, the composite alarm performs its actions.

ExtensionPeriod is required only when ActionsSuppressor is specified.


[View source]
def actions_suppressor_wait_period : Int32 | Nil #

The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the ALARM state. After this time, the composite alarm performs its actions.

WaitPeriod is required only when ActionsSuppressor is specified.


[View source]
def actions_suppressor_wait_period=(actions_suppressor_wait_period : Int32 | Nil) #

The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the ALARM state. After this time, the composite alarm performs its actions.

WaitPeriod is required only when ActionsSuppressor is specified.


[View source]
def alarm_actions : Array(String) | Nil #

The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).


[View source]
def alarm_actions=(alarm_actions : Array(String) | Nil) #

The actions to execute when this alarm transitions to the ALARM state from any other state. Each action is specified as an Amazon Resource Name (ARN).


[View source]
def alarm_arn : String | Nil #

The Amazon Resource Name (ARN) of the alarm.


[View source]
def alarm_arn=(alarm_arn : String | Nil) #

The Amazon Resource Name (ARN) of the alarm.


[View source]
def alarm_configuration_updated_timestamp : Time | Nil #

The time stamp of the last update to the alarm configuration.


[View source]
def alarm_configuration_updated_timestamp=(alarm_configuration_updated_timestamp : Time | Nil) #

The time stamp of the last update to the alarm configuration.


[View source]
def alarm_description : String | Nil #

The description of the alarm.


[View source]
def alarm_description=(alarm_description : String | Nil) #

The description of the alarm.


[View source]
def alarm_name : String | Nil #

The name of the alarm.


[View source]
def alarm_name=(alarm_name : String | Nil) #

The name of the alarm.


[View source]
def alarm_rule : String | Nil #

The rule that this alarm uses to evaluate its alarm state.


[View source]
def alarm_rule=(alarm_rule : String | Nil) #

The rule that this alarm uses to evaluate its alarm state.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def insufficient_data_actions : Array(String) | Nil #

The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).


[View source]
def insufficient_data_actions=(insufficient_data_actions : Array(String) | Nil) #

The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN).


[View source]
def ok_actions : Array(String) | Nil #

The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).


[View source]
def ok_actions=(ok_actions : Array(String) | Nil) #

The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN).


[View source]
def state_reason : String | Nil #

An explanation for the alarm state, in text format.


[View source]
def state_reason=(state_reason : String | Nil) #

An explanation for the alarm state, in text format.


[View source]
def state_reason_data : String | Nil #

An explanation for the alarm state, in JSON format.


[View source]
def state_reason_data=(state_reason_data : String | Nil) #

An explanation for the alarm state, in JSON format.


[View source]
def state_transitioned_timestamp : Time | Nil #

The timestamp of the last change to the alarm's StateValue.


[View source]
def state_transitioned_timestamp=(state_transitioned_timestamp : Time | Nil) #

The timestamp of the last change to the alarm's StateValue.


[View source]
def state_updated_timestamp : Time | Nil #

Tracks the timestamp of any state update, even if StateValue doesn't change.


[View source]
def state_updated_timestamp=(state_updated_timestamp : Time | Nil) #

Tracks the timestamp of any state update, even if StateValue doesn't change.


[View source]
def state_value : StateValue | Nil #

The state value for the alarm.


[View source]
def state_value=(state_value : StateValue | Nil) #

The state value for the alarm.


[View source]
def validate! : Nil #

[View source]