@Experimental(value=METRICS) public abstract class MetricNameFilter extends java.lang.Object
Constructor and Description |
---|
MetricNameFilter() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getName()
If set, the metric must have this name to match this
MetricNameFilter . |
abstract java.lang.String |
getNamespace()
The inNamespace that a metric must be in to match this
MetricNameFilter . |
static MetricNameFilter |
inNamespace(java.lang.Class<?> namespace) |
static MetricNameFilter |
inNamespace(java.lang.String namespace) |
static MetricNameFilter |
named(java.lang.Class<?> namespace,
java.lang.String name) |
static MetricNameFilter |
named(java.lang.String namespace,
java.lang.String name) |
public abstract java.lang.String getNamespace()
MetricNameFilter
.@Nullable public abstract java.lang.String getName()
MetricNameFilter
.public static MetricNameFilter inNamespace(java.lang.String namespace)
public static MetricNameFilter inNamespace(java.lang.Class<?> namespace)
public static MetricNameFilter named(java.lang.String namespace, java.lang.String name)
public static MetricNameFilter named(java.lang.Class<?> namespace, java.lang.String name)