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

@ -7,7 +7,22 @@ local json = require "dkjson"
local alert_utils = require "alert_utils"
local alert_consts = require "alert_consts"
local syslog = {}
local syslog = {
conf_params = {
{ param_name = "syslog_alert_format" },
},
conf_template = {
plugin_key = "syslog_alert_endpoint",
template_name = "syslog_endpoint.template"
},
recipient_params = {
-- TODO: add channel
},
recipient_template = {
plugin_key = "syslog_alert_endpoint",
template_name = "syslog_recipient.template" -- TODO: add template
},
}
syslog.DEFAULT_SEVERITY = "info"
syslog.EXPORT_FREQUENCY = 1 -- 1 second, i.e., as soon as possible