public final class ServiceLevelObjectiveBoundary extends Object
Double
(applicable to timers and distribution
summaries) or a Duration
(applicable to only timers).Modifier and Type | Method and Description |
---|---|
Double |
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.
|
static ServiceLevelObjectiveBoundary |
valueOf(double value)
Return a new
ServiceLevelObjectiveBoundary instance for the given double
value. |
static ServiceLevelObjectiveBoundary |
valueOf(String value)
Return a new
ServiceLevelObjectiveBoundary instance for the given String
value. |
public Double getValue(io.micrometer.core.instrument.Meter.Type meterType)
meterType
- the meter typenull
if the value cannot be appliedpublic static ServiceLevelObjectiveBoundary valueOf(double value)
ServiceLevelObjectiveBoundary
instance for the given double
value.value
- the source valueServiceLevelObjectiveBoundary
instancepublic static ServiceLevelObjectiveBoundary valueOf(String value)
ServiceLevelObjectiveBoundary
instance for the given String
value.value
- the source valueServiceLevelObjectiveBoundary
instance