Implements flow callbacks and alerts in C++

This commit is contained in:
Simone Mainardi 2021-03-22 09:51:36 +01:00
parent 3659188002
commit aea9138bfb
353 changed files with 10790 additions and 4455 deletions

View file

@ -266,9 +266,9 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
end
local column_proto_l4 = ''
if value["alerted_status"] then
local status_info = alert_consts.statusTypeLabel(value["alerted_status"], true)
column_proto_l4 = alert_consts.statusTypeIcon(value["alerted_status"], value["alerted_severity"]) -- "<i class='fas fa-exclamation-triangle' style=' title='"..noHtml(status_info) .."'></i> "
if value["predominant_alert"] then
local alert_info = alert_consts.alertTypeLabel(value["predominant_alert"], true)
column_proto_l4 = alert_consts.alertTypeIcon(value["predominant_alert"], value["alerted_severity"]) -- "<i class='fas fa-exclamation-triangle' style=' title='"..noHtml(alert_info) .."'></i> "
end
column_proto_l4 = column_proto_l4..value["proto.l4"]