LogAlarm
¶
Source code in docs_src/capo_cloudwatch/types/log_alarm.py
action_log_line_count
instance-attribute
¶
action_log_line_count: NotRequired[ActionLogLineCount]
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.
action_log_line_role_arn
instance-attribute
¶
action_log_line_role_arn: NotRequired[ActionLogLineRoleArn]
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.
actions_enabled
instance-attribute
¶
actions_enabled: NotRequired[ActionsEnabled]
Indicates whether actions should be executed during any changes to the alarm state.
alarm_actions
instance-attribute
¶
alarm_actions: NotRequired[ResourceList]
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).
alarm_arn
instance-attribute
¶
alarm_arn: NotRequired[AlarmArn]
The Amazon Resource Name (ARN) of the alarm.
alarm_configuration_updated_timestamp
instance-attribute
¶
alarm_configuration_updated_timestamp: NotRequired[Timestamp]
The time stamp of the last update to the alarm configuration.
alarm_description
instance-attribute
¶
alarm_description: NotRequired[AlarmDescription]
The description of the alarm.
comparison_operator
instance-attribute
¶
comparison_operator: NotRequired[ComparisonOperator]
The arithmetic operation to use when comparing the aggregated query result and the threshold. The aggregated query result is used as the first operand.
evaluation_state
instance-attribute
¶
evaluation_state: NotRequired[EvaluationState]
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.
insufficient_data_actions
instance-attribute
¶
insufficient_data_actions: NotRequired[ResourceList]
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).
ok_actions
instance-attribute
¶
ok_actions: NotRequired[ResourceList]
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).
query_results_to_alarm
instance-attribute
¶
query_results_to_alarm: NotRequired[QueryResultsToAlarm]
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).
query_results_to_evaluate
instance-attribute
¶
query_results_to_evaluate: NotRequired[QueryResultsToEvaluate]
The number of most recent scheduled query results that the alarm evaluates against the threshold (the N in M-of-N evaluation).
scheduled_query_configuration
instance-attribute
¶
scheduled_query_configuration: NotRequired[ScheduledQueryConfiguration]
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.
state_reason
instance-attribute
¶
state_reason: NotRequired[StateReason]
An explanation for the alarm state, in text format.
state_reason_data
instance-attribute
¶
state_reason_data: NotRequired[StateReasonData]
An explanation for the alarm state, in JSON format.
state_transitioned_timestamp
instance-attribute
¶
state_transitioned_timestamp: NotRequired[Timestamp]
The date and time that the alarm's StateValue most recently changed.
state_updated_timestamp
instance-attribute
¶
state_updated_timestamp: NotRequired[Timestamp]
The time stamp of the last update to the value of either the StateValue or EvaluationState parameters.
state_value
instance-attribute
¶
state_value: NotRequired[StateValue]
The state value for the alarm.
threshold
instance-attribute
¶
threshold: NotRequired[Threshold]
The value to compare with the aggregated query result.
treat_missing_data
instance-attribute
¶
treat_missing_data: NotRequired[TreatMissingData]
How this alarm handles missing data points. Valid values are breaching, notBreaching, ignore, and missing.
warm_up_configuration
instance-attribute
¶
warm_up_configuration: NotRequired[WarmUpConfiguration]
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.