public final class BasicMetricFilter extends java.lang.Object implements MetricFilter
Modifier and Type | Field and Description |
---|---|
static MetricFilter |
MATCH_ALL
Filter that matches all metrics.
|
static MetricFilter |
MATCH_NONE
Filter that does not match any metrics.
|
Constructor and Description |
---|
BasicMetricFilter(boolean match)
Creates a new instance with a boolean indicating whether it should
always match or always fail.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(MonitorConfig config)
Check if a metric with the provided configuration should be selected and
sent to observers.
|
public static final MetricFilter MATCH_ALL
public static final MetricFilter MATCH_NONE
public BasicMetricFilter(boolean match)
match
- should this filter match?public boolean matches(MonitorConfig config)
matches
in interface MetricFilter
config
- config settings associated with the metric