Package io.micrometer.health
Class ServiceLevelObjective.SingleIndicator
java.lang.Object
io.micrometer.health.ServiceLevelObjective
io.micrometer.health.ServiceLevelObjective.SingleIndicator
- Enclosing class:
- ServiceLevelObjective
public static class ServiceLevelObjective.SingleIndicator extends ServiceLevelObjective
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServiceLevelObjective.SingleIndicator.Builder
static class
ServiceLevelObjective.SingleIndicator.NumericQuery
Nested classes/interfaces inherited from class io.micrometer.health.ServiceLevelObjective
ServiceLevelObjective.MultipleIndicator, ServiceLevelObjective.SingleIndicator
-
Constructor Summary
Constructors Modifier Constructor Description protected
SingleIndicator(ServiceLevelObjective.SingleIndicator.NumericQuery query, java.lang.String testDescription, java.util.function.Predicate<java.lang.Double> test)
-
Method Summary
Modifier and Type Method Description java.util.Collection<io.micrometer.core.instrument.config.MeterFilter>
getAcceptFilters()
java.util.Collection<io.micrometer.core.instrument.binder.MeterBinder>
getRequires()
java.lang.String
getTestDescription()
double
getValue(io.micrometer.core.instrument.MeterRegistry registry)
java.lang.String
getValueAsString(io.micrometer.core.instrument.MeterRegistry registry)
boolean
healthy(io.micrometer.core.instrument.MeterRegistry registry)
void
tick(io.micrometer.core.instrument.MeterRegistry registry)
Methods inherited from class io.micrometer.health.ServiceLevelObjective
build, compose, getBaseUnit, getFailedMessage, getId, getName, getTags
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SingleIndicator
protected SingleIndicator(ServiceLevelObjective.SingleIndicator.NumericQuery query, java.lang.String testDescription, java.util.function.Predicate<java.lang.Double> test)
-
-
Method Details
-
healthy
public boolean healthy(io.micrometer.core.instrument.MeterRegistry registry)- Specified by:
healthy
in classServiceLevelObjective
-
tick
public void tick(io.micrometer.core.instrument.MeterRegistry registry)- Specified by:
tick
in classServiceLevelObjective
-
getRequires
public java.util.Collection<io.micrometer.core.instrument.binder.MeterBinder> getRequires()- Specified by:
getRequires
in classServiceLevelObjective
-
getAcceptFilters
public java.util.Collection<io.micrometer.core.instrument.config.MeterFilter> getAcceptFilters()- Specified by:
getAcceptFilters
in classServiceLevelObjective
-
getValue
public double getValue(io.micrometer.core.instrument.MeterRegistry registry) -
getValueAsString
public java.lang.String getValueAsString(io.micrometer.core.instrument.MeterRegistry registry) -
getTestDescription
public java.lang.String getTestDescription()
-