Class MeterValue
java.lang.Object
org.springframework.boot.micrometer.metrics.autoconfigure.MeterValue
-
Method Summary
Modifier and TypeMethodDescription@Nullable DoublegetValue(io.micrometer.core.instrument.Meter.Type meterType) Return the underlying value in form suitable to apply to the given meter type.static MeterValuevalueOf(double value) Return a newMeterValueinstance for the given double value.static MeterValueReturn a newMeterValueinstance for the given String value.
-
Method Details
-
getValue
Return the underlying value in form suitable to apply to the given meter type.- Parameters:
meterType- the meter type- Returns:
- the value or
nullif the value cannot be applied
-
valueOf
Return a newMeterValueinstance for the given String value. The value may contain a simple number, or aduration style string.- Parameters:
value- the source value- Returns:
- a
MeterValueinstance
-
valueOf
Return a newMeterValueinstance for the given double value.- Parameters:
value- the source value- Returns:
- a
MeterValueinstance
-