public final class ServiceLevelObjectiveBoundary
extends java.lang.Object
Double (applicable to timers and distribution
summaries) or a Duration (applicable to only timers).| Modifier and Type | Method and Description |
|---|---|
java.lang.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(java.lang.String value)
Return a new
ServiceLevelObjectiveBoundary instance for the given String
value. |
public java.lang.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(java.lang.String value)
ServiceLevelObjectiveBoundary instance for the given String
value.value - the source valueServiceLevelObjectiveBoundary instance