class
Amazonite::CloudWatch::PutLogAlarmInput
- Amazonite::CloudWatch::PutLogAlarmInput
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
cloudwatch/put_log_alarm_input.crConstructors
- .new(alarm_name : String, scheduled_query_configuration : ScheduledQueryConfiguration, query_results_to_evaluate : Int32, query_results_to_alarm : Int32, threshold : Float64, comparison_operator : ComparisonOperator, alarm_description : String | Nil = nil, action_log_line_count : Int32 | Nil = nil, action_log_line_role_arn : String | 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, treat_missing_data : String | Nil = nil, tags : Array(Tag) | Nil = nil, warm_up_configuration : WarmUpConfiguration | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#action_log_line_count : Int32 | Nil
The number of log lines from the most recent scheduled query execution to include in alarm action notifications.
-
#action_log_line_count=(action_log_line_count : Int32 | Nil)
The number of log lines from the most recent scheduled query execution to include in alarm action notifications.
-
#action_log_line_role_arn : String | Nil
The Amazon Resource Name (ARN) of an IAM role that CloudWatch assumes to retrieve log events for inclusion in alarm action notifications.
-
#action_log_line_role_arn=(action_log_line_role_arn : String | Nil)
The Amazon Resource Name (ARN) of an IAM role that CloudWatch assumes to retrieve log events for inclusion in alarm action notifications.
-
#actions_enabled : Bool | Nil
Indicates whether actions should be executed during any changes to the alarm state.
-
#actions_enabled=(actions_enabled : Bool | Nil)
Indicates whether actions should be executed during any changes to the alarm state.
-
#alarm_actions : Array(String) | Nil
The actions to execute when this alarm transitions to the
ALARMstate from any other state. -
#alarm_actions=(alarm_actions : Array(String) | Nil)
The actions to execute when this alarm transitions to the
ALARMstate from any other state. -
#alarm_description : String | Nil
The description for the alarm.
-
#alarm_description=(alarm_description : String | Nil)
The description for the alarm.
-
#alarm_name : String
The name for the alarm.
-
#alarm_name=(alarm_name : String)
The name for the alarm.
-
#comparison_operator : ComparisonOperator
The arithmetic operation to use when comparing the aggregated query result and the threshold.
-
#comparison_operator=(comparison_operator : ComparisonOperator)
The arithmetic operation to use when comparing the aggregated query result and the threshold.
-
#hash(hasher)
See
Object#hash(hasher) -
#insufficient_data_actions : Array(String) | Nil
The actions to execute when this alarm transitions to the
INSUFFICIENT_DATAstate from any other state. -
#insufficient_data_actions=(insufficient_data_actions : Array(String) | Nil)
The actions to execute when this alarm transitions to the
INSUFFICIENT_DATAstate from any other state. -
#ok_actions : Array(String) | Nil
The actions to execute when this alarm transitions to the
OKstate from any other state. -
#ok_actions=(ok_actions : Array(String) | Nil)
The actions to execute when this alarm transitions to the
OKstate from any other state. -
#query_results_to_alarm : Int32
The number of query results, out of the most recent
QueryResultsToEvaluateresults, that must breach the threshold to trigger the alarm to transition toALARM(the M in M-of-N evaluation). -
#query_results_to_alarm=(query_results_to_alarm : Int32)
The number of query results, out of the most recent
QueryResultsToEvaluateresults, that must breach the threshold to trigger the alarm to transition toALARM(the M in M-of-N evaluation). -
#query_results_to_evaluate : Int32
The number of most recent scheduled query results to evaluate against the threshold (the N in M-of-N evaluation).
-
#query_results_to_evaluate=(query_results_to_evaluate : Int32)
The number of most recent scheduled query results to evaluate against the threshold (the N in M-of-N evaluation).
-
#scheduled_query_configuration : ScheduledQueryConfiguration
The configuration of the underlying CloudWatch Logs scheduled query that this alarm evaluates, including the query string, log groups, schedule, and aggregation expression.
-
#scheduled_query_configuration=(scheduled_query_configuration : ScheduledQueryConfiguration)
The configuration of the underlying CloudWatch Logs scheduled query that this alarm evaluates, including the query string, log groups, schedule, and aggregation expression.
-
#tags : Array(Tag) | Nil
A list of key-value pairs to associate with the alarm.
-
#tags=(tags : Array(Tag) | Nil)
A list of key-value pairs to associate with the alarm.
-
#threshold : Float64
The value to compare with the aggregated query result.
-
#threshold=(threshold : Float64)
The value to compare with the aggregated query result.
-
#treat_missing_data : String | Nil
Sets how this alarm is to handle missing data points.
-
#treat_missing_data=(treat_missing_data : String | Nil)
Sets how this alarm is to handle missing data points.
- #validate! : Nil
-
#warm_up_configuration : WarmUpConfiguration | Nil
The warm-up configuration for the alarm.
-
#warm_up_configuration=(warm_up_configuration : WarmUpConfiguration | Nil)
The warm-up configuration for the alarm.
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The number of log lines from the most recent scheduled query execution to include in alarm action notifications. Valid range is 0 through 50. The default is 0, which means no log lines are included.
The number of log lines from the most recent scheduled query execution to include in alarm action notifications. Valid range is 0 through 50. The default is 0, which means no log lines are included.
The Amazon Resource Name (ARN) of an IAM role that CloudWatch assumes to retrieve log events for
inclusion in alarm action notifications. Required when ActionLogLineCount is greater than 0.
The Amazon Resource Name (ARN) of an IAM role that CloudWatch assumes to retrieve log events for
inclusion in alarm action notifications. Required when ActionLogLineCount is greater than 0.
Indicates whether actions should be executed during any changes to the alarm state. The default
is true.
Indicates whether actions should be executed during any changes to the alarm state. The default
is true.
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).
Valid Values:
Amazon SNS actions:
arn:aws:sns:*region*:*account-id*:*sns-topic-name*
Lambda actions:
-
Invoke the latest version of a Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name* -
Invoke a specific version of a Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name*:*version-number* -
Invoke a function by using an alias Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name*:*alias-name*
Systems Manager actions:
arn:aws:ssm:*region*:*account-id*:opsitem:*severity*
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).
Valid Values:
Amazon SNS actions:
arn:aws:sns:*region*:*account-id*:*sns-topic-name*
Lambda actions:
-
Invoke the latest version of a Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name* -
Invoke a specific version of a Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name*:*version-number* -
Invoke a function by using an alias Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name*:*alias-name*
Systems Manager actions:
arn:aws:ssm:*region*:*account-id*:opsitem:*severity*
The name for the alarm. This name must be unique within the Amazon Web Services account and Region.
The name for the alarm. This name must be unique within the Amazon Web Services account and Region.
The arithmetic operation to use when comparing the aggregated query result and the threshold.
The aggregated query result is used as the first operand. Valid values are
GreaterThanThreshold, GreaterThanOrEqualToThreshold, LessThanThreshold, and
LessThanOrEqualToThreshold.
The arithmetic operation to use when comparing the aggregated query result and the threshold.
The aggregated query result is used as the first operand. Valid values are
GreaterThanThreshold, GreaterThanOrEqualToThreshold, LessThanThreshold, and
LessThanOrEqualToThreshold.
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).
Valid Values:
Amazon SNS actions:
arn:aws:sns:*region*:*account-id*:*sns-topic-name*
Lambda actions:
-
Invoke the latest version of a Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name* -
Invoke a specific version of a Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name*:*version-number* -
Invoke a function by using an alias Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name*:*alias-name*
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).
Valid Values:
Amazon SNS actions:
arn:aws:sns:*region*:*account-id*:*sns-topic-name*
Lambda actions:
-
Invoke the latest version of a Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name* -
Invoke a specific version of a Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name*:*version-number* -
Invoke a function by using an alias Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name*:*alias-name*
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).
Valid Values:
Amazon SNS actions:
arn:aws:sns:*region*:*account-id*:*sns-topic-name*
Lambda actions:
-
Invoke the latest version of a Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name* -
Invoke a specific version of a Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name*:*version-number* -
Invoke a function by using an alias Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name*:*alias-name*
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).
Valid Values:
Amazon SNS actions:
arn:aws:sns:*region*:*account-id*:*sns-topic-name*
Lambda actions:
-
Invoke the latest version of a Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name* -
Invoke a specific version of a Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name*:*version-number* -
Invoke a function by using an alias Lambda function:
arn:aws:lambda:*region*:*account-id*:function:*function-name*:*alias-name*
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).
Must be less than or equal to QueryResultsToEvaluate.
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).
Must be less than or equal to QueryResultsToEvaluate.
The number of most recent scheduled query results to evaluate against the threshold (the N in M-of-N evaluation). Valid range is 1 through 100.
The number of most recent scheduled query results to evaluate against the threshold (the N in M-of-N evaluation). Valid range is 1 through 100.
The configuration of the underlying CloudWatch Logs scheduled query that this alarm evaluates, including the query string, log groups, schedule, and aggregation expression.
The configuration of the underlying CloudWatch Logs scheduled query that this alarm evaluates, including the query string, log groups, schedule, and aggregation expression.
A list of key-value pairs to associate with the alarm. You can use tags to categorize and manage your alarms.
A list of key-value pairs to associate with the alarm. You can use tags to categorize and manage your alarms.
Sets how this alarm is to handle missing data points. Valid values are breaching,
notBreaching, ignore, and missing. If this parameter is omitted, the default behavior of
missing is used.
Sets how this alarm is to handle missing data points. Valid values are breaching,
notBreaching, ignore, and missing. If this parameter is omitted, the default behavior of
missing is used.
The warm-up configuration for the alarm. A warm-up period delays alarm evaluation after you create or update the alarm. The warm-up period reduces alarm noise from missing data while a new resource or service starts publishing data.
For more information, see Alarm warm-up periods in the Amazon CloudWatch User Guide.
The warm-up configuration for the alarm. A warm-up period delays alarm evaluation after you create or update the alarm. The warm-up period reduces alarm noise from missing data while a new resource or service starts publishing data.
For more information, see Alarm warm-up periods in the Amazon CloudWatch User Guide.