Enum MetricKind
- java.lang.Object
-
- java.lang.Enum<MetricKind>
-
- me.snowdrop.istio.mixer.adapter.stackdriver.MetricKind
-
- All Implemented Interfaces:
Serializable,Comparable<MetricKind>
public enum MetricKind extends Enum<MetricKind>
The kind of measurement. It describes how the data is reported.- Author:
- Christophe Laprun
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUMULATIVEA value accumulated over a time interval.DELTAThe change in a value during a time interval.GAUGEAn instantaneous measurement of a value.METRIC_KIND_UNSPECIFIEDDo not use this default value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intvalue()static MetricKindvalueOf(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.
-
-
-
Enum Constant Detail
-
METRIC_KIND_UNSPECIFIED
public static final MetricKind METRIC_KIND_UNSPECIFIED
Do not use this default value.
-
GAUGE
public static final MetricKind GAUGE
An instantaneous measurement of a value.
-
DELTA
public static final MetricKind DELTA
The change in a value during a time interval.
-
CUMULATIVE
public static final 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.
-
-
Method Detail
-
values
public static MetricKind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MetricKind c : MetricKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetricKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
value
public int value()
-
-