notification_recipients.processNotifications (wip)

This commit is contained in:
Alfredo Cardigliano 2020-07-24 11:35:08 +02:00
parent 6b043396ad
commit 9c87f83fa0
2 changed files with 24 additions and 13 deletions

View file

@ -36,7 +36,10 @@ end
-- ##############################################
function syslog.dequeueAlerts(queue)
function syslog.dequeueAlerts(queue, budget)
-- TODO handle budget (pay attention to severity/priority)
local notifications = ntop.lrangeCache(queue, 0, -1)
if not notifications then