use of org.apache.beam.runners.core.metrics.MetricUpdates in project beam by apache.
the class JetMetricResults method updateLocalMetrics.
private synchronized void updateLocalMetrics(IMap<String, MetricUpdates> metricsAccumulator) {
counters.clear();
distributions.clear();
gauges.clear();
for (MetricUpdates metricUpdates : metricsAccumulator.values()) {
counters.merge(metricUpdates.counterUpdates());
distributions.merge(metricUpdates.distributionUpdates());
gauges.merge(metricUpdates.gaugeUpdates());
}
}
Aggregations