Reworks notifications to avoid JSON-decode to read severity

This commit is contained in:
Simone Mainardi 2020-12-15 16:52:32 +01:00
parent 426d626331
commit 3b202121f6
19 changed files with 92 additions and 102 deletions

View file

@ -644,7 +644,7 @@ function recipients.dispatch_notification(notification, current_script)
local is_high_priority = is_notification_high_priority(notification)
for _, recipient_id in pairs(recipients) do
ntop.recipient_enqueue(recipient_id, is_high_priority, json_notification)
ntop.recipient_enqueue(recipient_id, is_high_priority, json_notification, notification.alert_severity)
end
end
else