|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.publish.RegexMetricFilter
public final class RegexMetricFilter
Filter that checks if a tag value matches a regular expression.
| Constructor Summary | |
|---|---|
RegexMetricFilter(java.lang.String tagKey,
java.util.regex.Pattern pattern,
boolean matchIfMissingTag,
boolean invert)
Creates a new regex 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 RegexMetricFilter(java.lang.String tagKey,
java.util.regex.Pattern pattern,
boolean matchIfMissingTag,
boolean invert)
tagKey - tag to check against the patternpattern - pattern to checkmatchIfMissingTag - should metrics without the specified tag match?invert - should the match be inverted?| 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 | ||||||||