Class Search
java.lang.Object
io.micrometer.core.instrument.search.Search
-
Method Summary
Modifier and TypeMethodDescription@Nullable Countercounter()counters()@Nullable FunctionCounter@Nullable FunctionTimer@Nullable Gaugegauge()gauges()static Searchin(MeterRegistry registry) Initiate a new search for meters inside a registry.@Nullable LongTaskTimer@Nullable Metermeter()meters()Meter contains a tag with the exact name.Meter contains a tag matching the name predicate.@Nullable DistributionSummarysummary()Meter contains a tag with the matching key and value.Meter contains a tag with the provided key and a value matchingtagValueMatches.Meter contains tags with the matching keys.tagKeys(Collection<String> tagKeys) Meter contains tags with the matching keys.Meter contains tags with the matching tag keys and values.Meter contains tags with the matching tag keys and values.@Nullable TimeGauge@Nullable Timertimer()timers()
-
Method Details
-
name
-
name
-
tags
-
tags
-
tag
-
tagKeys
-
tagKeys
Meter contains tags with the matching keys.- Parameters:
tagKeys- The tag keys to match.- Returns:
- This search.
- Since:
- 1.7.0
-
tag
-
timer
-
counter
-
gauge
-
functionCounter
- Returns:
- The first matching
FunctionCounter, ornullif none match.
-
timeGauge
-
functionTimer
- Returns:
- The first matching
FunctionTimer, ornullif none match.
-
summary
- Returns:
- The first matching
DistributionSummary, ornullif none match.
-
longTaskTimer
- Returns:
- The first matching
LongTaskTimer, ornullif none match.
-
meter
-
meters
- Returns:
- All matching meters, or an empty collection if none match.
-
acceptFilter
- Returns:
- An accept filter that accepts any meter that matches this search.
- Since:
- 1.6.0
-
counters
- Returns:
- All matching
Countermeters.
-
gauges
- Returns:
- All matching
Gaugemeters.
-
timers
- Returns:
- All matching
Timermeters.
-
summaries
- Returns:
- All matching
DistributionSummarymeters.
-
longTaskTimers
- Returns:
- All matching
LongTaskTimermeters.
-
functionCounters
- Returns:
- All matching
FunctionCountermeters.
-
functionTimers
- Returns:
- All matching
FunctionTimermeters.
-
timeGauges
- Returns:
- All matching
TimeGaugemeters.
-
in
Initiate a new search for meters inside a registry.- Parameters:
registry- The registry to locate meters in.- Returns:
- A new search.
-