mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add TheHive integration. (#7363)
This commit is contained in:
parent
8f07f5308a
commit
5580225e4b
7 changed files with 128 additions and 22 deletions
|
|
@ -620,7 +620,9 @@ function alert_utils.formatAlertNotification(notif, options)
|
|||
msg = msg .. alert_message
|
||||
end
|
||||
|
||||
return msg
|
||||
local alert_title = string.format("[%s]: %s", alert_consts.alertEntityLabel(notif.entity_id),alert_consts.alertTypeLabel(notif.alert_id, options.nohtml, notif.entity_id))
|
||||
local alert_type = alert_consts.alertEntityLabel(notif.entity_id)
|
||||
return msg, alert_title, alert_type
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue