Enum ComparisonOperator

java.lang.Object
java.lang.Enum<ComparisonOperator>
software.amazon.awscdk.services.cloudwatch.ComparisonOperator
All Implemented Interfaces:
Serializable, Comparable<ComparisonOperator>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.852Z") @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());
 
  • Enum Constant Details

    • GREATER_THAN_OR_EQUAL_TO_THRESHOLD

      @Stability(Stable) public static final ComparisonOperator GREATER_THAN_OR_EQUAL_TO_THRESHOLD
      Specified statistic is greater than or equal to the threshold.
    • GREATER_THAN_THRESHOLD

      @Stability(Stable) public static final ComparisonOperator GREATER_THAN_THRESHOLD
      Specified statistic is strictly greater than the threshold.
    • LESS_THAN_THRESHOLD

      @Stability(Stable) public static final ComparisonOperator LESS_THAN_THRESHOLD
      Specified statistic is strictly less than the threshold.
    • LESS_THAN_OR_EQUAL_TO_THRESHOLD

      @Stability(Stable) public static final ComparisonOperator 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_THRESHOLD
      Specified statistic is lower than or greater than the anomaly model band.

      Used only for alarms based on anomaly detection models

    • GREATER_THAN_UPPER_THRESHOLD

      @Stability(Stable) public static final ComparisonOperator 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

      @Stability(Stable) public static final ComparisonOperator 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

      public static ComparisonOperator[] 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

      public static ComparisonOperator valueOf(String name)
      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 name
      NullPointerException - if the argument is null