public static enum MetricSample.Type extends Enum<MetricSample.Type>
| Enum Constant and Description |
|---|
COUNTER |
DISTRIBUTION_SUMMARY |
GAUGE |
LONG_TASK_TIMER |
TIMER |
| Modifier and Type | Method and Description |
|---|---|
static MetricSample.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricSample.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricSample.Type COUNTER
public static final MetricSample.Type GAUGE
public static final MetricSample.Type LONG_TASK_TIMER
public static final MetricSample.Type TIMER
public static final MetricSample.Type DISTRIBUTION_SUMMARY
public static MetricSample.Type[] values()
for (MetricSample.Type c : MetricSample.Type.values()) System.out.println(c);
public static MetricSample.Type 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 © 2011–2020 The Apache Software Foundation. All rights reserved.