Class ServiceLevelObjectiveBoundary
java.lang.Object
org.springframework.boot.actuate.autoconfigure.metrics.ServiceLevelObjectiveBoundary
A boundary for a service-level objective (SLO) for use when configuring Micrometer. Can
be specified as either a
Double (applicable to timers and distribution
summaries) or a Duration (applicable to only timers).- Since:
- 2.3.0
- Author:
- Phillip Webb, Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptiongetValue(io.micrometer.core.instrument.Meter.Type meterType) Return the underlying value of the SLO in form suitable to apply to the given meter type.valueOf(double value) Return a newServiceLevelObjectiveBoundaryinstance for the given double value.Return a newServiceLevelObjectiveBoundaryinstance for the given String value.
-
Method Details
-
getValue
Return the underlying value of the SLO in form suitable to apply to the given meter type.- Parameters:
meterType- the meter type- Returns:
- the value or
nullif the value cannot be applied
-
valueOf
Return a newServiceLevelObjectiveBoundaryinstance for the given double value.- Parameters:
value- the source value- Returns:
- a
ServiceLevelObjectiveBoundaryinstance
-
valueOf
Return a newServiceLevelObjectiveBoundaryinstance for the given String value.- Parameters:
value- the source value- Returns:
- a
ServiceLevelObjectiveBoundaryinstance
-