Class MeanMetric

java.lang.Object
org.opensearch.common.metrics.MeanMetric
All Implemented Interfaces:
Metric

@PublicApi(since="1.0.0") public class MeanMetric extends Object implements Metric
An average metric for tracking.
Opensearch.api:
  • Constructor Details

    • MeanMetric

      public MeanMetric()
  • Method Details

    • inc

      public void inc(long n)
    • add

      public void add(MeanMetric other)
    • dec

      public void dec(long n)
    • count

      public long count()
    • sum

      public long sum()
    • mean

      public double mean()
    • clear

      public void clear()