Implements alerted flows counters and shows them in the footer

Implements #2863
This commit is contained in:
Simone Mainardi 2019-09-19 15:15:32 +02:00
parent e720708ea1
commit 7f150ef407
7 changed files with 50 additions and 15 deletions

View file

@ -84,6 +84,7 @@ function dumpInterfaceStats(ifid)
if prefs.are_alerts_enabled == true then
res["engaged_alerts"] = ifstats["num_alerts_engaged"] or 0
res["dropped_alerts"] = ifstats["num_dropped_alerts"] or 0
res["alerted_flows"] = ifstats["num_alerted_flows"] or 0
res["has_alerts"] = ifstats["has_alerts"]
res["ts_alerts"] = {}