class Amazonite::CloudWatch::LogAlarm

Overview

The details about a log alarm.

Included Modules

Defined in:

cloudwatch/log_alarm.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(alarm_name : String | Nil = nil, alarm_arn : String | Nil = nil, alarm_description : String | Nil = nil, alarm_configuration_updated_timestamp : Time | Nil = nil, actions_enabled : Bool | Nil = nil, ok_actions : Array(String) | Nil = nil, alarm_actions : Array(String) | Nil = nil, insufficient_data_actions : Array(String) | Nil = nil, state_value : StateValue | Nil = nil, state_reason : String | Nil = nil, state_reason_data : String | Nil = nil, state_updated_timestamp : Time | Nil = nil, scheduled_query_configuration : ScheduledQueryConfiguration | Nil = nil, query_results_to_evaluate : Int32 | Nil = nil, query_results_to_alarm : Int32 | Nil = nil, threshold : Float64 | Nil = nil, comparison_operator : ComparisonOperator | Nil = nil, treat_missing_data : String | Nil = nil, state_transitioned_timestamp : Time | Nil = nil, evaluation_state : EvaluationState | Nil = nil, action_log_line_count : Int32 | Nil = nil, action_log_line_role_arn : String | Nil = nil, warm_up_configuration : WarmUpConfiguration | Nil = nil) #

[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 action_log_line_count : Int32 | Nil #

The number of log lines from the most recent scheduled query execution that are included in alarm action notifications. Valid range is 0 through 50. A value of 0 means no log lines are included.


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

The number of log lines from the most recent scheduled query execution that are included in alarm action notifications. Valid range is 0 through 50. A value of 0 means no log lines are included.


[View source]
def action_log_line_role_arn : String | Nil #

The Amazon Resource Name (ARN) of the IAM role that CloudWatch assumes to retrieve log events for inclusion in alarm action notifications. Set when ActionLogLineCount is greater than 0.


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

The Amazon Resource Name (ARN) of the IAM role that CloudWatch assumes to retrieve log events for inclusion in alarm action notifications. Set when ActionLogLineCount is greater than 0.


[View source]
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 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 comparison_operator : ComparisonOperator | Nil #

The arithmetic operation to use when comparing the aggregated query result and the threshold. The aggregated query result is used as the first operand.


[View source]
def comparison_operator=(comparison_operator : ComparisonOperator | Nil) #

The arithmetic operation to use when comparing the aggregated query result and the threshold. The aggregated query result is used as the first operand.


[View source]
def evaluation_state : EvaluationState | Nil #

If the value of this field is EVALUATION_ERROR, it indicates configuration errors in the alarm setup that require review and correction. Refer to the StateReason field of the alarm for more details.

If the value of this field is EVALUATION_FAILURE, it indicates temporary CloudWatch issues. We recommend manual monitoring until the issue is resolved.

If the value of this field is PARTIAL_DATA, it indicates that the query returned the maximum 500 contributor groups but more matched. The alarm evaluates the available contributors, but results might be incomplete.


[View source]
def evaluation_state=(evaluation_state : EvaluationState | Nil) #

If the value of this field is EVALUATION_ERROR, it indicates configuration errors in the alarm setup that require review and correction. Refer to the StateReason field of the alarm for more details.

If the value of this field is EVALUATION_FAILURE, it indicates temporary CloudWatch issues. We recommend manual monitoring until the issue is resolved.

If the value of this field is PARTIAL_DATA, it indicates that the query returned the maximum 500 contributor groups but more matched. The alarm evaluates the available contributors, but results might be incomplete.


[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 query_results_to_alarm : Int32 | Nil #

The number of query results, out of the most recent QueryResultsToEvaluate results, that must breach the threshold to trigger the alarm to transition to ALARM (the M in M-of-N evaluation).


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

The number of query results, out of the most recent QueryResultsToEvaluate results, that must breach the threshold to trigger the alarm to transition to ALARM (the M in M-of-N evaluation).


[View source]
def query_results_to_evaluate : Int32 | Nil #

The number of most recent scheduled query results that the alarm evaluates against the threshold (the N in M-of-N evaluation).


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

The number of most recent scheduled query results that the alarm evaluates against the threshold (the N in M-of-N evaluation).


[View source]
def scheduled_query_configuration : ScheduledQueryConfiguration | Nil #

The configuration of the underlying CloudWatch Logs scheduled query, including the query string, log groups, schedule, aggregation expression, and the ARN of the managed scheduled query.


[View source]
def scheduled_query_configuration=(scheduled_query_configuration : ScheduledQueryConfiguration | Nil) #

The configuration of the underlying CloudWatch Logs scheduled query, including the query string, log groups, schedule, aggregation expression, and the ARN of the managed scheduled query.


[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 date and time that the alarm's StateValue most recently changed.


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

The date and time that the alarm's StateValue most recently changed.


[View source]
def state_updated_timestamp : Time | Nil #

The time stamp of the last update to the value of either the StateValue or EvaluationState parameters.


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

The time stamp of the last update to the value of either the StateValue or EvaluationState parameters.


[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 threshold : Float64 | Nil #

The value to compare with the aggregated query result.


[View source]
def threshold=(threshold : Float64 | Nil) #

The value to compare with the aggregated query result.


[View source]
def treat_missing_data : String | Nil #

How this alarm handles missing data points. Valid values are breaching, notBreaching, ignore, and missing.


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

How this alarm handles missing data points. Valid values are breaching, notBreaching, ignore, and missing.


[View source]
def validate! : Nil #

[View source]
def warm_up_configuration : WarmUpConfiguration | Nil #

The warm-up configuration for the alarm. A warm-up period delays alarm evaluation after you create or update the alarm. During the warm-up period, the alarm stays in INSUFFICIENT_DATA and does not perform alarm actions.

For more information, see Alarm warm-up periods in the Amazon CloudWatch User Guide.


[View source]
def warm_up_configuration=(warm_up_configuration : WarmUpConfiguration | Nil) #

The warm-up configuration for the alarm. A warm-up period delays alarm evaluation after you create or update the alarm. During the warm-up period, the alarm stays in INSUFFICIENT_DATA and does not perform alarm actions.

For more information, see Alarm warm-up periods in the Amazon CloudWatch User Guide.


[View source]