Interface ScheduledQueryConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ScheduledQueryConfiguration.Builder,,ScheduledQueryConfiguration> SdkBuilder<ScheduledQueryConfiguration.Builder,,ScheduledQueryConfiguration> SdkPojo
- Enclosing class:
ScheduledQueryConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionaggregationExpression(String aggregationExpression) The expression that defines how to aggregate query results into one or more scalar values for alarm evaluation.logGroupIdentifiers(String... logGroupIdentifiers) The log groups to query.logGroupIdentifiers(Collection<String> logGroupIdentifiers) The log groups to query.The Amazon Resource Name (ARN) of the CloudWatch Logs scheduled query that the alarm uses.queryString(String queryString) The CloudWatch Logs query to execute on each scheduled run.scheduleConfiguration(Consumer<ScheduleConfiguration.Builder> scheduleConfiguration) The schedule and time-range offset configuration for the underlying scheduled query.scheduleConfiguration(ScheduleConfiguration scheduleConfiguration) The schedule and time-range offset configuration for the underlying scheduled query.scheduledQueryRoleARN(String scheduledQueryRoleARN) The Amazon Resource Name (ARN) of the IAM role that CloudWatch assumes when executing the scheduled query against the configured log groups.tags(Collection<Tag> tags) A list of key-value pairs to associate with the underlying scheduled query resource.tags(Consumer<Tag.Builder>... tags) 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.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
queryString
The CloudWatch Logs query to execute on each scheduled run. Length constraints: maximum of 10,000 characters.
- Parameters:
queryString- The CloudWatch Logs query to execute on each scheduled run. Length constraints: maximum of 10,000 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupIdentifiers
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.
- Parameters:
logGroupIdentifiers- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupIdentifiers
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.
- Parameters:
logGroupIdentifiers- 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryARN
The Amazon Resource Name (ARN) of the CloudWatch Logs scheduled query that the alarm uses. This field is populated in
DescribeAlarmsresponses.- Parameters:
queryARN- The Amazon Resource Name (ARN) of the CloudWatch Logs scheduled query that the alarm uses. This field is populated inDescribeAlarmsresponses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduledQueryRoleARN
The Amazon Resource Name (ARN) of the IAM role that CloudWatch assumes when executing the scheduled query against the configured log groups.
- Parameters:
scheduledQueryRoleARN- The Amazon Resource Name (ARN) of the IAM role that CloudWatch assumes when executing the scheduled query against the configured log groups.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleConfiguration
ScheduledQueryConfiguration.Builder scheduleConfiguration(ScheduleConfiguration scheduleConfiguration) The schedule and time-range offset configuration for the underlying scheduled query.
- Parameters:
scheduleConfiguration- The schedule and time-range offset configuration for the underlying scheduled query.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleConfiguration
default ScheduledQueryConfiguration.Builder scheduleConfiguration(Consumer<ScheduleConfiguration.Builder> scheduleConfiguration) The schedule and time-range offset configuration for the underlying scheduled query.
This is a convenience method that creates an instance of theScheduleConfiguration.Builderavoiding the need to create one manually viaScheduleConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscheduleConfiguration(ScheduleConfiguration).- Parameters:
scheduleConfiguration- a consumer that will call methods onScheduleConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
aggregationExpression
The expression that defines how to aggregate query results into one or more scalar values for alarm evaluation. For example,
count(*)oravg(latency) by host | sort desc. Length constraints: minimum 1 character, maximum 2048 characters.- Parameters:
aggregationExpression- The expression that defines how to aggregate query results into one or more scalar values for alarm evaluation. For example,count(*)oravg(latency) by host | sort desc. Length constraints: minimum 1 character, maximum 2048 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs to associate with the underlying scheduled query resource.
- Parameters:
tags- A list of key-value pairs to associate with the underlying scheduled query resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs to associate with the underlying scheduled query resource.
- Parameters:
tags- A list of key-value pairs to associate with the underlying scheduled query resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
A list of key-value pairs to associate with the underlying scheduled query resource.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-