public final class MeasurementPredicates extends Object
Measurement filtering predicates.| 限定符和类型 | 方法和说明 |
|---|---|
static java.util.function.Predicate<Measurement> |
containsTag(String tag)
Matches a
Measurement which contain the specified tag. |
static java.util.function.Predicate<Measurement> |
tagValueEquals(String tag,
String value)
Matches a
Measurement which contains the specified tag and the tag has the specified
value. |
static java.util.function.Predicate<Measurement> |
tagValueMatches(String tag,
String valueRegexp)
Matches a
Measurement which has this exact tag with a value matching the provided
regular expression. |
public static java.util.function.Predicate<Measurement> containsTag(String tag)
Measurement which contain the specified tag.tag - the tag of interestpublic static java.util.function.Predicate<Measurement> tagValueEquals(String tag, String value)
Measurement which contains the specified tag and the tag has the specified
value.tag - the tag to matchvalue - the value the tag has to havepublic static java.util.function.Predicate<Measurement> tagValueMatches(String tag, String valueRegexp)
Measurement which has this exact tag with a value matching the provided
regular expression.tag - the tag to matchvalueRegexp - regular expression to match the value againstCopyright © 2024 The Apache Software Foundation. All rights reserved.