java.lang.Object
org.elasticsearch.xpack.esql.telemetry.Metrics

public class Metrics extends Object
Class encapsulating the metrics collected for ESQL
  • Field Details

    • QPREFIX

      protected static String QPREFIX
    • FPREFIX

      protected static String FPREFIX
    • FUNC_PREFIX

      protected static String FUNC_PREFIX
  • Constructor Details

  • Method Details

    • total

      public void total(QueryMetric metric)
      Increments the "total" counter for a metric This method should be called only once per query.
    • failed

      public void failed(QueryMetric metric)
      Increments the "failed" counter for a metric
    • inc

      public void inc(FeatureMetric metric)
    • incFunctionMetric

      public void incFunctionMetric(Class<?> functionType)
    • stats

      public Counters stats()