Object
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