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 class
SampleNameFilter
Filter samples (i.e.Fields in io.prometheus.client declared as Predicate Modifier and Type Field Description static Predicate<String>
SampleNameFilter. ALLOW_ALL
For 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 containMetricFamilySamples
wheresampleNameFilter.test(name)
istrue
for at least one Sample name.Collector.MetricFamilySamples
Collector.MetricFamilySamples. filter(Predicate<String> sampleNameFilter)
Enumeration<Collector.MetricFamilySamples>
CollectorRegistry. filteredMetricFamilySamples(Predicate<String> sampleNameFilter)
Enumeration of metrics wheresampleNameFilter.test(name)
returnstrue
for eachname
inCollector.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.
-