mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Cleaned up alert prioriti queueing
This commit is contained in:
parent
588e330f18
commit
b7d97b73d3
19 changed files with 112 additions and 153 deletions
|
|
@ -82,10 +82,10 @@ end
|
|||
-- channel and severity (no more than one message for each, budget is ignored).
|
||||
-- On success, it clears the queue.
|
||||
-- On error, it leaves the queue unchagned to retry on next round.
|
||||
function slack.dequeueRecipientAlerts(recipient, budget, high_priority)
|
||||
function slack.dequeueRecipientAlerts(recipient, budget)
|
||||
local notifications = {}
|
||||
for i = 1, budget do
|
||||
local notification = ntop.recipient_dequeue(recipient.recipient_id, high_priority)
|
||||
local notification = ntop.recipient_dequeue(recipient.recipient_id)
|
||||
if notification then
|
||||
notifications[#notifications + 1] = notification.alert
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue