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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetricDump.CounterDumpContainer for the value of aCounter.static classMetricDump.GaugeDumpContainer for the value of aGaugeas a string.static classMetricDump.HistogramDumpContainer for the values of aHistogram.static classMetricDump.MeterDumpContainer for the rate of aMeter.
-
Field Summary
Fields Modifier and Type Field Description static byteMETRIC_CATEGORY_COUNTERCategories to be returned bygetCategory()to avoid instanceof checks.static byteMETRIC_CATEGORY_GAUGEstatic byteMETRIC_CATEGORY_HISTOGRAMstatic byteMETRIC_CATEGORY_METERStringnameThe name of the stored metric.QueryScopeInfoscopeInfoThe scope information for the stored metric.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract bytegetCategory()Returns the category for this MetricDump.StringtoString()
-
-
-
Field Detail
-
METRIC_CATEGORY_COUNTER
public static final byte METRIC_CATEGORY_COUNTER
Categories to be returned bygetCategory()to avoid instanceof checks.- See Also:
- Constant Field Values
-
METRIC_CATEGORY_GAUGE
public static final byte METRIC_CATEGORY_GAUGE
- See Also:
- Constant Field Values
-
METRIC_CATEGORY_HISTOGRAM
public static final byte METRIC_CATEGORY_HISTOGRAM
- See Also:
- Constant Field Values
-
METRIC_CATEGORY_METER
public static final byte METRIC_CATEGORY_METER
- See Also:
- Constant Field Values
-
scopeInfo
public final QueryScopeInfo scopeInfo
The scope information for the stored metric.
-
name
public final String name
The name of the stored metric.
-
-