MetricType Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. costmanagement. models. MetricType
- com.
- com.
public final class MetricType
extends ExpandableStringEnum<MetricType>
Metric to use when displaying costs.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Metric |
ACTUAL_COST
Static value Actual |
static final
Metric |
AHUB
Static value AHUB for Metric |
static final
Metric |
AMORTIZED_COST
Static value Amortized |
Constructor Summary
Constructor | Description |
---|---|
MetricType() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Metric |
fromString(String name)
Creates or finds a Metric |
static
Collection<Metric |
values()
Gets known Metric |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
ACTUAL_COST
public static final MetricType ACTUAL_COST
Static value ActualCost for MetricType.
AHUB
public static final MetricType AHUB
Static value AHUB for MetricType.
AMORTIZED_COST
public static final MetricType AMORTIZED_COST
Static value AmortizedCost for MetricType.
Constructor Details
MetricType
@Deprecated
public MetricType()
Deprecated
Creates a new instance of MetricType value.
Method Details
fromString
public static MetricType fromString(String name)
Creates or finds a MetricType from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known MetricType values.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for