|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.publish.BasicMetricFilter
public final class BasicMetricFilter
Filter that always returns true or false.
| Field Summary | |
|---|---|
static MetricFilter |
MATCH_ALL
Filter that matches all metrics. |
static MetricFilter |
MATCH_NONE
Filter that does not match any metrics. |
| Constructor Summary | |
|---|---|
BasicMetricFilter(boolean match)
Creates a new instance with a boolean indicating whether it should always match or always fail. |
|
| Method Summary | |
|---|---|
boolean |
matches(MonitorConfig config)
Check if a metric with the provided configuration should be selected and sent to observers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final MetricFilter MATCH_ALL
public static final MetricFilter MATCH_NONE
| Constructor Detail |
|---|
public BasicMetricFilter(boolean match)
match - should this filter match?| Method Detail |
|---|
public boolean matches(MonitorConfig config)
matches in interface MetricFilterconfig - config settings associated with the metric
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||