类 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).- 从以下版本开始:
- 2.3.0
- 作者:
- Phillip Webb, Stephane Nicoll
-
方法概要
修饰符和类型方法说明getValue
(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 newServiceLevelObjectiveBoundary
instance for the given double value.Return a newServiceLevelObjectiveBoundary
instance for the given String value.
-
方法详细资料
-
getValue
Return the underlying value of the SLO in form suitable to apply to the given meter type.- 参数:
meterType
- the meter type- 返回:
- the value or
null
if the value cannot be applied
-
valueOf
Return a newServiceLevelObjectiveBoundary
instance for the given double value.- 参数:
value
- the source value- 返回:
- a
ServiceLevelObjectiveBoundary
instance
-
valueOf
Return a newServiceLevelObjectiveBoundary
instance for the given String value.- 参数:
value
- the source value- 返回:
- a
ServiceLevelObjectiveBoundary
instance
-