class
Amazonite::CloudWatch::ScheduledQueryConfiguration
- Amazonite::CloudWatch::ScheduledQueryConfiguration
- Reference
- Object
Overview
The configuration of the CloudWatch Logs scheduled query that backs a log alarm.
Included Modules
- JSON::Serializable
Defined in:
cloudwatch/scheduled_query_configuration.crConstructors
- .new(query_string : String, scheduled_query_role_arn : String, schedule_configuration : ScheduleConfiguration, aggregation_expression : String, log_group_identifiers : Array(String) | Nil = nil, query_arn : String | Nil = nil, tags : Array(Tag) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#aggregation_expression : String
The expression that defines how to aggregate query results into one or more scalar values for alarm evaluation.
-
#aggregation_expression=(aggregation_expression : String)
The expression that defines how to aggregate query results into one or more scalar values for alarm evaluation.
-
#hash(hasher)
See
Object#hash(hasher) -
#log_group_identifiers : Array(String) | Nil
The log groups to query.
-
#log_group_identifiers=(log_group_identifiers : Array(String) | Nil)
The log groups to query.
-
#query_arn : String | Nil
The Amazon Resource Name (ARN) of the CloudWatch Logs scheduled query that the alarm uses.
-
#query_arn=(query_arn : String | Nil)
The Amazon Resource Name (ARN) of the CloudWatch Logs scheduled query that the alarm uses.
-
#query_string : String
The CloudWatch Logs query to execute on each scheduled run.
-
#query_string=(query_string : String)
The CloudWatch Logs query to execute on each scheduled run.
-
#schedule_configuration : ScheduleConfiguration
The schedule and time-range offset configuration for the underlying scheduled query.
-
#schedule_configuration=(schedule_configuration : ScheduleConfiguration)
The schedule and time-range offset configuration for the underlying scheduled query.
-
#scheduled_query_role_arn : String
The Amazon Resource Name (ARN) of the IAM role that CloudWatch assumes when executing the scheduled query against the configured log groups.
-
#scheduled_query_role_arn=(scheduled_query_role_arn : String)
The Amazon Resource Name (ARN) of the IAM role that CloudWatch assumes when executing the scheduled query against the configured log groups.
-
#tags : Array(Tag) | Nil
A list of key-value pairs to associate with the underlying scheduled query resource.
-
#tags=(tags : Array(Tag) | Nil)
A list of key-value pairs to associate with the underlying scheduled query resource.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
The expression that defines how to aggregate query results into one or more scalar values for
alarm evaluation. For example, count(*) or avg(latency) by host | sort desc. Length
constraints: minimum 1 character, maximum 2048 characters.
The expression that defines how to aggregate query results into one or more scalar values for
alarm evaluation. For example, count(*) or avg(latency) by host | sort desc. Length
constraints: minimum 1 character, maximum 2048 characters.
The log groups to query. Each entry can be a log group name or ARN. Use the ARN form when querying log groups in a different account (for example, when running cross-account queries from a monitoring account). The list must contain between 1 and 50 entries.
The log groups to query. Each entry can be a log group name or ARN. Use the ARN form when querying log groups in a different account (for example, when running cross-account queries from a monitoring account). The list must contain between 1 and 50 entries.
The Amazon Resource Name (ARN) of the CloudWatch Logs scheduled query that the alarm uses. This
field is populated in DescribeAlarms responses.
The Amazon Resource Name (ARN) of the CloudWatch Logs scheduled query that the alarm uses. This
field is populated in DescribeAlarms responses.
The CloudWatch Logs query to execute on each scheduled run. Length constraints: maximum of 10,000 characters.
The CloudWatch Logs query to execute on each scheduled run. Length constraints: maximum of 10,000 characters.
The schedule and time-range offset configuration for the underlying scheduled query.
The schedule and time-range offset configuration for the underlying scheduled query.
The Amazon Resource Name (ARN) of the IAM role that CloudWatch assumes when executing the scheduled query against the configured log groups.
The Amazon Resource Name (ARN) of the IAM role that CloudWatch assumes when executing the scheduled query against the configured log groups.
A list of key-value pairs to associate with the underlying scheduled query resource.
A list of key-value pairs to associate with the underlying scheduled query resource.