Package | Description |
---|---|
org.eclipse.microprofile.metrics |
Modifier and Type | Method and Description |
---|---|
static MetricType |
MetricType.from(Class<?> in)
Convert the metric class type into an enum
|
static MetricType |
MetricType.from(String in)
Convert the string representation into an enum
|
MetricType |
Metadata.getTypeRaw()
Returns the
MetricType of the metric |
static MetricType |
MetricType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricType[] |
MetricType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Metadata.setType(MetricType type)
Sets the type of the metric
|
Constructor and Description |
---|
Metadata(String name,
MetricType type)
Constructs a Metadata object with default units
|
Metadata(String name,
MetricType type,
String unit)
Constructs a Metadata object
|
Metadata(String name,
String displayName,
String description,
MetricType type,
String unit)
Constructs a Metadata object
|
Metadata(String name,
String displayName,
String description,
MetricType type,
String unit,
String tags)
Constructs a Metadata object
|
Copyright © 2017–2018 Eclipse MicroProfile. All rights reserved.