mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Add mapScoreToSeverity call
This commit is contained in:
parent
4cb19a1be8
commit
24321cba24
15 changed files with 26 additions and 30 deletions
|
|
@ -104,6 +104,7 @@ function slack.dequeueRecipientAlerts(recipient, budget, high_priority)
|
|||
|
||||
for _, json_message in ipairs(notifications) do
|
||||
local notif = json.decode(json_message)
|
||||
notif.severity = ntop.mapScoreToSeverity(notif.score)
|
||||
if notif.entity_id then
|
||||
if not alerts_by_types[notif.entity_id] then
|
||||
alerts_by_types[notif.entity_id] = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue