@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:51.248Z") @Stability(value=Stable) public interface CfnCompositeAlarmProps extends software.amazon.jsii.JsiiSerializable
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.*;
CfnCompositeAlarmProps cfnCompositeAlarmProps = CfnCompositeAlarmProps.builder()
.alarmRule("alarmRule")
// the properties below are optional
.actionsEnabled(false)
.actionsSuppressor("actionsSuppressor")
.actionsSuppressorExtensionPeriod(123)
.actionsSuppressorWaitPeriod(123)
.alarmActions(List.of("alarmActions"))
.alarmDescription("alarmDescription")
.alarmName("alarmName")
.insufficientDataActions(List.of("insufficientDataActions"))
.okActions(List.of("okActions"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnCompositeAlarmProps.Builder
A builder for
CfnCompositeAlarmProps |
static class |
CfnCompositeAlarmProps.Jsii$Proxy
An implementation for
CfnCompositeAlarmProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnCompositeAlarmProps.Builder |
builder() |
default Object |
getActionsEnabled()
Indicates whether actions should be executed during any changes to the alarm state of the composite alarm.
|
default String |
getActionsSuppressor()
Actions will be suppressed if the suppressor alarm is in the `ALARM` state.
|
default Number |
getActionsSuppressorExtensionPeriod()
The maximum time in seconds that the composite alarm waits after suppressor alarm goes out of the `ALARM` state.
|
default Number |
getActionsSuppressorWaitPeriod()
The maximum time in seconds that the composite alarm waits for the suppressor alarm to go into the `ALARM` state.
|
default List<String> |
getAlarmActions()
The actions to execute when this alarm transitions to the ALARM state from any other state.
|
default String |
getAlarmDescription()
The description for the composite alarm.
|
default String |
getAlarmName()
The name for the composite alarm.
|
String |
getAlarmRule()
An expression that specifies which other alarms are to be evaluated to determine this composite alarm's state.
|
default List<String> |
getInsufficientDataActions()
The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state.
|
default List<String> |
getOkActions()
The actions to execute when this alarm transitions to the OK state from any other state.
|
@Stability(value=Stable) @NotNull String getAlarmRule()
For each alarm that you reference, you designate a function that specifies whether that alarm needs to be in ALARM state, OK state, or INSUFFICIENT_DATA state. You can use operators (AND, OR and NOT) to combine multiple functions in a single expression. You can use parenthesis to logically group the functions in your expression.
You can use either alarm names or ARNs to reference the other alarms that are to be evaluated.
Functions can include the following:
TRUE and FALSE are useful for testing a complex AlarmRule structure, and for testing your alarm actions.
For more information about AlarmRule syntax, see PutCompositeAlarm in the Amazon CloudWatch API Reference .
@Stability(value=Stable) @Nullable default Object getActionsEnabled()
The default is TRUE.
@Stability(value=Stable) @Nullable default String getActionsSuppressor()
ActionsSuppressor can be an AlarmName or an Amazon Resource Name (ARN) from an existing alarm.
@Stability(value=Stable) @Nullable default Number getActionsSuppressorExtensionPeriod()
After this time, the composite alarm performs its actions.
ExtensionPeriodis required only whenActionsSuppressoris specified.
@Stability(value=Stable) @Nullable default Number getActionsSuppressorWaitPeriod()
After this time, the composite alarm performs its actions.
WaitPeriodis required only whenActionsSuppressoris specified.
@Stability(value=Stable) @Nullable default List<String> getAlarmActions()
Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutCompositeAlarm in the Amazon CloudWatch API Reference .
@Stability(value=Stable) @Nullable default String getAlarmDescription()
@Stability(value=Stable) @Nullable default String getAlarmName()
This name must be unique within your AWS account.
@Stability(value=Stable) @Nullable default List<String> getInsufficientDataActions()
Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutCompositeAlarm in the Amazon CloudWatch API Reference .
@Stability(value=Stable) @Nullable default List<String> getOkActions()
Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutCompositeAlarm in the Amazon CloudWatch API Reference .
@Stability(value=Stable) static CfnCompositeAlarmProps.Builder builder()
CfnCompositeAlarmProps.Builder of CfnCompositeAlarmPropsCopyright © 2023. All rights reserved.