Implements UI badges color-coded using engaged alert severities

Addresses #5881
This commit is contained in:
Simone Mainardi 2021-09-24 17:25:34 +02:00
parent 3ab14250b8
commit e9c26b79f8
4 changed files with 50 additions and 1 deletions

View file

@ -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