Reworks plugin template definition keys

Implements #4651
This commit is contained in:
Simone Mainardi 2020-11-03 18:09:29 +01:00
parent d9b16e7fc4
commit 2849267af8
13 changed files with 72 additions and 72 deletions

View file

@ -7,14 +7,14 @@ local json = require "dkjson"
local webhook = {
name = "Webhook",
conf_params = {
endpoint_params = {
{ param_name = "webhook_url" },
{ param_name = "webhook_sharedsecret", optional = true },
{ param_name = "webhook_username", optional = true },
{ param_name = "webhook_password", optional = true },
-- TODO: configure severity (Errors, Errors and Warnings, All)
},
conf_template = {
endpoint_template = {
plugin_key = "webhook_alert_endpoint",
template_name = "webhook_endpoint.template"
},