Interface CfnLogAlarmMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLogAlarmMixinProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)",
date="2026-07-02T13:32:52.936Z")
@Stability(Stable)
public interface CfnLogAlarmMixinProps
extends software.amazon.jsii.JsiiSerializable
Properties for CfnLogAlarmPropsMixin.
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.*;
CfnLogAlarmMixinProps cfnLogAlarmMixinProps = CfnLogAlarmMixinProps.builder()
.actionLogLineCount(123)
.actionLogLineRoleArn("actionLogLineRoleArn")
.actionsEnabled(false)
.alarmActions(List.of("alarmActions"))
.alarmDescription("alarmDescription")
.alarmName("alarmName")
.comparisonOperator("comparisonOperator")
.insufficientDataActions(List.of("insufficientDataActions"))
.okActions(List.of("okActions"))
.queryResultsToAlarm(123)
.queryResultsToEvaluate(123)
.scheduledQueryConfiguration(ScheduledQueryConfigurationProperty.builder()
.aggregationExpression("aggregationExpression")
.logGroupIdentifiers(List.of("logGroupIdentifiers"))
.queryString("queryString")
.scheduleConfiguration(ScheduleConfigurationProperty.builder()
.endTimeOffset(123)
.scheduleExpression("scheduleExpression")
.startTimeOffset(123)
.build())
.scheduledQueryRoleArn("scheduledQueryRoleArn")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.threshold(123)
.treatMissingData("treatMissingData")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLogAlarmMixinPropsstatic final classAn implementation forCfnLogAlarmMixinProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumberThe number of log lines to include in alarm notifications.default StringThe ARN of the IAM role that grants CloudWatch permissions to fetch log lines for alarm notifications.default ObjectIndicates whether actions should be executed during any changes to the alarm state.The list of actions to execute when this alarm transitions into an ALARM state from any other state.default StringThe description of the log alarm.default StringThe name of the log alarm.default StringThe arithmetic operation to use when comparing the specified threshold and the query results.The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.The actions to execute when this alarm transitions to the OK state from any other state.default NumberThe number of query results that must be breaching to trigger the alarm.default NumberThe number of query results over which data is compared to the specified threshold.default ObjectThe scheduled query configuration for the log alarm.getTags()A list of key-value pairs to associate with the log alarm.default NumberThe value to compare against the results of the scheduled query evaluation.default StringSets how this alarm is to handle missing data points.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getActionLogLineCount
The number of log lines to include in alarm notifications.Valid values are 0 to 50.
- See Also:
-
getActionLogLineRoleArn
The ARN of the IAM role that grants CloudWatch permissions to fetch log lines for alarm notifications.Required when ActionLogLineCount is greater than 0.
- See Also:
-
getActionsEnabled
Indicates whether actions should be executed during any changes to the alarm state.The default is TRUE.
Returns union: either
BooleanorIResolvableDefault: - true
- See Also:
-
getAlarmActions
The list of actions to execute when this alarm transitions into an ALARM state from any other state.- See Also:
-
getAlarmDescription
The description of the log alarm.- See Also:
-
getAlarmName
The name of the log alarm.- See Also:
-
getComparisonOperator
The arithmetic operation to use when comparing the specified threshold and the query results.Valid values are GreaterThanOrEqualToThreshold, GreaterThanThreshold, LessThanThreshold, and LessThanOrEqualToThreshold.
- See Also:
-
getInsufficientDataActions
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.- See Also:
-
getOkActions
The actions to execute when this alarm transitions to the OK state from any other state.- See Also:
-
getQueryResultsToAlarm
The number of query results that must be breaching to trigger the alarm.- See Also:
-
getQueryResultsToEvaluate
The number of query results over which data is compared to the specified threshold.- See Also:
-
getScheduledQueryConfiguration
The scheduled query configuration for the log alarm.Returns union: either
IResolvableorCfnLogAlarmPropsMixin.ScheduledQueryConfigurationProperty- See Also:
-
getTags
A list of key-value pairs to associate with the log alarm.- See Also:
-
getThreshold
The value to compare against the results of the scheduled query evaluation.- See Also:
-
getTreatMissingData
Sets how this alarm is to handle missing data points.Valid values are breaching, notBreaching, ignore, and missing.
- See Also:
-
builder
- Returns:
- a
CfnLogAlarmMixinProps.BuilderofCfnLogAlarmMixinProps
-