| Modifier and Type | Method and Description |
|---|---|
Long |
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(long value)
Return a new
MeterValue instance for the given long value. |
static MeterValue |
valueOf(String value)
Return a new
MeterValue instance for the given String value. |
public Long 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(long value)
MeterValue instance for the given long value.value - the source valueMeterValue instance