public final class RequiredSearch
extends java.lang.Object
MeterNotFoundException is thrown.| Modifier and Type | Method and Description |
|---|---|
Counter |
counter() |
FunctionCounter |
functionCounter() |
FunctionTimer |
functionTimer() |
Gauge |
gauge() |
static RequiredSearch |
in(MeterRegistry registry)
Initiate a new search for meters inside a registry.
|
LongTaskTimer |
longTaskTimer() |
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.
|
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() |
Timer |
timer() |
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()
TimerMeterNotFoundException - 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 static RequiredSearch in(MeterRegistry registry)
registry - The registry to locate meters in.