Enum MetricData.Type
- java.lang.Object
-
- java.lang.Enum<MetricData.Type>
-
- io.opentelemetry.sdk.metrics.data.MetricData.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MetricData.Type>
- Enclosing class:
- MetricData
public static enum MetricData.Type extends java.lang.Enum<MetricData.Type>
The kind of metric. It describes how the data is reported.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GAUGE_DOUBLEA Gauge represents a measurement of a double value at a moment in time.GAUGE_LONGA Gauge represents a measurement of a long value at a moment in time.MONOTONIC_DOUBLEAn cumulative measurement of a double value.MONOTONIC_LONGAn cumulative measurement of an long (int64) value.NON_MONOTONIC_DOUBLEAn instantaneous measurement of a double value.NON_MONOTONIC_LONGAn instantaneous measurement of a long (int64) value.SUMMARYA Summary of measurements of numeric values, containing the minimum value recorded, the maximum value recorded, the sum of all measurements and the total number of measurements recorded.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MetricData.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MetricData.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NON_MONOTONIC_LONG
public static final MetricData.Type NON_MONOTONIC_LONG
An instantaneous measurement of a long (int64) value. ReportsMetricData.LongPointpoints.
-
NON_MONOTONIC_DOUBLE
public static final MetricData.Type NON_MONOTONIC_DOUBLE
An instantaneous measurement of a double value. ReportsMetricData.DoublePointpoints.
-
MONOTONIC_LONG
public static final MetricData.Type MONOTONIC_LONG
An cumulative measurement of an long (int64) value. ReportsMetricData.LongPointpoints.
-
MONOTONIC_DOUBLE
public static final MetricData.Type MONOTONIC_DOUBLE
An cumulative measurement of a double value. ReportsMetricData.DoublePointpoints.
-
SUMMARY
public static final MetricData.Type SUMMARY
A Summary of measurements of numeric values, containing the minimum value recorded, the maximum value recorded, the sum of all measurements and the total number of measurements recorded.
-
GAUGE_LONG
public static final MetricData.Type GAUGE_LONG
A Gauge represents a measurement of a long value at a moment in time. Generally only one instance of a given Gauge metric will be reported per reporting interval.
-
GAUGE_DOUBLE
public static final MetricData.Type GAUGE_DOUBLE
A Gauge represents a measurement of a double value at a moment in time. Generally only one instance of a given Gauge metric will be reported per reporting interval.
-
-
Method Detail
-
values
public static MetricData.Type[] 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 (MetricData.Type c : MetricData.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetricData.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-