public final class ServiceLevelAgreementBoundary
extends java.lang.Object
Long
(applicable to timers and distribution summaries) or
a Duration
(applicable to only timers).Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getValue(io.micrometer.core.instrument.Meter.Type meterType)
Return the underlying value of the SLA in form suitable to apply to the given meter
type.
|
static ServiceLevelAgreementBoundary |
valueOf(long value)
Return a new
ServiceLevelAgreementBoundary instance for the given long
value. |
static ServiceLevelAgreementBoundary |
valueOf(java.lang.String value)
Return a new
ServiceLevelAgreementBoundary instance for the given long
value. |
public java.lang.Long getValue(io.micrometer.core.instrument.Meter.Type meterType)
meterType
- the meter typenull
if the value cannot be appliedpublic static ServiceLevelAgreementBoundary valueOf(long value)
ServiceLevelAgreementBoundary
instance for the given long
value.value
- the source valueServiceLevelAgreementBoundary
instancepublic static ServiceLevelAgreementBoundary valueOf(java.lang.String value)
ServiceLevelAgreementBoundary
instance for the given long
value.value
- the source valueServiceLevelAgreementBoundary
instance