Search in sources :

Example 1 with AsmGaugeSnapshot

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);
}
Also used : AsmGaugeSnapshot(com.alibaba.jstorm.common.metric.snapshot.AsmGaugeSnapshot) AsmSnapshot(com.alibaba.jstorm.common.metric.snapshot.AsmSnapshot)

Aggregations

AsmGaugeSnapshot (com.alibaba.jstorm.common.metric.snapshot.AsmGaugeSnapshot)1 AsmSnapshot (com.alibaba.jstorm.common.metric.snapshot.AsmSnapshot)1