public class DefaultMetricFilter extends Object implements MetricFilter
MetricFilter
implementation that filters metrics based on MetricOptions.REPORTER_INCLUDES
/MetricOptions.REPORTER_EXCLUDES
.NO_OP_FILTER
Modifier and Type | Method and Description |
---|---|
boolean |
filter(Metric metric,
String name,
String logicalScope)
Filters a given metric.
|
static MetricFilter |
fromConfiguration(Configuration configuration) |
public boolean filter(Metric metric, String name, String logicalScope)
MetricFilter
filter
in interface MetricFilter
metric
- the metric to filtername
- the name of the metriclogicalScope
- the logical scope of the metricpublic static MetricFilter fromConfiguration(Configuration configuration)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.