Package io.micrometer.health
Class ServiceLevelObjective.SingleIndicator.Builder
java.lang.Object
io.micrometer.health.ServiceLevelObjective.SingleIndicator.Builder
- Enclosing class:
ServiceLevelObjective.SingleIndicator
-
Method Summary
Modifier and TypeMethodDescriptioncount
(Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> search) errorRatio
(Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> searchAll, Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> searchErrors) failedMessage
(String failedMessage) max
(Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> search) maxPercentile
(Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> search, double percentile) requires
(io.micrometer.core.instrument.binder.MeterBinder... requires) total
(Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> search) value
(Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> search)
-
Method Details
-
failedMessage
public final ServiceLevelObjective.SingleIndicator.Builder failedMessage(@Nullable String failedMessage) -
requires
public final ServiceLevelObjective.SingleIndicator.Builder requires(io.micrometer.core.instrument.binder.MeterBinder... requires) -
baseUnit
-
tags
- Parameters:
tags
- Must be an even number of arguments representing key/value pairs of tags.- Returns:
- This builder.
-
tags
public final ServiceLevelObjective.SingleIndicator.Builder tags(Iterable<io.micrometer.core.instrument.Tag> tags) - Parameters:
tags
- Tags to add to the single indicator.- Returns:
- The builder with added tags.
-
tag
- Parameters:
key
- The tag key.value
- The tag value.- Returns:
- The single indicator builder with a single added tag.
-
count
public final ServiceLevelObjective.SingleIndicator.NumericQuery count(Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> search) -
errorRatio
public ServiceLevelObjective.SingleIndicator.NumericQuery errorRatio(Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> searchAll, Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> searchErrors) -
total
public final ServiceLevelObjective.SingleIndicator.NumericQuery total(Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> search) -
maxPercentile
public final ServiceLevelObjective.SingleIndicator.NumericQuery maxPercentile(Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> search, double percentile) -
max
public final ServiceLevelObjective.SingleIndicator.NumericQuery max(Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> search) -
value
public final ServiceLevelObjective.SingleIndicator.NumericQuery value(Function<io.micrometer.core.instrument.search.Search, io.micrometer.core.instrument.search.Search> search) - Parameters:
search
- The search criteria for aGauge
.- Returns:
- The value of the first matching gauge time series.
-