commit | 6bc5594e7b384bc5384c5ab3fde9dbe9ff4752e6 | [log] [tgz] |
---|---|---|
author | Pavlin Radoslavov <pavlin@onlab.us> | Tue Oct 21 22:16:53 2014 -0700 |
committer | Pavlin Radoslavov <pavlin@onlab.us> | Tue Oct 21 22:16:53 2014 -0700 |
tree | 9e50d02978d3b8096cb367131c6b997cedb006ff | |
parent | 64d9e472156f922949da63036a004e854b1ed34a [diff] |
Fix the property name inside the JSON representation of the topology event rate metric: listenerEventRate -> topologyEventRate
diff --git a/apps/metrics/topology/src/main/java/org/onlab/onos/metrics/topology/cli/TopologyEventsMetricsCommand.java b/apps/metrics/topology/src/main/java/org/onlab/onos/metrics/topology/cli/TopologyEventsMetricsCommand.java index 1bc0b57..54d3a95 100644 --- a/apps/metrics/topology/src/main/java/org/onlab/onos/metrics/topology/cli/TopologyEventsMetricsCommand.java +++ b/apps/metrics/topology/src/main/java/org/onlab/onos/metrics/topology/cli/TopologyEventsMetricsCommand.java
@@ -48,7 +48,7 @@ JsonNode gaugeNode = mapper.readTree(gaugeJson); JsonNode meterNode = mapper.readTree(meterJson); result.put("lastTopologyEventTimestamp", gaugeNode); - result.put("listenerEventRate", meterNode); + result.put("topologyEventRate", meterNode); } catch (JsonProcessingException e) { log.error("Error writing value as JSON string", e); } catch (IOException e) {