Package com.hazelcast.jet.core.metrics
Class MeasurementPredicates
java.lang.Object
com.hazelcast.jet.core.metrics.MeasurementPredicates
Static utility class for creating various
Measurement filtering
predicates.- Since:
- Jet 3.2
-
Method Summary
Modifier and TypeMethodDescriptionstatic Predicate<Measurement>containsTag(String tag) Matches aMeasurementwhich contain the specified tag.static Predicate<Measurement>tagValueEquals(String tag, String value) Matches aMeasurementwhich contains the specified tag and the tag has the specified value.static Predicate<Measurement>tagValueMatches(String tag, String valueRegexp) Matches aMeasurementwhich has this exact tag with a value matching the provided regular expression.
-
Method Details
-
containsTag
Matches aMeasurementwhich contain the specified tag.- Parameters:
tag- the tag of interest- Returns:
- a filtering predicate
-
tagValueEquals
Matches aMeasurementwhich contains the specified tag and the tag has the specified value.- Parameters:
tag- the tag to matchvalue- the value the tag has to have- Returns:
- a filtering predicate
-
tagValueMatches
Matches aMeasurementwhich has this exact tag with a value matching the provided regular expression.- Parameters:
tag- the tag to matchvalueRegexp- regular expression to match the value against- Returns:
- a filtering predicate
-