Package org.apache.beam.sdk.metrics
Class MetricNameFilter
- java.lang.Object
-
- org.apache.beam.sdk.metrics.MetricNameFilter
-
@Experimental(METRICS) public abstract class MetricNameFilter extends java.lang.Object
The name of a metric.
-
-
Constructor Summary
Constructors Constructor Description MetricNameFilter()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract @Nullable java.lang.String
getName()
If set, the metric must have this name to match thisMetricNameFilter
.abstract java.lang.String
getNamespace()
The inNamespace that a metric must be in to match thisMetricNameFilter
.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)
-
-
-
Method Detail
-
getNamespace
public abstract java.lang.String getNamespace()
The inNamespace that a metric must be in to match thisMetricNameFilter
.
-
getName
public abstract @Nullable java.lang.String getName()
If set, the metric must have this name to match thisMetricNameFilter
.
-
inNamespace
public static MetricNameFilter inNamespace(java.lang.String namespace)
-
inNamespace
public static MetricNameFilter inNamespace(java.lang.Class<?> namespace)
-
named
public static MetricNameFilter named(java.lang.String namespace, java.lang.String name)
-
named
public static MetricNameFilter named(java.lang.Class<?> namespace, java.lang.String name)
-
-