Class Instrument

java.lang.Object
com.codename1.backend.metrics.Instrument
Direct Known Subclasses:
Counter, Gauge, Histogram

public abstract class Instrument extends Object

One named measurement: a counter, a gauge or a histogram.

Created once through Metrics and kept -- the build's generated code holds each in a static field -- so recording a value never looks anything up.

  • Field Details

  • Method Details

    • getName

      public String getName()
    • getDescription

      public String getDescription()
    • getUnit

      public String getUnit()
    • getKind

      public int getKind()
    • points

      public abstract List points()
      The current points, each a map with attributes (a map, possibly empty) and either value or, for a histogram, count, sum, min, max, bounds and buckets.