@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:51.265Z") @Stability(value=Stable) public enum ComparisonOperator extends Enum<ComparisonOperator>
Example:
import software.amazon.awscdk.services.cloudwatch.*;
HostedZone myHostedZone;
Certificate certificate = Certificate.Builder.create(this, "Certificate")
.domainName("hello.example.com")
.validation(CertificateValidation.fromDns(myHostedZone))
.build();
certificate.metricDaysToExpiry().createAlarm(this, "Alarm", CreateAlarmOptions.builder()
.comparisonOperator(ComparisonOperator.LESS_THAN_THRESHOLD)
.evaluationPeriods(1)
.threshold(45)
.build());
| Enum Constant and Description |
|---|
GREATER_THAN_OR_EQUAL_TO_THRESHOLD
Specified statistic is greater than or equal to the threshold.
|
GREATER_THAN_THRESHOLD
Specified statistic is strictly greater than the threshold.
|
GREATER_THAN_UPPER_THRESHOLD
Specified statistic is greater than the anomaly model band.
|
LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD
Specified statistic is lower than or greater than the anomaly model band.
|
LESS_THAN_LOWER_THRESHOLD
Specified statistic is lower than the anomaly model band.
|
LESS_THAN_OR_EQUAL_TO_THRESHOLD
Specified statistic is less than or equal to the threshold.
|
LESS_THAN_THRESHOLD
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=Stable) public static final ComparisonOperator GREATER_THAN_OR_EQUAL_TO_THRESHOLD
@Stability(value=Stable) public static final ComparisonOperator GREATER_THAN_THRESHOLD
@Stability(value=Stable) public static final ComparisonOperator LESS_THAN_THRESHOLD
@Stability(value=Stable) public static final ComparisonOperator LESS_THAN_OR_EQUAL_TO_THRESHOLD
@Stability(value=Stable) public static final ComparisonOperator LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD
Used only for alarms based on anomaly detection models
@Stability(value=Stable) public static final ComparisonOperator GREATER_THAN_UPPER_THRESHOLD
Used only for alarms based on anomaly detection models
@Stability(value=Stable) 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 © 2023. All rights reserved.