Package | Description |
---|---|
org.eclipse.microprofile.metrics |
MicroProfile Metrics
|
Modifier and Type | Method and Description |
---|---|
static MetricType |
MetricType.from(Class<?> in)
Convert the metric Java class into a MetricType
|
static MetricType |
MetricType.from(String in)
Convert the string representation into an enum
|
static MetricType |
MetricType.fromClassName(String className)
Convert the metric Java class name into a MetricType
|
MetricType |
Metadata.getTypeRaw()
Returns the
MetricType of the metric if set, otherwise it returns INVALID |
MetricType |
DefaultMetadata.getTypeRaw() |
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 |
---|---|
MetadataBuilder |
MetadataBuilder.withType(MetricType type)
Sets the type.
|
Constructor and Description |
---|
DefaultMetadata(String name,
String displayName,
String description,
MetricType type,
String unit) |
Copyright © 2020. All rights reserved.