Class MetricDump

java.lang.Object
org.apache.flink.runtime.metrics.dump.MetricDump
Direct Known Subclasses:
MetricDump.CounterDump, MetricDump.GaugeDump, MetricDump.HistogramDump, MetricDump.MeterDump

public abstract class MetricDump extends Object
A container for a dumped metric that contains the scope, name and value(s) of the metric.
  • Field Details

    • METRIC_CATEGORY_COUNTER

      public static final byte METRIC_CATEGORY_COUNTER
      Categories to be returned by getCategory() to avoid instanceof checks.
      See Also:
    • METRIC_CATEGORY_GAUGE

      public static final byte METRIC_CATEGORY_GAUGE
      See Also:
    • METRIC_CATEGORY_HISTOGRAM

      public static final byte METRIC_CATEGORY_HISTOGRAM
      See Also:
    • METRIC_CATEGORY_METER

      public static final byte METRIC_CATEGORY_METER
      See Also:
    • scopeInfo

      public final QueryScopeInfo scopeInfo
      The scope information for the stored metric.
    • name

      public final String name
      The name of the stored metric.
  • Method Details

    • getCategory

      public abstract byte getCategory()
      Returns the category for this MetricDump.
      Returns:
      category
    • toString

      public String toString()
      Overrides:
      toString in class Object