public static enum MetricDescriptor.Type extends Enum<MetricDescriptor.Type>
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 and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points.
Enum Constant and Description |
---|
CUMULATIVE_DISTRIBUTION
An cumulative measurement of a distribution value.
|
CUMULATIVE_DOUBLE
An cumulative measurement of a double value.
|
CUMULATIVE_INT64
An cumulative measurement of an int64 value.
|
GAUGE_DISTRIBUTION
An instantaneous measurement of a distribution value.
|
GAUGE_DOUBLE
An instantaneous measurement of a double value.
|
GAUGE_INT64
An instantaneous measurement of an int64 value.
|
SUMMARY
Some frameworks implemented DISTRIBUTION as a summary of observations (usually things like
request durations and response sizes).
|
Modifier and Type | Method and Description |
---|---|
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 GAUGE_INT64
public static final MetricDescriptor.Type GAUGE_DOUBLE
public static final MetricDescriptor.Type GAUGE_DISTRIBUTION
public static final MetricDescriptor.Type CUMULATIVE_INT64
public static final MetricDescriptor.Type CUMULATIVE_DOUBLE
public static final MetricDescriptor.Type CUMULATIVE_DISTRIBUTION
public static final MetricDescriptor.Type SUMMARY
This is not recommended, since it cannot be aggregated.
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 null