Package io.opencensus.proto.metrics.v1
Enum MetricDescriptor.Type
- java.lang.Object
-
- java.lang.Enum<MetricDescriptor.Type>
-
- io.opencensus.proto.metrics.v1.MetricDescriptor.Type
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<MetricDescriptor.Type>
- Enclosing class:
- MetricDescriptor
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 enumopencensus.proto.metrics.v1.MetricDescriptor.Type
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUMULATIVE_DISTRIBUTIONDistribution cumulative measurement.CUMULATIVE_DOUBLEFloating point cumulative measurement.CUMULATIVE_INT64Integer cumulative measurement.GAUGE_DISTRIBUTIONDistribution gauge measurement.GAUGE_DOUBLEFloating point gauge.GAUGE_INT64Integer gauge.SUMMARYSome frameworks implemented Histograms as a summary of observations (usually things like request durations and response sizes).UNRECOGNIZEDUNSPECIFIEDDo not use this default value.
-
Field Summary
Fields Modifier and Type Field Description static intCUMULATIVE_DISTRIBUTION_VALUEDistribution cumulative measurement.static intCUMULATIVE_DOUBLE_VALUEFloating point cumulative measurement.static intCUMULATIVE_INT64_VALUEInteger cumulative measurement.static intGAUGE_DISTRIBUTION_VALUEDistribution gauge measurement.static intGAUGE_DOUBLE_VALUEFloating point gauge.static intGAUGE_INT64_VALUEInteger gauge.static intSUMMARY_VALUESome frameworks implemented Histograms as a summary of observations (usually things like request durations and response sizes).static intUNSPECIFIED_VALUEDo not use this default value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static MetricDescriptor.TypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<MetricDescriptor.Type>internalGetValueMap()static MetricDescriptor.TypevalueOf(int value)Deprecated.static MetricDescriptor.TypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static MetricDescriptor.TypevalueOf(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.
-
-
-
Enum Constant Detail
-
UNSPECIFIED
public static final MetricDescriptor.Type UNSPECIFIED
Do not use this default value.
UNSPECIFIED = 0;
-
GAUGE_INT64
public static final MetricDescriptor.Type GAUGE_INT64
Integer gauge. The value can go both up and down.
GAUGE_INT64 = 1;
-
GAUGE_DOUBLE
public static final MetricDescriptor.Type GAUGE_DOUBLE
Floating point gauge. The value can go both up and down.
GAUGE_DOUBLE = 2;
-
GAUGE_DISTRIBUTION
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;
-
CUMULATIVE_INT64
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;
-
CUMULATIVE_DOUBLE
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;
-
CUMULATIVE_DISTRIBUTION
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;
-
SUMMARY
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;
-
UNRECOGNIZED
public static final MetricDescriptor.Type UNRECOGNIZED
-
-
Field Detail
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUE
Do not use this default value.
UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
GAUGE_INT64_VALUE
public static final int GAUGE_INT64_VALUE
Integer gauge. The value can go both up and down.
GAUGE_INT64 = 1;- See Also:
- Constant Field Values
-
GAUGE_DOUBLE_VALUE
public static final int GAUGE_DOUBLE_VALUE
Floating point gauge. The value can go both up and down.
GAUGE_DOUBLE = 2;- See Also:
- Constant Field Values
-
GAUGE_DISTRIBUTION_VALUE
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;- See Also:
- Constant Field Values
-
CUMULATIVE_INT64_VALUE
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;- See Also:
- Constant Field Values
-
CUMULATIVE_DOUBLE_VALUE
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;- See Also:
- Constant Field Values
-
CUMULATIVE_DISTRIBUTION_VALUE
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;- See Also:
- Constant Field Values
-
SUMMARY_VALUE
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;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static MetricDescriptor.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 (MetricDescriptor.Type c : MetricDescriptor.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 MetricDescriptor.Type 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
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static MetricDescriptor.Type valueOf(int value)
Deprecated.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:
value- 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
-
forNumber
public static MetricDescriptor.Type forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<MetricDescriptor.Type> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static MetricDescriptor.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
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:
desc- 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
-
-