public interface MetricName extends Comparable<MetricName>
| Modifier and Type | Method and Description |
|---|---|
MetricName |
append(String suffix)
Create and return another MetricName by appending the suffix.
|
String |
getSimpleName()
Return a simple java like name.
|
boolean |
isError()
Return true if the metric is considered an "error" metric with a name ending in ".error".
|
static MetricName |
of(Class<?> cls,
String name)
Create a MetricName based on a class and name.
|
static MetricName |
of(String name)
Create a Metric name by parsing a name that is expected to include periods (dot notation
similar to package.Class.method).
|
boolean |
startsWith(String prefix)
Return true if the metric name starts with the given prefix.
|
compareTostatic MetricName of(String name)
static MetricName of(Class<?> cls, String name)
Often the name maps to a method name.
String getSimpleName()
MetricName append(String suffix)
boolean startsWith(String prefix)
boolean isError()
Copyright © 2019. All rights reserved.