Adds formatted output of endpoint recipients

This commit is contained in:
Simone Mainardi 2020-09-17 12:41:45 +02:00
parent 80b983ac39
commit 8724ebdd9f
6 changed files with 43 additions and 0 deletions

View file

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