Class AlertSeverity

java.lang.Object
com.azure.core.util.ExpandableStringEnum<AlertSeverity>
com.azure.resourcemanager.monitor.models.AlertSeverity
All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>

public final class AlertSeverity extends com.azure.core.util.ExpandableStringEnum<AlertSeverity>
Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest. Relevant and required only for rules of the kind LogAlert.
  • Field Details

    • ZERO

      public static final AlertSeverity ZERO
      Static value 0 for AlertSeverity.
    • ONE

      public static final AlertSeverity ONE
      Static value 1 for AlertSeverity.
    • TWO

      public static final AlertSeverity TWO
      Static value 2 for AlertSeverity.
    • THREE

      public static final AlertSeverity THREE
      Static value 3 for AlertSeverity.
    • FOUR

      public static final AlertSeverity FOUR
      Static value 4 for AlertSeverity.
  • Constructor Details

    • AlertSeverity

      @Deprecated public AlertSeverity()
      Deprecated.
      Use the fromLong(long) factory method.
      Creates a new instance of AlertSeverity value.
  • Method Details

    • fromLong

      public static AlertSeverity fromLong(long name)
      Creates or finds a AlertSeverity from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding AlertSeverity.
    • values

      public static Collection<AlertSeverity> values()
      Gets known AlertSeverity values.
      Returns:
      known AlertSeverity values.