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>
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
FieldsModifier and TypeFieldDescriptionstatic final AlertSeverity
Static value 4 for AlertSeverity.static final AlertSeverity
Static value 1 for AlertSeverity.static final AlertSeverity
Static value 3 for AlertSeverity.static final AlertSeverity
Static value 2 for AlertSeverity.static final AlertSeverity
Static value 0 for AlertSeverity. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AlertSeverity
fromLong
(long name) Creates or finds a AlertSeverity from its string representation.static Collection
<AlertSeverity> values()
Gets known AlertSeverity values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
ZERO
Static value 0 for AlertSeverity. -
ONE
Static value 1 for AlertSeverity. -
TWO
Static value 2 for AlertSeverity. -
THREE
Static value 3 for AlertSeverity. -
FOUR
Static value 4 for AlertSeverity.
-
-
Constructor Details
-
AlertSeverity
Deprecated.Use thefromLong(long)
factory method.Creates a new instance of AlertSeverity value.
-
-
Method Details
-
fromLong
Creates or finds a AlertSeverity from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding AlertSeverity.
-
values
Gets known AlertSeverity values.- Returns:
- known AlertSeverity values.
-
fromLong(long)
factory method.