Package com.codahale.metrics
Enum MetricAttribute
- java.lang.Object
-
- java.lang.Enum<MetricAttribute>
-
- com.codahale.metrics.MetricAttribute
-
- All Implemented Interfaces:
Serializable
,Comparable<MetricAttribute>
public enum MetricAttribute extends Enum<MetricAttribute>
Represents attributes of metrics which can be reported.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCode()
static MetricAttribute
valueOf(String name)
Returns the enum constant of this type with the specified name.static MetricAttribute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAX
public static final MetricAttribute MAX
-
MEAN
public static final MetricAttribute MEAN
-
MIN
public static final MetricAttribute MIN
-
STDDEV
public static final MetricAttribute STDDEV
-
P50
public static final MetricAttribute P50
-
P75
public static final MetricAttribute P75
-
P95
public static final MetricAttribute P95
-
P98
public static final MetricAttribute P98
-
P99
public static final MetricAttribute P99
-
P999
public static final MetricAttribute P999
-
COUNT
public static final MetricAttribute COUNT
-
M1_RATE
public static final MetricAttribute M1_RATE
-
M5_RATE
public static final MetricAttribute M5_RATE
-
M15_RATE
public static final MetricAttribute M15_RATE
-
MEAN_RATE
public static final MetricAttribute MEAN_RATE
-
-
Method Detail
-
values
public static MetricAttribute[] 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 (MetricAttribute c : MetricAttribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MetricAttribute 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
-
getCode
public String getCode()
-
-