AlertSeverity Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. monitor. models. AlertSeverity
- com.
- com.
public final class AlertSeverity
extends 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 Summary
Modifier and Type | Field and Description |
---|---|
static final
Alert |
FOUR
Static value 4 for Alert |
static final
Alert |
ONE
Static value 1 for Alert |
static final
Alert |
THREE
Static value 3 for Alert |
static final
Alert |
TWO
Static value 2 for Alert |
static final
Alert |
ZERO
Static value 0 for Alert |
Constructor Summary
Constructor | Description |
---|---|
AlertSeverity() |
Deprecated
Use the fromLong(long name) factory method.
Creates a new instance of Alert |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Alert |
fromLong(long name)
Creates or finds a Alert |
static
Collection<Alert |
values()
Gets known Alert |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
FOUR
public static final AlertSeverity FOUR
Static value 4 for AlertSeverity.
ONE
public static final AlertSeverity ONE
Static value 1 for AlertSeverity.
THREE
public static final AlertSeverity THREE
Static value 3 for AlertSeverity.
TWO
public static final AlertSeverity TWO
Static value 2 for AlertSeverity.
ZERO
public static final AlertSeverity ZERO
Static value 0 for AlertSeverity.
Constructor Details
AlertSeverity
@Deprecated
public AlertSeverity()
Deprecated
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:
Returns:
values
public static Collection
Gets known AlertSeverity values.
Returns:
Applies to
Azure SDK for Java