UnitType Class
- java.
lang. Object - com.
azure. core. util. ExpandableStringEnum<T> - com.
azure. resourcemanager. cosmos. models. UnitType
- com.
- com.
public final class UnitType
extends ExpandableStringEnum<UnitType>
The unit of the metric.
Field Summary
Modifier and Type | Field and Description |
---|---|
static final
Unit |
BYTES
Static value Bytes for Unit |
static final
Unit |
BYTES_PER_SECOND
Static value Bytes |
static final
Unit |
COUNT
Static value Count for Unit |
static final
Unit |
COUNT_PER_SECOND
Static value Count |
static final
Unit |
MILLISECONDS
Static value Milliseconds for Unit |
static final
Unit |
PERCENT
Static value Percent for Unit |
static final
Unit |
SECONDS
Static value Seconds for Unit |
Constructor Summary
Constructor | Description |
---|---|
UnitType() |
Deprecated
Use the fromString(String name) factory method.
Creates a new instance of Unit |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Unit |
fromString(String name)
Creates or finds a Unit |
static
Collection<Unit |
values()
Gets known Unit |
Methods inherited from ExpandableStringEnum
Methods inherited from java.lang.Object
Field Details
BYTES
public static final UnitType BYTES
Static value Bytes for UnitType.
BYTES_PER_SECOND
public static final UnitType BYTES_PER_SECOND
Static value BytesPerSecond for UnitType.
COUNT
public static final UnitType COUNT
Static value Count for UnitType.
COUNT_PER_SECOND
public static final UnitType COUNT_PER_SECOND
Static value CountPerSecond for UnitType.
MILLISECONDS
public static final UnitType MILLISECONDS
Static value Milliseconds for UnitType.
PERCENT
public static final UnitType PERCENT
Static value Percent for UnitType.
SECONDS
public static final UnitType SECONDS
Static value Seconds for UnitType.
Constructor Details
UnitType
@Deprecated
public UnitType()
Deprecated
Creates a new instance of UnitType value.
Method Details
fromString
public static UnitType fromString(String name)
Creates or finds a UnitType from its string representation.
Parameters:
Returns:
values
public static Collection
Gets known UnitType values.
Returns:
Applies to
Azure SDK for Java