Interface CfnLogAlarmProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLogAlarmProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.133.0 (build 0f43e37)",
date="2026-06-16T16:14:20.703Z")
@Stability(Stable)
public interface CfnLogAlarmProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnLogAlarm.
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.*;
CfnLogAlarmProps cfnLogAlarmProps = CfnLogAlarmProps.builder()
.comparisonOperator("comparisonOperator")
.queryResultsToAlarm(123)
.queryResultsToEvaluate(123)
.scheduledQueryConfiguration(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())
.threshold(123)
// the properties below are optional
.actionLogLineCount(123)
.actionLogLineRoleArn("actionLogLineRoleArn")
.actionsEnabled(false)
.alarmActions(List.of("alarmActions"))
.alarmDescription("alarmDescription")
.alarmName("alarmName")
.insufficientDataActions(List.of("insufficientDataActions"))
.okActions(List.of("okActions"))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.treatMissingData("treatMissingData")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLogAlarmPropsstatic final classAn implementation forCfnLogAlarmProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnLogAlarmProps.Builderbuilder()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.The 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.The number of query results that must be breaching to trigger the alarm.The number of query results over which data is compared to the specified threshold.The scheduled query configuration for the log alarm.getTags()A list of key-value pairs to associate with the log alarm.The 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
-
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:
-
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
IResolvableorCfnLogAlarm.ScheduledQueryConfigurationProperty- See Also:
-
getThreshold
The value to compare against the results of the scheduled query evaluation.- See Also:
-
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:
-
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:
-
getTags
A list of key-value pairs to associate with the log alarm.- 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
CfnLogAlarmProps.BuilderofCfnLogAlarmProps
-