Enum ComparisonOperator
- All Implemented Interfaces:
Serializable
,Comparable<ComparisonOperator>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-18T22:16:53.330Z")
@Stability(Stable)
public enum ComparisonOperator
extends Enum<ComparisonOperator>
Comparison operator for evaluating alarms.
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());
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSpecified statistic is greater than or equal to the threshold.Specified statistic is strictly greater than the threshold.Specified statistic is greater than the anomaly model band.Specified statistic is lower than or greater than the anomaly model band.Specified statistic is lower than the anomaly model band.Specified statistic is less than or equal to the threshold.Specified statistic is strictly less than the threshold. -
Method Summary
Modifier and TypeMethodDescriptionstatic ComparisonOperator
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.
-
Enum Constant Details
-
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. -
LESS_THAN_THRESHOLD
Specified statistic is strictly less than the threshold. -
LESS_THAN_OR_EQUAL_TO_THRESHOLD
Specified statistic is less than or equal to the threshold. -
LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLD
@Stability(Stable) public static final ComparisonOperator LESS_THAN_LOWER_OR_GREATER_THAN_UPPER_THRESHOLDSpecified statistic is lower than or greater than the anomaly model band.Used only for alarms based on anomaly detection models
-
GREATER_THAN_UPPER_THRESHOLD
Specified statistic is greater than the anomaly model band.Used only for alarms based on anomaly detection models
-
LESS_THAN_LOWER_THRESHOLD
Specified statistic is lower than the anomaly model band.Used only for alarms based on anomaly detection models
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-