public static enum MetricDescriptor.MetricKind extends java.lang.Enum<MetricDescriptor.MetricKind> implements ProtocolMessageEnum
The kind of measurement. It describes how the data is reported.Protobuf enum
google.api.MetricDescriptor.MetricKind
Enum Constant and Description |
---|
CUMULATIVE
A value accumulated over a time interval.
|
DELTA
The change in a value during a time interval.
|
GAUGE
An instantaneous measurement of a value.
|
METRIC_KIND_UNSPECIFIED
Do not use this default value.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CUMULATIVE_VALUE
A value accumulated over a time interval.
|
static int |
DELTA_VALUE
The change in a value during a time interval.
|
static int |
GAUGE_VALUE
An instantaneous measurement of a value.
|
static int |
METRIC_KIND_UNSPECIFIED_VALUE
Do not use this default value.
|
Modifier and Type | Method and Description |
---|---|
static MetricDescriptor.MetricKind |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<MetricDescriptor.MetricKind> |
internalGetValueMap() |
static MetricDescriptor.MetricKind |
valueOf(Descriptors.EnumValueDescriptor desc) |
static MetricDescriptor.MetricKind |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MetricDescriptor.MetricKind |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MetricDescriptor.MetricKind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricDescriptor.MetricKind METRIC_KIND_UNSPECIFIED
Do not use this default value.
METRIC_KIND_UNSPECIFIED = 0;
public static final MetricDescriptor.MetricKind GAUGE
An instantaneous measurement of a value.
GAUGE = 1;
public static final MetricDescriptor.MetricKind DELTA
The change in a value during a time interval.
DELTA = 2;
public static final MetricDescriptor.MetricKind CUMULATIVE
A value accumulated over a time interval. Cumulative measurements in a time series should have the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points.
CUMULATIVE = 3;
public static final MetricDescriptor.MetricKind UNRECOGNIZED
public static final int METRIC_KIND_UNSPECIFIED_VALUE
Do not use this default value.
METRIC_KIND_UNSPECIFIED = 0;
public static final int GAUGE_VALUE
An instantaneous measurement of a value.
GAUGE = 1;
public static final int DELTA_VALUE
The change in a value during a time interval.
DELTA = 2;
public static final int CUMULATIVE_VALUE
A value accumulated over a time interval. Cumulative measurements in a time series should have the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points.
CUMULATIVE = 3;
public static MetricDescriptor.MetricKind[] values()
for (MetricDescriptor.MetricKind c : MetricDescriptor.MetricKind.values()) System.out.println(c);
public static MetricDescriptor.MetricKind valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static MetricDescriptor.MetricKind valueOf(int value)
forNumber(int)
instead.public static MetricDescriptor.MetricKind forNumber(int value)
public static Internal.EnumLiteMap<MetricDescriptor.MetricKind> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static MetricDescriptor.MetricKind valueOf(Descriptors.EnumValueDescriptor desc)