|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.publish.PrefixMetricFilter
public final class PrefixMetricFilter
Filter that checks for a prefix match on a given tag. This can be useful providing rules associated with the canonical class name.
| Constructor Summary | |
|---|---|
PrefixMetricFilter(java.lang.String tagKey,
MetricFilter root,
java.util.NavigableMap<java.lang.String,MetricFilter> filters)
Creates a new prefix filter. |
|
| 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 |
| Constructor Detail |
|---|
public PrefixMetricFilter(java.lang.String tagKey,
MetricFilter root,
java.util.NavigableMap<java.lang.String,MetricFilter> filters)
tagKey - the tag to perform matching on, if null the name will be
checkedroot - filter used if there are no prefix matchesfilters - map of prefix to sub-filter. The filter associated with
the longest matching prefix will be used.| 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 | ||||||||