Class MetricUnit
java.lang.Object
com.azure.core.util.ExpandableStringEnum<MetricUnit>
com.azure.monitor.query.metrics.models.MetricUnit
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
The unit of the metric.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MetricUnit
Rate unit of binary digits per second.static final MetricUnit
Unit of data transfer or storage.static final MetricUnit
Unit of memory in bytes.static final MetricUnit
Rate unit of memory in bytes per second.static final MetricUnit
Unit of processing power.static final MetricUnit
Unit of raw quantity.static final MetricUnit
Rate unit of raw quantity per second.static final MetricUnit
Unit of processing power in 1/1000th of a CPU core.static final MetricUnit
Unit of time in 1/1000th of a second.static final MetricUnit
Unit of processing power in one billionth of a CPU core.static final MetricUnit
Percentage unit.static final MetricUnit
Unit of time in seconds.static final MetricUnit
No specified unit. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricUnit
fromString
(String name) Creates or finds a MetricUnit from its string representation.static Collection
<MetricUnit> values()
Gets known MetricUnit values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
COUNT
Unit of raw quantity. -
BYTES
Unit of memory in bytes. -
SECONDS
Unit of time in seconds. -
COUNT_PER_SECOND
Rate unit of raw quantity per second. -
BYTES_PER_SECOND
Rate unit of memory in bytes per second. -
PERCENT
Percentage unit. -
MILLI_SECONDS
Unit of time in 1/1000th of a second. -
BYTE_SECONDS
Unit of data transfer or storage. It is the size of the data in bytes multiplied by the time it takes to transfer or store the data in seconds. -
UNSPECIFIED
No specified unit. -
CORES
Unit of processing power. -
MILLI_CORES
Unit of processing power in 1/1000th of a CPU core. -
NANO_CORES
Unit of processing power in one billionth of a CPU core. -
BITS_PER_SECOND
Rate unit of binary digits per second.
-
-
Constructor Details
-
MetricUnit
Deprecated.Use thefromString(String)
factory method.Creates a new instance of MetricUnit value.
-
-
Method Details
-
fromString
Creates or finds a MetricUnit from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding MetricUnit.
-
values
Gets known MetricUnit values.- Returns:
- known MetricUnit values.
-
fromString(String)
factory method.