public enum MetricNamePostfixPolicy extends Enum<MetricNamePostfixPolicy>
| Enum Constant and Description |
|---|
ADD_ALL_TYPES
Append the type of the metric to all metric names.
|
ADD_COMPOSITE_TYPES
Append the type of the metric only to names of composite metrics, such as timers, meters, and histograms.
|
OFF
Do not append the metric type to metric names.
|
| Modifier and Type | Method and Description |
|---|---|
static MetricNamePostfixPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricNamePostfixPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricNamePostfixPolicy ADD_ALL_TYPES
public static final MetricNamePostfixPolicy ADD_COMPOSITE_TYPES
public static final MetricNamePostfixPolicy OFF
public static MetricNamePostfixPolicy[] values()
for (MetricNamePostfixPolicy c : MetricNamePostfixPolicy.values()) System.out.println(c);
public static MetricNamePostfixPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016–2018. All rights reserved.