Enum Class AlertOperator

java.lang.Object
java.lang.Enum<AlertOperator>
org.sentrysoftware.metricshub.engine.alert.AlertOperator
All Implemented Interfaces:
Serializable, Comparable<AlertOperator>, Constable

public enum AlertOperator extends Enum<AlertOperator>
Represents different comparison operators used in alert conditions, such as equality, greater than, greater than or equal to, less than, less than or equal to, and not equal to.
  • Enum Constant Details

    • EQ

      public static final AlertOperator EQ
      Equality operator.
    • GT

      public static final AlertOperator GT
      Greater than operator.
    • GTE

      public static final AlertOperator GTE
      Greater than or equal to operator.
    • LT

      public static final AlertOperator LT
      Less than operator.
    • LTE

      public static final AlertOperator LTE
      Less than or equal to operator.
    • NE

      public static final AlertOperator NE
      Not equal to operator.
  • Method Details

    • values

      public static AlertOperator[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AlertOperator valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null