Enum Type
- java.lang.Object
-
- java.lang.Enum<Type>
-
- me.snowdrop.istio.mixer.adapter.dogstatsd.Type
-
- All Implemented Interfaces:
Serializable,Comparable<Type>
public enum Type extends Enum<Type>
Describes the type of metric- Author:
- Christophe Laprun
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COUNTERIncrements a DataDog counterDISTRIBUTIONDISTRIBUTION is converted to a Timing Histogram for metrics with a time unit and a Histogram for all other unitsGAUGESets the new value of a DataDog gaugeUNKNOWN_TYPEDefault Unknown Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intvalue()static TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN_TYPE
public static final Type UNKNOWN_TYPE
Default Unknown Type
-
COUNTER
public static final Type COUNTER
Increments a DataDog counter
-
GAUGE
public static final Type GAUGE
Sets the new value of a DataDog gauge
-
DISTRIBUTION
public static final Type DISTRIBUTION
DISTRIBUTION is converted to a Timing Histogram for metrics with a time unit and a Histogram for all other units
-
-
Method Detail
-
values
public static 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 (Type c : 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 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
-
value
public int value()
-
-