public final class RequiredSearch
extends java.lang.Object
MeterNotFoundException
is thrown.Modifier and Type | Method and Description |
---|---|
Counter |
counter() |
java.util.Collection<Counter> |
counters() |
FunctionCounter |
functionCounter() |
java.util.Collection<FunctionCounter> |
functionCounters() |
FunctionTimer |
functionTimer() |
java.util.Collection<FunctionTimer> |
functionTimers() |
Gauge |
gauge() |
java.util.Collection<Gauge> |
gauges() |
static RequiredSearch |
in(MeterRegistry registry)
Initiate a new search for meters inside a registry.
|
LongTaskTimer |
longTaskTimer() |
java.util.Collection<LongTaskTimer> |
longTaskTimers() |
Meter |
meter() |
java.util.Collection<Meter> |
meters() |
RequiredSearch |
name(java.util.function.Predicate<java.lang.String> nameMatches)
Meter contains a tag matching the name predicate.
|
RequiredSearch |
name(java.lang.String exactName)
Meter contains a tag with the exact name.
|
java.util.Collection<DistributionSummary> |
summaries() |
DistributionSummary |
summary() |
RequiredSearch |
tag(java.lang.String tagKey,
java.lang.String tagValue)
Meter contains a tag with the matching key and value.
|
RequiredSearch |
tagKeys(java.lang.String... tagKeys)
Meter contains a tag with the matching keys.
|
RequiredSearch |
tags(java.lang.Iterable<Tag> tags)
Meter contains a tag with the matching tag keys and values.
|
RequiredSearch |
tags(java.lang.String... tags)
Meter contains a tag with the matching tag keys and values.
|
TimeGauge |
timeGauge() |
java.util.Collection<TimeGauge> |
timeGauges() |
Timer |
timer() |
java.util.Collection<Timer> |
timers() |
public RequiredSearch name(java.lang.String exactName)
exactName
- Name to match against.public RequiredSearch name(java.util.function.Predicate<java.lang.String> nameMatches)
nameMatches
- Name matching predicate.public RequiredSearch tags(java.lang.Iterable<Tag> tags)
tags
- The tags to match.public RequiredSearch tags(java.lang.String... tags)
tags
- Must be an even number of arguments representing key/value pairs of tags.public RequiredSearch tag(java.lang.String tagKey, java.lang.String tagValue)
tagKey
- The tag key to match.tagValue
- The tag value to match.public RequiredSearch tagKeys(java.lang.String... tagKeys)
tagKeys
- The tag keys to match.public Timer timer()
Timer
MeterNotFoundException
- if there is no match.public Counter counter()
Counter
.MeterNotFoundException
- if there is no match.public Gauge gauge()
Gauge
.MeterNotFoundException
- if there is no match.public FunctionCounter functionCounter()
FunctionCounter
.MeterNotFoundException
- if there is no match.public TimeGauge timeGauge()
TimeGauge
.MeterNotFoundException
- if there is no match.public FunctionTimer functionTimer()
FunctionTimer
.MeterNotFoundException
- if there is no match.public DistributionSummary summary()
DistributionSummary
.MeterNotFoundException
- if there is no match.public LongTaskTimer longTaskTimer()
LongTaskTimer
.MeterNotFoundException
- if there is no match.public Meter meter()
Meter
.MeterNotFoundException
- if there is no match.public java.util.Collection<Meter> meters()
MeterNotFoundException
- if there is no match.public java.util.Collection<DistributionSummary> summaries()
DistributionSummary
meters.public java.util.Collection<LongTaskTimer> longTaskTimers()
LongTaskTimer
meters.public java.util.Collection<FunctionCounter> functionCounters()
FunctionCounter
meters.public java.util.Collection<FunctionTimer> functionTimers()
FunctionTimer
meters.public java.util.Collection<TimeGauge> timeGauges()
TimeGauge
meters.public static RequiredSearch in(MeterRegistry registry)
registry
- The registry to locate meters in.