public enum MetricKind extends Enum<MetricKind> implements com.google.protobuf.ProtocolMessageEnum
MetricKind indicates the semantics of the points (i.e. how to interpret values relative to each other).Protobuf enum
lightstep.metrics.MetricKind| Enum Constant and Description |
|---|
COUNTER
Counter metrics measure change over an interval.
|
GAUGE
Gauge metrics measure the value at a point in time.
|
INVALID_METRIC_KIND
InvalidMetricKind is the default value for the MetricKind.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
COUNTER_VALUE
Counter metrics measure change over an interval.
|
static int |
GAUGE_VALUE
Gauge metrics measure the value at a point in time.
|
static int |
INVALID_METRIC_KIND_VALUE
InvalidMetricKind is the default value for the MetricKind.
|
| Modifier and Type | Method and Description |
|---|---|
static MetricKind |
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<MetricKind> |
internalGetValueMap() |
static MetricKind |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static MetricKind |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MetricKind |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricKind INVALID_METRIC_KIND
InvalidMetricKind is the default value for the MetricKind. Some languages' proto compilers (e.g. Go) return the default if no value is set. The default is marked invalid here to avoid a common mistake where a field is left unset and appears to be set to the default.
INVALID_METRIC_KIND = 0;public static final MetricKind COUNTER
Counter metrics measure change over an interval. When aggregated, counter metrics are usually added.
COUNTER = 1;public static final MetricKind GAUGE
Gauge metrics measure the value at a point in time. When aggregated, intermediate values are often dropped for the latest value.
GAUGE = 2;public static final MetricKind UNRECOGNIZED
public static final int INVALID_METRIC_KIND_VALUE
InvalidMetricKind is the default value for the MetricKind. Some languages' proto compilers (e.g. Go) return the default if no value is set. The default is marked invalid here to avoid a common mistake where a field is left unset and appears to be set to the default.
INVALID_METRIC_KIND = 0;public static final int COUNTER_VALUE
Counter metrics measure change over an interval. When aggregated, counter metrics are usually added.
COUNTER = 1;public static final int GAUGE_VALUE
Gauge metrics measure the value at a point in time. When aggregated, intermediate values are often dropped for the latest value.
GAUGE = 2;public static MetricKind[] values()
for (MetricKind c : MetricKind.values()) System.out.println(c);
public static MetricKind 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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static MetricKind valueOf(int value)
forNumber(int) instead.public static MetricKind forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<MetricKind> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static MetricKind valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2020 LightStep. All rights reserved.