use of org.openkilda.wfm.topology.stats.model.MeterStatsAndDescriptor in project open-kilda by telstra.
the class MeterStatsMetricGenBolt method handleInput.
@Override
protected void handleInput(Tuple input) throws Exception {
SwitchMeterStats stats = pullValue(input, STATS_FIELD, SwitchMeterStats.class);
log.debug("Received meter statistics: {}.", stats);
long timestamp = getCommandContext().getCreateTime();
SwitchId switchId = stats.getSwitchId();
for (MeterStatsAndDescriptor entry : stats.getStatsEntries()) {
handleStatsData(entry.getData(), timestamp, switchId, entry.getDescriptor());
}
}
Aggregations