public static enum MetricDescriptor.Type extends Enum<MetricDescriptor.Type> implements com.google.protobuf.ProtocolMessageEnum
The kind of metric. It describes how the data is reported. A gauge is an instantaneous measurement of a value. A cumulative measurement is a value accumulated over a time interval. In a time series, cumulative measurements should have the same start time, increasing values and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points.Protobuf enum
opencensus.proto.metrics.v1.MetricDescriptor.Type| Enum Constant and Description |
|---|
CUMULATIVE_DISTRIBUTION
Distribution cumulative measurement.
|
CUMULATIVE_DOUBLE
Floating point cumulative measurement.
|
CUMULATIVE_INT64
Integer cumulative measurement.
|
GAUGE_DISTRIBUTION
Distribution gauge measurement.
|
GAUGE_DOUBLE
Floating point gauge.
|
GAUGE_INT64
Integer gauge.
|
SUMMARY
Some frameworks implemented Histograms as a summary of observations
(usually things like request durations and response sizes).
|
UNRECOGNIZED |
UNSPECIFIED
Do not use this default value.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
CUMULATIVE_DISTRIBUTION_VALUE
Distribution cumulative measurement.
|
static int |
CUMULATIVE_DOUBLE_VALUE
Floating point cumulative measurement.
|
static int |
CUMULATIVE_INT64_VALUE
Integer cumulative measurement.
|
static int |
GAUGE_DISTRIBUTION_VALUE
Distribution gauge measurement.
|
static int |
GAUGE_DOUBLE_VALUE
Floating point gauge.
|
static int |
GAUGE_INT64_VALUE
Integer gauge.
|
static int |
SUMMARY_VALUE
Some frameworks implemented Histograms as a summary of observations
(usually things like request durations and response sizes).
|
static int |
UNSPECIFIED_VALUE
Do not use this default value.
|
| Modifier and Type | Method and Description |
|---|---|
static MetricDescriptor.Type |
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<MetricDescriptor.Type> |
internalGetValueMap() |
static MetricDescriptor.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static MetricDescriptor.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MetricDescriptor.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricDescriptor.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricDescriptor.Type UNSPECIFIED
Do not use this default value.
UNSPECIFIED = 0;public static final MetricDescriptor.Type GAUGE_INT64
Integer gauge. The value can go both up and down.
GAUGE_INT64 = 1;public static final MetricDescriptor.Type GAUGE_DOUBLE
Floating point gauge. The value can go both up and down.
GAUGE_DOUBLE = 2;public static final MetricDescriptor.Type GAUGE_DISTRIBUTION
Distribution gauge measurement. The count and sum can go both up and down. Recorded values are always >= 0. Used in scenarios like a snapshot of time the current items in a queue have spent there.
GAUGE_DISTRIBUTION = 3;public static final MetricDescriptor.Type CUMULATIVE_INT64
Integer cumulative measurement. The value cannot decrease, if resets then the start_time should also be reset.
CUMULATIVE_INT64 = 4;public static final MetricDescriptor.Type CUMULATIVE_DOUBLE
Floating point cumulative measurement. The value cannot decrease, if resets then the start_time should also be reset. Recorded values are always >= 0.
CUMULATIVE_DOUBLE = 5;public static final MetricDescriptor.Type CUMULATIVE_DISTRIBUTION
Distribution cumulative measurement. The count and sum cannot decrease, if resets then the start_time should also be reset.
CUMULATIVE_DISTRIBUTION = 6;public static final MetricDescriptor.Type SUMMARY
Some frameworks implemented Histograms as a summary of observations (usually things like request durations and response sizes). While it also provides a total count of observations and a sum of all observed values, it calculates configurable percentiles over a sliding time window. This is not recommended, since it cannot be aggregated.
SUMMARY = 7;public static final MetricDescriptor.Type UNRECOGNIZED
public static final int UNSPECIFIED_VALUE
Do not use this default value.
UNSPECIFIED = 0;public static final int GAUGE_INT64_VALUE
Integer gauge. The value can go both up and down.
GAUGE_INT64 = 1;public static final int GAUGE_DOUBLE_VALUE
Floating point gauge. The value can go both up and down.
GAUGE_DOUBLE = 2;public static final int GAUGE_DISTRIBUTION_VALUE
Distribution gauge measurement. The count and sum can go both up and down. Recorded values are always >= 0. Used in scenarios like a snapshot of time the current items in a queue have spent there.
GAUGE_DISTRIBUTION = 3;public static final int CUMULATIVE_INT64_VALUE
Integer cumulative measurement. The value cannot decrease, if resets then the start_time should also be reset.
CUMULATIVE_INT64 = 4;public static final int CUMULATIVE_DOUBLE_VALUE
Floating point cumulative measurement. The value cannot decrease, if resets then the start_time should also be reset. Recorded values are always >= 0.
CUMULATIVE_DOUBLE = 5;public static final int CUMULATIVE_DISTRIBUTION_VALUE
Distribution cumulative measurement. The count and sum cannot decrease, if resets then the start_time should also be reset.
CUMULATIVE_DISTRIBUTION = 6;public static final int SUMMARY_VALUE
Some frameworks implemented Histograms as a summary of observations (usually things like request durations and response sizes). While it also provides a total count of observations and a sum of all observed values, it calculates configurable percentiles over a sliding time window. This is not recommended, since it cannot be aggregated.
SUMMARY = 7;public static MetricDescriptor.Type[] values()
for (MetricDescriptor.Type c : MetricDescriptor.Type.values()) System.out.println(c);
public static MetricDescriptor.Type 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 MetricDescriptor.Type valueOf(int value)
forNumber(int) instead.public static MetricDescriptor.Type forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<MetricDescriptor.Type> 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 MetricDescriptor.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)