Interface CfnLogAlarmPropsMixin.ScheduledQueryConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLogAlarmPropsMixin.ScheduledQueryConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnLogAlarmPropsMixin
@Stability(Stable)
public static interface CfnLogAlarmPropsMixin.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.cfnpropertymixins.services.cloudwatch.*;
ScheduledQueryConfigurationProperty scheduledQueryConfigurationProperty = ScheduledQueryConfigurationProperty.builder()
.aggregationExpression("aggregationExpression")
.logGroupIdentifiers(List.of("logGroupIdentifiers"))
.queryString("queryString")
.scheduleConfiguration(ScheduleConfigurationProperty.builder()
.endTimeOffset(123)
.scheduleExpression("scheduleExpression")
.startTimeOffset(123)
.build())
.scheduledQueryRoleArn("scheduledQueryRoleArn")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnLogAlarmPropsMixin.ScheduledQueryConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe aggregation expression for the scheduled query, e.g.The log groups to query.default StringThe query string to execute against the specified log groups.default ObjectThe schedule configuration for the scheduled query.default StringThe 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:
-
getQueryString
The query string to execute against the specified log groups.- See Also:
-
getScheduleConfiguration
The schedule configuration for the scheduled query.Returns union: either
IResolvableorCfnLogAlarmPropsMixin.ScheduleConfigurationProperty- See Also:
-
getScheduledQueryRoleArn
The ARN of the IAM role that grants permissions to execute the scheduled query.- See Also:
-
builder
@Stability(Stable) static CfnLogAlarmPropsMixin.ScheduledQueryConfigurationProperty.Builder builder()
-