mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
parent
9889c291cc
commit
0f5d76ca74
14 changed files with 284 additions and 31 deletions
|
|
@ -24,13 +24,7 @@ function slack.sendNotification(notif)
|
|||
return false
|
||||
end
|
||||
|
||||
local msg_prefix = ""
|
||||
|
||||
if notif.action == "engage" then
|
||||
msg_prefix = "Alert Engaged: "
|
||||
elseif notif.action == "release" then
|
||||
msg_prefix = "Alert Released: "
|
||||
end
|
||||
local msg_prefix = alertNotificationActionToLabel(notif.action)
|
||||
|
||||
local message = {
|
||||
channel = "#" .. notif.entity_type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue