public final class RegexMetricFilter extends java.lang.Object implements MetricFilter
| Constructor and Description |
|---|
RegexMetricFilter(java.lang.String tagKey,
java.util.regex.Pattern pattern,
boolean matchIfMissingTag,
boolean invert)
Creates a new regex filter.
|
| 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 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?public boolean matches(MonitorConfig config)
matches in interface MetricFilterconfig - config settings associated with the metric