mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Implements UI badges color-coded using engaged alert severities
Addresses #5881
This commit is contained in:
parent
3ab14250b8
commit
e9c26b79f8
4 changed files with 50 additions and 1 deletions
|
|
@ -121,6 +121,11 @@ function dumpInterfaceStats(ifid)
|
|||
res["alerted_flows_notice"] = ifstats["num_alerted_flows_notice"] or 0
|
||||
res["alerted_flows_warning"] = ifstats["num_alerted_flows_warning"] or 0
|
||||
res["alerted_flows_error"] = ifstats["num_alerted_flows_error"] or 0
|
||||
|
||||
-- Engaged alerts: breakdown
|
||||
res["engaged_alerts_notice"] = ifstats["num_alerts_engaged_by_severity"]["notice"]
|
||||
res["engaged_alerts_warning"] = ifstats["num_alerts_engaged_by_severity"]["warning"]
|
||||
res["engaged_alerts_error"] = ifstats["num_alerts_engaged_by_severity"]["error"]
|
||||
end
|
||||
|
||||
if periodic_activities_utils.have_degraded_performance() then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue