Fix the property name inside the JSON representation of the topology
event rate metric: listenerEventRate -> topologyEventRate
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -48,7 +48,7 @@ public class TopologyEventsMetricsCommand extends AbstractShellCommand { | ... | @@ -48,7 +48,7 @@ public class TopologyEventsMetricsCommand extends AbstractShellCommand { |
48 | JsonNode gaugeNode = mapper.readTree(gaugeJson); | 48 | JsonNode gaugeNode = mapper.readTree(gaugeJson); |
49 | JsonNode meterNode = mapper.readTree(meterJson); | 49 | JsonNode meterNode = mapper.readTree(meterJson); |
50 | result.put("lastTopologyEventTimestamp", gaugeNode); | 50 | result.put("lastTopologyEventTimestamp", gaugeNode); |
51 | - result.put("listenerEventRate", meterNode); | 51 | + result.put("topologyEventRate", meterNode); |
52 | } catch (JsonProcessingException e) { | 52 | } catch (JsonProcessingException e) { |
53 | log.error("Error writing value as JSON string", e); | 53 | log.error("Error writing value as JSON string", e); |
54 | } catch (IOException e) { | 54 | } catch (IOException e) { | ... | ... |
-
Please register or login to post a comment