mirror of
https://github.com/Theldus/alertik.git
synced 2024-11-21 23:43:23 +01:00
Add four generic webhook notifiers
This commit is contained in:
parent
2fb5a9fa4e
commit
32b9d8b772
28
notifiers.c
28
notifiers.c
@ -360,5 +360,31 @@ struct notifier notifiers[] = {
|
||||
.send_notification = send_discord_notification,
|
||||
.data = &(struct webhook_data)
|
||||
{.env_var = "DISCORD_WEBHOOK_URL"},
|
||||
}
|
||||
},
|
||||
|
||||
/* Generic webhook events: 1--4 */
|
||||
{
|
||||
.setup = setup_generic_webhook,
|
||||
.send_notification = send_generic_webhook_notification,
|
||||
.data = &(struct webhook_data)
|
||||
{.env_var = "GENERIC1_WEBHOOK_URL"},
|
||||
},
|
||||
{
|
||||
.setup = setup_generic_webhook,
|
||||
.send_notification = send_generic_webhook_notification,
|
||||
.data = &(struct webhook_data)
|
||||
{.env_var = "GENERIC2_WEBHOOK_URL"},
|
||||
},
|
||||
{
|
||||
.setup = setup_generic_webhook,
|
||||
.send_notification = send_generic_webhook_notification,
|
||||
.data = &(struct webhook_data)
|
||||
{.env_var = "GENERIC3_WEBHOOK_URL"},
|
||||
},
|
||||
{
|
||||
.setup = setup_generic_webhook,
|
||||
.send_notification = send_generic_webhook_notification,
|
||||
.data = &(struct webhook_data)
|
||||
{.env_var = "GENERIC4_WEBHOOK_URL"},
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user