Interface AtLeastOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AtLeastOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-08-13T16:20:02.108Z")
@Stability(Stable)
public interface AtLeastOptions
extends software.amazon.jsii.JsiiSerializable
Options for the AT_LEAST AlarmRule wrapper function.
Example:
Alarm alarm1;
Alarm alarm2;
Alarm alarm3;
Alarm alarm4;
IAlarmRule alarmRule = AlarmRule.anyOf(AlarmRule.allOf(AlarmRule.anyOf(alarm1, AlarmRule.fromAlarm(alarm2, AlarmState.OK), alarm3), AlarmRule.not(AlarmRule.fromAlarm(alarm4, AlarmState.INSUFFICIENT_DATA)), AlarmRule.atLeast(AlarmState.ALARM, AtLeastOptions.builder()
.operands(List.of(alarm1, alarm2, alarm3))
.threshold(AtLeastThreshold.count(2))
.build()), AlarmRule.atLeastNot(AlarmState.OK, AtLeastOptions.builder()
.operands(List.of(alarm1, alarm2, alarm3))
.threshold(AtLeastThreshold.percentage(60))
.build())), AlarmRule.fromBoolean(false));
CompositeAlarm.Builder.create(this, "MyAwesomeCompositeAlarm")
.alarmRule(alarmRule)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAtLeastOptionsstatic final classAn implementation forAtLeastOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic AtLeastOptions.Builderbuilder()Alarms to evaluate in the AT_LEAST expression.Threshold for the AT_LEAST expression.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getOperands
Alarms to evaluate in the AT_LEAST expression.Must contain at least one alarm.
-
getThreshold
Threshold for the AT_LEAST expression.Use
AtLeastThreshold.count()for an absolute number orAtLeastThreshold.percentage()for a percentage. -
builder
- Returns:
- a
AtLeastOptions.BuilderofAtLeastOptions
-