Class GaugeMetric

java.lang.Object
io.sentry.metrics.Metric
io.sentry.metrics.GaugeMetric

@Internal public final class GaugeMetric extends Metric
Gauges track a value that can go up and down.
  • Constructor Details

  • Method Details

    • add

      public void add(double value)
      Description copied from class: Metric
      Adds a value to the metric
      Specified by:
      add in class Metric
    • getLast

      public double getLast()
    • getMin

      public double getMin()
    • getMax

      public double getMax()
    • getSum

      public double getSum()
    • getCount

      public int getCount()
    • getWeight

      public int getWeight()
      Specified by:
      getWeight in class Metric
    • serialize

      @NotNull public @NotNull Iterable<?> serialize()
      Specified by:
      serialize in class Metric