java.lang.Object
io.prometheus.metrics.model.snapshots.Unit
Some pre-defined units for convenience. You can create your own units with
new Unit("myUnit");
Note that in Prometheus, units are largely based on SI base units (seconds, bytes, joules, grams,
meters, ratio, volts, amperes, and Celsius).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static doublekiloBytesToBytes(double kilobytes) static doublemillisToSeconds(long millis) static doublenanosToSeconds(long nanos) static doublesecondsToMillis(double seconds) toString()
-
Field Details
-
RATIO
-
SECONDS
-
BYTES
-
CELSIUS
-
JOULES
-
GRAMS
-
METERS
-
VOLTS
-
AMPERES
-
-
Constructor Details
-
Unit
-
-
Method Details
-
toString
-
nanosToSeconds
public static double nanosToSeconds(long nanos) -
millisToSeconds
public static double millisToSeconds(long millis) -
secondsToMillis
public static double secondsToMillis(double seconds) -
kiloBytesToBytes
public static double kiloBytesToBytes(double kilobytes) -
equals
-
hashCode
public int hashCode()
-