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 class
MetricDump.CounterDump
Container for the value of aCounter
.static class
MetricDump.GaugeDump
Container for the value of aGauge
as a string.static class
MetricDump.HistogramDump
Container for the values of aHistogram
.static class
MetricDump.MeterDump
Container for the rate of aMeter
.
-
Field Summary
Fields Modifier and Type Field Description static byte
METRIC_CATEGORY_COUNTER
Categories to be returned bygetCategory()
to avoid instanceof checks.static byte
METRIC_CATEGORY_GAUGE
static byte
METRIC_CATEGORY_HISTOGRAM
static byte
METRIC_CATEGORY_METER
String
name
The name of the stored metric.QueryScopeInfo
scopeInfo
The scope information for the stored metric.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract byte
getCategory()
Returns the category for this MetricDump.String
toString()
-
-
-
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.
-
-