Add TheHive integration. (#7363)

This commit is contained in:
Nicolo Maio 2023-06-29 10:56:11 +00:00
parent 8f07f5308a
commit 5580225e4b
7 changed files with 128 additions and 22 deletions

View file

@ -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
-- ##############################################