Interface CfnLogAlarm.ScheduledQueryConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLogAlarm.ScheduledQueryConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnLogAlarm
@Stability(Stable)
public static interface CfnLogAlarm.ScheduledQueryConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
The scheduled query configuration for the log alarm.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;
ScheduledQueryConfigurationProperty scheduledQueryConfigurationProperty = ScheduledQueryConfigurationProperty.builder()
.aggregationExpression("aggregationExpression")
.logGroupIdentifiers(List.of("logGroupIdentifiers"))
.queryLanguage("queryLanguage")
.queryString("queryString")
.scheduleConfiguration(ScheduleConfigurationProperty.builder()
.scheduleExpression("scheduleExpression")
// the properties below are optional
.endTimeOffset(123)
.startTimeOffset(123)
.build())
.scheduledQueryRoleArn("scheduledQueryRoleArn")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLogAlarm.ScheduledQueryConfigurationPropertystatic final classAn implementation forCfnLogAlarm.ScheduledQueryConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The aggregation expression for the scheduled query, e.g.The log groups to query.The query language to use for the scheduled query (CWLI or SQL).The query string to execute against the specified log groups.The schedule configuration for the scheduled query.The ARN of the IAM role that grants permissions to execute the scheduled query.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAggregationExpression
The aggregation expression for the scheduled query, e.g. count(*) or avg(latency) by host.- See Also:
-
getLogGroupIdentifiers
The log groups to query.- See Also:
-
getQueryLanguage
The query language to use for the scheduled query (CWLI or SQL).- See Also:
-
getQueryString
The query string to execute against the specified log groups.- See Also:
-
getScheduleConfiguration
The schedule configuration for the scheduled query.Returns union: either
IResolvableorCfnLogAlarm.ScheduleConfigurationProperty- See Also:
-
getScheduledQueryRoleArn
The ARN of the IAM role that grants permissions to execute the scheduled query.- See Also:
-
builder
-