@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:04.247Z") @Stability(value=Experimental) public enum ComparisonOperator extends Enum<ComparisonOperator>
Example:
import software.amazon.awscdk.core.*;
Alias alias;
// or add alarms to an existing group
Alias blueGreenAlias;
Alarm alarm = Alarm.Builder.create(this, "Errors")
.comparisonOperator(ComparisonOperator.GREATER_THAN_THRESHOLD)
.threshold(1)
.evaluationPeriods(1)
.metric(alias.metricErrors())
.build();
LambdaDeploymentGroup deploymentGroup = LambdaDeploymentGroup.Builder.create(this, "BlueGreenDeployment")
.alias(alias)
.deploymentConfig(LambdaDeploymentConfig.LINEAR_10PERCENT_EVERY_1MINUTE)
.alarms(List.of(alarm))
.build();
deploymentGroup.addAlarm(Alarm.Builder.create(this, "BlueGreenErrors")
.comparisonOperator(ComparisonOperator.GREATER_THAN_THRESHOLD)
.threshold(1)
.evaluationPeriods(1)
.metric(blueGreenAlias.metricErrors())
.build());
| Enum Constant and Description |
|---|
GREATER_THAN_OR_EQUAL_TO_THRESHOLD
(experimental) Specified statistic is greater than or equal to the threshold.
|
GREATER_THAN_THRESHOLD
(experimental) Specified statistic is strictly greater than the threshold.
|
GREATER_THAN_UPPER_THRESHOLD
(experimental) Specified statistic is greater than the anomaly model band.
|
LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD
(experimental) Specified statistic is lower than or greater than the anomaly model band.
|
LESS_THAN_LOWER_THRESHOLD
(experimental) Specified statistic is lower than the anomaly model band.
|
LESS_THAN_OR_EQUAL_TO_THRESHOLD
(experimental) Specified statistic is less than or equal to the threshold.
|
LESS_THAN_THRESHOLD
(experimental) Specified statistic is strictly less than the threshold.
|
| Modifier and Type | Method and Description |
|---|---|
static ComparisonOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComparisonOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final ComparisonOperator GREATER_THAN_OR_EQUAL_TO_THRESHOLD
@Stability(value=Experimental) public static final ComparisonOperator GREATER_THAN_THRESHOLD
@Stability(value=Experimental) public static final ComparisonOperator LESS_THAN_THRESHOLD
@Stability(value=Experimental) public static final ComparisonOperator LESS_THAN_OR_EQUAL_TO_THRESHOLD
@Stability(value=Experimental) public static final ComparisonOperator LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD
Used only for alarms based on anomaly detection models
@Stability(value=Experimental) public static final ComparisonOperator GREATER_THAN_UPPER_THRESHOLD
Used only for alarms based on anomaly detection models
@Stability(value=Experimental) public static final ComparisonOperator LESS_THAN_LOWER_THRESHOLD
Used only for alarms based on anomaly detection models
public static ComparisonOperator[] values()
for (ComparisonOperator c : ComparisonOperator.values()) System.out.println(c);
public static ComparisonOperator valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.