Search in sources :

Example 1 with MetricDump

use of org.apache.flink.runtime.metrics.dump.MetricDump in project flink by apache.

the class MetricFetcher method addMetrics.

private void addMetrics(Object result) {
    MetricDumpSerialization.MetricSerializationResult data = (MetricDumpSerialization.MetricSerializationResult) result;
    List<MetricDump> dumpedMetrics = deserializer.deserialize(data);
    for (MetricDump metric : dumpedMetrics) {
        metrics.add(metric);
    }
}
Also used : MetricDump(org.apache.flink.runtime.metrics.dump.MetricDump) MetricDumpSerialization(org.apache.flink.runtime.metrics.dump.MetricDumpSerialization)

Aggregations

MetricDump (org.apache.flink.runtime.metrics.dump.MetricDump)1 MetricDumpSerialization (org.apache.flink.runtime.metrics.dump.MetricDumpSerialization)1