Class Gauge
java.lang.Object
com.codename1.backend.metrics.Instrument
com.codename1.backend.metrics.Gauge
A value read when metrics are collected -- a queue's depth, a pool's size, a
@ManagedAttribute. Nothing is recorded in between, so a gauge costs
nothing until something asks.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceWhere a gauge with several labelled values comes from -- one per executor, say.static interfaceWhere a gauge's value comes from. -
Field Summary
Fields inherited from class Instrument
COUNTER, GAUGE, HISTOGRAM, UP_DOWN_COUNTER -
Method Summary
Modifier and TypeMethodDescriptionstatic MapOne labelled value, for aGauge.MultiSource.points()The current points, each a map withattributes(a map, possibly empty) and eithervalueor, for a histogram,count,sum,min,max,boundsandbuckets.doubleread()The value now, or NaN when reading it failed.Methods inherited from class Instrument
getDescription, getKind, getName, getUnit
-
Method Details
-
point
One labelled value, for aGauge.MultiSource. -
read
public double read()The value now, or NaN when reading it failed.
Application code runs here, on the exporter's thread and on the management endpoint's, so ANY throwable is contained -- an AssertionError or LinkageError escaping used to end the exporter's only thread, and every later export with it.
-
points
Description copied from class:InstrumentThe current points, each a map withattributes(a map, possibly empty) and eithervalueor, for a histogram,count,sum,min,max,boundsandbuckets.- Specified by:
pointsin classInstrument
-