use of com.alibaba.jstorm.common.metric.snapshot.AsmGaugeSnapshot in project jstorm by alibaba.
the class AsmGauge method updateSnapshot.
@Override
protected void updateSnapshot(int window) {
double v = (Double) gauge.getValue();
AsmSnapshot snapshot = new AsmGaugeSnapshot().setValue(v).setTs(System.currentTimeMillis()).setMetricId(metricId);
snapshots.put(window, snapshot);
}
Aggregations