Modifier and Type | Method and Description |
---|---|
Double |
getValue(io.micrometer.core.instrument.Meter.Type meterType)
Return the underlying value in form suitable to apply to the given meter type.
|
static MeterValue |
valueOf(double value)
Return a new
MeterValue instance for the given double value. |
static MeterValue |
valueOf(String value)
Return a new
MeterValue 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 MeterValue valueOf(String value)
MeterValue
instance for the given String value. The value may
contain a simple number, or a duration style string
.value
- the source valueMeterValue
instancepublic static MeterValue valueOf(double value)
MeterValue
instance for the given double value.value
- the source valueMeterValue
instance