Class RequiredSearch
java.lang.Object
io.micrometer.core.instrument.search.RequiredSearch
Search that requires the search terms are satisfiable, or an
MeterNotFoundException
is thrown.-
Method Summary
Modifier and TypeMethodDescriptioncounter()
Performs the search and returns any matchingCounter
.counters()
Performs the search and returns any matchingFunctionCounter
.Performs the search and returns any matchingFunctionTimer
.gauge()
Performs the search and returns any matchingGauge
.gauges()
static RequiredSearch
in
(MeterRegistry registry) Initiate a new search for meters inside a registry.Performs the search and returns any matchingLongTaskTimer
.meter()
Performs the search and returns any matchingMeter
.meters()
Meter contains a tag with the exact name.Meter contains a tag matching the name predicate.summary()
Performs the search and returns any matchingDistributionSummary
.Meter contains a tag with the matching key and value.Meter contains a tag with the matching keys.Meter contains a tag with the matching tag keys and values.Meter contains a tag with the matching tag keys and values.Performs the search and returns any matchingTimeGauge
.timer()
Performs the search and returns any matchingTimer
.timers()
-
Method Details
-
name
Meter contains a tag with the exact name.- Parameters:
exactName
- Name to match against.- Returns:
- This search.
-
name
Meter contains a tag matching the name predicate.- Parameters:
nameMatches
- Name matching predicate.- Returns:
- This search.
-
tags
Meter contains a tag with the matching tag keys and values.- Parameters:
tags
- The tags to match.- Returns:
- This search.
-
tags
Meter contains a tag with the matching tag keys and values.- Parameters:
tags
- Must be an even number of arguments representing key/value pairs of tags.- Returns:
- This search.
-
tag
Meter contains a tag with the matching key and value.- Parameters:
tagKey
- The tag key to match.tagValue
- The tag value to match.- Returns:
- This search.
-
tagKeys
Meter contains a tag with the matching keys.- Parameters:
tagKeys
- The tag keys to match.- Returns:
- This search.
-
timer
Performs the search and returns any matchingTimer
.- Returns:
- Any matching
Timer
- Throws:
MeterNotFoundException
- if there is no match.
-
counter
Performs the search and returns any matchingCounter
.- Returns:
- Any matching
Counter
. - Throws:
MeterNotFoundException
- if there is no match.
-
gauge
Performs the search and returns any matchingGauge
.- Returns:
- Any matching
Gauge
. - Throws:
MeterNotFoundException
- if there is no match.
-
functionCounter
Performs the search and returns any matchingFunctionCounter
.- Returns:
- Any matching
FunctionCounter
. - Throws:
MeterNotFoundException
- if there is no match.
-
timeGauge
Performs the search and returns any matchingTimeGauge
.- Returns:
- Any matching
TimeGauge
. - Throws:
MeterNotFoundException
- if there is no match.
-
functionTimer
Performs the search and returns any matchingFunctionTimer
.- Returns:
- Any matching
FunctionTimer
. - Throws:
MeterNotFoundException
- if there is no match.
-
summary
Performs the search and returns any matchingDistributionSummary
.- Returns:
- Any matching
DistributionSummary
. - Throws:
MeterNotFoundException
- if there is no match.
-
longTaskTimer
Performs the search and returns any matchingLongTaskTimer
.- Returns:
- Any matching
LongTaskTimer
. - Throws:
MeterNotFoundException
- if there is no match.
-
meter
Performs the search and returns any matchingMeter
.- Returns:
- Any matching
Meter
. - Throws:
MeterNotFoundException
- if there is no match.
-
meters
- Returns:
- All matching meters.
- Throws:
MeterNotFoundException
- if there is no match.
-
counters
- Returns:
- All matching
Counter
meters.
-
gauges
- Returns:
- All matching
Gauge
meters.
-
timers
- Returns:
- All matching
Timer
meters.
-
summaries
- Returns:
- All matching
DistributionSummary
meters.
-
longTaskTimers
- Returns:
- All matching
LongTaskTimer
meters.
-
functionCounters
- Returns:
- All matching
FunctionCounter
meters.
-
functionTimers
- Returns:
- All matching
FunctionTimer
meters.
-
timeGauges
- Returns:
- All matching
TimeGauge
meters.
-
in
Initiate a new search for meters inside a registry.- Parameters:
registry
- The registry to locate meters in.- Returns:
- A new search.
-