@Experimental(value=METRICS) public abstract class MetricName extends java.lang.Object implements java.io.Serializable
namespace()
and a name()
. The namespace()
allows grouping related metrics together and also prevents collisions between multiple metrics
with the same name.Constructor and Description |
---|
MetricName() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
name()
The name of this metric.
|
static MetricName |
named(java.lang.Class<?> namespace,
java.lang.String name) |
static MetricName |
named(java.lang.String namespace,
java.lang.String name) |
abstract java.lang.String |
namespace()
The namespace associated with this metric.
|
public abstract java.lang.String namespace()
public abstract java.lang.String name()
public static MetricName named(java.lang.String namespace, java.lang.String name)
public static MetricName named(java.lang.Class<?> namespace, java.lang.String name)