2020-09-19 22:22:12 +02:00
|
|
|
package alerting
|
|
|
|
|
2020-09-19 22:29:08 +02:00
|
|
|
import (
|
|
|
|
"github.com/TwinProduction/gatus/alerting/provider/custom"
|
|
|
|
"github.com/TwinProduction/gatus/alerting/provider/pagerduty"
|
|
|
|
"github.com/TwinProduction/gatus/alerting/provider/slack"
|
|
|
|
"github.com/TwinProduction/gatus/alerting/provider/twilio"
|
|
|
|
)
|
|
|
|
|
2020-10-23 22:12:53 +02:00
|
|
|
// Config is the configuration for alerting providers
|
2020-09-19 22:22:12 +02:00
|
|
|
type Config struct {
|
2020-10-23 22:12:53 +02:00
|
|
|
// Slack is the configuration for the slack alerting provider
|
|
|
|
Slack *slack.AlertProvider `yaml:"slack"`
|
|
|
|
|
|
|
|
// Pagerduty is the configuration for the pagerduty alerting provider
|
2020-09-19 22:29:08 +02:00
|
|
|
PagerDuty *pagerduty.AlertProvider `yaml:"pagerduty"`
|
2020-10-23 22:12:53 +02:00
|
|
|
|
|
|
|
// Twilio is the configuration for the twilio alerting provider
|
|
|
|
Twilio *twilio.AlertProvider `yaml:"twilio"`
|
|
|
|
|
|
|
|
// Custom is the configuration for the custom alerting provider
|
|
|
|
Custom *custom.AlertProvider `yaml:"custom"`
|
2020-09-19 22:22:12 +02:00
|
|
|
}
|