Package io.micrometer.health
Class ServiceLevelObjective.MultipleIndicator.Builder
java.lang.Object
io.micrometer.health.ServiceLevelObjective.MultipleIndicator.Builder
- Enclosing class:
- ServiceLevelObjective.MultipleIndicator
-
Method Summary
Modifier and TypeMethodDescriptionand()
combine(BinaryOperator<Boolean> combiner)
CombineServiceLevelObjectives
with the providedcombiner
.combine(BinaryOperator<Boolean> combiner, ServiceLevelObjective... objectives)
Deprecated.failedMessage(String failedMessage)
or()
-
Method Details
-
failedMessage
public final ServiceLevelObjective.MultipleIndicator.Builder failedMessage(@Nullable String failedMessage) -
tags
- Parameters:
tags
- Must be an even number of arguments representing key/value pairs of tags.- Returns:
- This builder.
-
tags
public ServiceLevelObjective.MultipleIndicator.Builder tags(Iterable<io.micrometer.core.instrument.Tag> tags)- Parameters:
tags
- Tags to add to the multiple indicator.- Returns:
- The builder with added tags.
-
tag
- Parameters:
key
- The tag key.value
- The tag value.- Returns:
- The builder with a single added tag.
-
and
-
or
-
combine
public final ServiceLevelObjective.MultipleIndicator combine(BinaryOperator<Boolean> combiner, ServiceLevelObjective... objectives)Deprecated.Usecombine(BinaryOperator)
instead as this is broken withServiceLevelObjective.compose(String, ServiceLevelObjective...)
.CombineServiceLevelObjectives
with the providedcombiner
.- Parameters:
combiner
- combiner to combineServiceLevelObjectives
objectives
-ServiceLevelObjectives
to combine- Returns:
- combined
MultipleIndicator
-
combine
CombineServiceLevelObjectives
with the providedcombiner
.- Parameters:
combiner
- combiner to combineServiceLevelObjectives
- Returns:
- combined
MultipleIndicator
- Since:
- 1.6.5
-
combine(BinaryOperator)
instead as this is broken withServiceLevelObjective.compose(String, ServiceLevelObjective...)
.