public class MetricWhiteBlackList extends Object implements com.google.common.base.Predicate<String>
| Constructor and Description |
|---|
MetricWhiteBlackList(String pointLineWhiteListRegex,
String pointLineBlackListRegex,
String rejectCounterName)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
apply(String pointLine)
Check to see if the given point line or metric passes the white and black list.
|
public MetricWhiteBlackList(@Nullable String pointLineWhiteListRegex, @Nullable String pointLineBlackListRegex, String rejectCounterName)
pointLineWhiteListRegex - the white list regular expression.pointLineBlackListRegex - the black list regular expressionrejectCounterName - the name for the counter (validationRegex.{rejectCounterName})Copyright © 2016. All rights reserved.