Prevents alert flow info from being shown in the flow alert page

This commit is contained in:
Simone Mainardi 2020-12-15 17:31:52 +01:00
parent 3b202121f6
commit 58b982d3fb
2 changed files with 4 additions and 4 deletions

View file

@ -1808,7 +1808,7 @@ end
-- #################################
function alert_utils.formatAlertMessage(ifid, alert, alert_json)
function alert_utils.formatAlertMessage(ifid, alert, alert_json, skip_live_data)
local msg
if(alert_json == nil) then
@ -1836,7 +1836,7 @@ function alert_utils.formatAlertMessage(ifid, alert, alert_json)
end
-- Append flow information to the alert message
if(alert.alert_entity == alert_consts.alertEntity("flow") or not alert.alert_entity) and not flow_consts.getStatusType(alert["flow_status"]) then
if(alert.alert_entity == alert_consts.alertEntity("flow") or not alert.alert_entity) and not flow_consts.getStatusType(alert["flow_status"]) and not skip_live_data then
msg = msg.. " "..formatRawFlow(ifid, alert, alert_json, true --[[ skip alert description, description already set --]])
end