Enum ValueType
- java.lang.Object
-
- java.lang.Enum<ValueType>
-
- me.snowdrop.istio.mixer.adapter.stackdriver.ValueType
-
- All Implemented Interfaces:
Serializable,Comparable<ValueType>
public enum ValueType extends Enum<ValueType>
- Author:
- Christophe Laprun
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLThe value is a boolean.DISTRIBUTIONThe value is a [`Distribution`][google.api.Distribution].DOUBLEThe value is a double precision floating point number.INT64The value is a signed 64-bit integer.MONEYThe value is money.STRINGThe value is a text string.VALUE_TYPE_UNSPECIFIEDDo not use this default value.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intvalue()static ValueTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ValueType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALUE_TYPE_UNSPECIFIED
public static final ValueType VALUE_TYPE_UNSPECIFIED
Do not use this default value.
-
BOOL
public static final ValueType BOOL
The value is a boolean. This value type can be used only if the metric kind is `GAUGE`.
-
INT64
public static final ValueType INT64
The value is a signed 64-bit integer.
-
DOUBLE
public static final ValueType DOUBLE
The value is a double precision floating point number.
-
STRING
public static final ValueType STRING
The value is a text string. This value type can be used only if the metric kind is `GAUGE`.
-
DISTRIBUTION
public static final ValueType DISTRIBUTION
The value is a [`Distribution`][google.api.Distribution].
-
MONEY
public static final ValueType MONEY
The value is money.
-
-
Method Detail
-
values
public static ValueType[] 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 (ValueType c : ValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValueType 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()
-
-