Uses of Interface
io.prometheus.client.Predicate
-
Packages that use Predicate Package Description io.prometheus.client -
-
Uses of Predicate in io.prometheus.client
Classes in io.prometheus.client that implement Predicate Modifier and Type Class Description classSampleNameFilterFilter samples (i.e.Fields in io.prometheus.client declared as Predicate Modifier and Type Field Description static Predicate<String>SampleNameFilter. ALLOW_ALLFor convenience, a filter that allows all names.Methods in io.prometheus.client that return Predicate Modifier and Type Method Description Predicate<String>SampleNameFilter. and(Predicate<? super String> other)Replacement for Java 8'sPredicate.and()for compatibility with Java versions < 8.static Predicate<String>SampleNameFilter. restrictToNamesEqualTo(Predicate<String> filter, Collection<String> allowedNames)Helper method to compose a filter such that Sample names must match the existing filter and be in the list of allowedNames This should be used to implement thenames[]query parameter in HTTP exporters.Methods in io.prometheus.client with parameters of type Predicate Modifier and Type Method Description Predicate<String>SampleNameFilter. and(Predicate<? super String> other)Replacement for Java 8'sPredicate.and()for compatibility with Java versions < 8.List<Collector.MetricFamilySamples>Collector. collect(Predicate<String> sampleNameFilter)LikeCollector.collect(), but the result should only containMetricFamilySampleswheresampleNameFilter.test(name)istruefor at least one Sample name.Collector.MetricFamilySamplesCollector.MetricFamilySamples. filter(Predicate<String> sampleNameFilter)Enumeration<Collector.MetricFamilySamples>CollectorRegistry. filteredMetricFamilySamples(Predicate<String> sampleNameFilter)Enumeration of metrics wheresampleNameFilter.test(name)returnstruefor eachnameinCollector.MetricFamilySamples.getNames().static Predicate<String>SampleNameFilter. restrictToNamesEqualTo(Predicate<String> filter, Collection<String> allowedNames)Helper method to compose a filter such that Sample names must match the existing filter and be in the list of allowedNames This should be used to implement thenames[]query parameter in HTTP exporters.
-