class Amazonite::CloudWatch::ScheduledQueryConfiguration

Overview

The configuration of the CloudWatch Logs scheduled query that backs a log alarm.

Included Modules

Defined in:

cloudwatch/scheduled_query_configuration.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

[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 aggregation_expression : String #

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.


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

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.


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

See Object#hash(hasher)


def log_group_identifiers : Array(String) | Nil #

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.


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

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.


[View source]
def query_arn : String | Nil #

The Amazon Resource Name (ARN) of the CloudWatch Logs scheduled query that the alarm uses. This field is populated in DescribeAlarms responses.


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

The Amazon Resource Name (ARN) of the CloudWatch Logs scheduled query that the alarm uses. This field is populated in DescribeAlarms responses.


[View source]
def query_string : String #

The CloudWatch Logs query to execute on each scheduled run. Length constraints: maximum of 10,000 characters.


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

The CloudWatch Logs query to execute on each scheduled run. Length constraints: maximum of 10,000 characters.


[View source]
def schedule_configuration : ScheduleConfiguration #

The schedule and time-range offset configuration for the underlying scheduled query.


[View source]
def schedule_configuration=(schedule_configuration : ScheduleConfiguration) #

The schedule and time-range offset configuration for the underlying scheduled query.


[View source]
def 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.


[View source]
def 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.


[View source]
def tags : Array(Tag) | Nil #

A list of key-value pairs to associate with the underlying scheduled query resource.


[View source]
def tags=(tags : Array(Tag) | Nil) #

A list of key-value pairs to associate with the underlying scheduled query resource.


[View source]
def validate! : Nil #

[View source]