public enum Unit extends Enum<Unit>
Metric
). Meant to
provide further information on the type of value measured by user
metrics.
The unit values will end up populating the metric tag MetricTags.UNIT
. It can be used by UI tools to format the value and it's
not used by Jet itself.
Enum Constant and Description |
---|
BOOLEAN
0 or 1
|
BYTES
Size, counter, represented in bytes
|
COUNT
Number of items: size, counter...
|
ENUM
0..n, ordinal of an enum
|
MS
Timestamp or duration represented in ms
|
PERCENT
An integer in range 0..100
|
Modifier and Type | Method and Description |
---|---|
static Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Unit BYTES
public static final Unit MS
public static final Unit PERCENT
public static final Unit COUNT
public static final Unit BOOLEAN
public static final Unit ENUM
public static Unit[] values()
for (Unit c : Unit.values()) System.out.println(c);
public static Unit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2023 Hazelcast, Inc.. All rights reserved.