mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Adds formatted output of endpoint recipients
This commit is contained in:
parent
80b983ac39
commit
8724ebdd9f
6 changed files with 43 additions and 0 deletions
|
|
@ -35,6 +35,13 @@ local MAX_ALERTS_PER_REQUEST = 10
|
|||
|
||||
-- ##############################################
|
||||
|
||||
-- @brief Returns the desided formatted output for recipient params
|
||||
function webhook.format_recipient_params(recipient_params)
|
||||
return string.format("(%s)", webhook.name)
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
local function recipient2sendMessageSettings(recipient)
|
||||
local settings = {
|
||||
url = recipient.endpoint_conf.webhook_url,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue