public enum MetricType extends Enum<MetricType> implements com.google.protobuf.ProtocolMessageEnum
alluxio.grpc.MetricType
Enum Constant and Description |
---|
COUNTER
COUNTER represents values which can be incremented or decremented over time by certain operations.
|
EXECUTOR_SERVICE
EXECUTOR_SERVICE represents an executor service.
|
GAUGE
GAUGE is the simplest type of metric.
|
METER
METER represents a metric value at a _rate_.
|
TIMER
TIMER represents a histogram of the rate of the specified events.
|
Modifier and Type | Field and Description |
---|---|
static int |
COUNTER_VALUE
COUNTER represents values which can be incremented or decremented over time by certain operations.
|
static int |
EXECUTOR_SERVICE_VALUE
EXECUTOR_SERVICE represents an executor service.
|
static int |
GAUGE_VALUE
GAUGE is the simplest type of metric.
|
static int |
METER_VALUE
METER represents a metric value at a _rate_.
|
static int |
TIMER_VALUE
TIMER represents a histogram of the rate of the specified events.
|
Modifier and Type | Method and Description |
---|---|
static MetricType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<MetricType> |
internalGetValueMap() |
static MetricType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static MetricType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MetricType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricType GAUGE
GAUGE is the simplest type of metric. If you're not sure which to use, gauge is a safe choice. It is represents a general K-V pair.
GAUGE = 0;
public static final MetricType COUNTER
COUNTER represents values which can be incremented or decremented over time by certain operations. It does not rely on timing to determine the value.
COUNTER = 1;
public static final MetricType METER
METER represents a metric value at a _rate_. The value of the metric varies with the time over which events are recorded
METER = 2;
public static final MetricType TIMER
TIMER represents a histogram of the rate of the specified events.
TIMER = 3;
public static final MetricType EXECUTOR_SERVICE
EXECUTOR_SERVICE represents an executor service.
EXECUTOR_SERVICE = 4;
public static final int GAUGE_VALUE
GAUGE is the simplest type of metric. If you're not sure which to use, gauge is a safe choice. It is represents a general K-V pair.
GAUGE = 0;
public static final int COUNTER_VALUE
COUNTER represents values which can be incremented or decremented over time by certain operations. It does not rely on timing to determine the value.
COUNTER = 1;
public static final int METER_VALUE
METER represents a metric value at a _rate_. The value of the metric varies with the time over which events are recorded
METER = 2;
public static final int TIMER_VALUE
TIMER represents a histogram of the rate of the specified events.
TIMER = 3;
public static final int EXECUTOR_SERVICE_VALUE
EXECUTOR_SERVICE represents an executor service.
EXECUTOR_SERVICE = 4;
public static MetricType[] values()
for (MetricType c : MetricType.values()) System.out.println(c);
public static MetricType 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 nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static MetricType valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static MetricType forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<MetricType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static MetricType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023. All Rights Reserved.