class Amazonite::CloudWatch::SetAlarmStateInput

Included Modules

Defined in:

cloudwatch/set_alarm_state_input.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(alarm_name : String, state_value : StateValue, state_reason : String, state_reason_data : String | Nil = nil) #

[View source]
def self.new(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 alarm_name : String #

The name of the alarm.


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

The name of the alarm.


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

See Object#hash(hasher)


def state_reason : String #

The reason that this alarm is set to this specific state, in text format.


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

The reason that this alarm is set to this specific state, in text format.


[View source]
def state_reason_data : String | Nil #

The reason that this alarm is set to this specific state, in JSON format.

For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.


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

The reason that this alarm is set to this specific state, in JSON format.

For SNS or EC2 alarm actions, this is just informational. But for EC2 Auto Scaling or application Auto Scaling alarm actions, the Auto Scaling policy uses the information in this field to take the correct action.


[View source]
def state_value : StateValue #

The value of the state.


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

The value of the state.


[View source]
def validate! : Nil #

[View source]