Adds slack, webhook and syslog notification endpoints

This commit is contained in:
Simone Mainardi 2020-06-18 12:55:12 +02:00
parent d592b3b43c
commit 0cf69d9996
11 changed files with 98 additions and 42 deletions

View file

@ -5,7 +5,25 @@
require "lua_utils"
local json = require "dkjson"
local webhook = {}
local webhook = {
conf_params = {
{ param_name = "webhook_url" },
{ param_name = "webhook_sharedsecret", optional = true },
{ param_name = "webhook_username", optional = true },
{ param_name = "webhook_password", optional = true },
},
conf_template = {
plugin_key = "webhook_alert_endpoint",
template_name = "webhook_endpoint.template"
},
recipient_params = {
-- TODO: add recipient params
},
recipient_template = {
plugin_key = "webhook_alert_endpoint",
template_name = "webhook_recipient.template" -- TODO: add template
},
}
webhook.EXPORT_FREQUENCY = 60
webhook.API_VERSION = "0.2"