Class MetricType
java.lang.Object
com.azure.core.util.ExpandableStringEnum<MetricType>
com.azure.resourcemanager.costmanagement.models.MetricType
Metric to use when displaying costs.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MetricType
Static value ActualCost for MetricType.static final MetricType
Static value AHUB for MetricType.static final MetricType
Static value AmortizedCost for MetricType. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MetricType
fromString
(String name) Creates or finds a MetricType from its string representation.static Collection<MetricType>
values()
Gets known MetricType values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, hashCode, toString, values
-
Field Details
-
ACTUAL_COST
Static value ActualCost for MetricType. -
AMORTIZED_COST
Static value AmortizedCost for MetricType. -
AHUB
Static value AHUB for MetricType.
-
-
Constructor Details
-
MetricType
Deprecated.Use thefromString(String)
factory method.Creates a new instance of MetricType value.
-
-
Method Details
-
fromString
Creates or finds a MetricType from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding MetricType.
-
values
Gets known MetricType values.- Returns:
- known MetricType values.
-
fromString(String)
factory method.