Class CpuThreshold
java.lang.Object
com.azure.core.util.ExpandableStringEnum<CpuThreshold>
com.azure.resourcemanager.advisor.models.CpuThreshold
Minimum percentage threshold for Advisor low CPU utilization evaluation. Valid only for subscriptions. Valid values:
5 (default), 10, 15 or 20.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CpuThreshold
Static value 5 for CpuThreshold.static final CpuThreshold
Static value 15 for CpuThreshold.static final CpuThreshold
Static value 10 for CpuThreshold.static final CpuThreshold
Static value 20 for CpuThreshold. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CpuThreshold
fromString
(String name) Creates or finds a CpuThreshold from its string representation.static Collection<CpuThreshold>
values()
Gets known CpuThreshold values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
FIVE
Static value 5 for CpuThreshold. -
ONE_ZERO
Static value 10 for CpuThreshold. -
ONE_FIVE
Static value 15 for CpuThreshold. -
TWO_ZERO
Static value 20 for CpuThreshold.
-
-
Constructor Details
-
CpuThreshold
Deprecated.Use thefromString(String)
factory method.Creates a new instance of CpuThreshold value.
-
-
Method Details
-
fromString
Creates or finds a CpuThreshold from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding CpuThreshold.
-
values
Gets known CpuThreshold values.- Returns:
- known CpuThreshold values.
-
fromString(String)
factory method.