feat(alerting): Implement Zulip's alerts (#845)
* feat(alerting): Add alert type for Zulip * feat(alerting): Implement Zulip alert provider * feat(alerting): Add Zulip to alerting/config.go * docs: Add Zulip alerts to README.md * fix(alerting): Include alert description in message * fix(alerting): validate Zuilip interface on compile * chore(alerting): fix import order * fix(alerting): rename ChannelId to ChannelID * Update alerting/provider/zulip/zulip_test.go --------- Co-authored-by: TwiN <twin@linux.com>
This commit is contained in:
@ -28,6 +28,7 @@ import (
|
||||
"github.com/TwiN/gatus/v5/alerting/provider/teams"
|
||||
"github.com/TwiN/gatus/v5/alerting/provider/telegram"
|
||||
"github.com/TwiN/gatus/v5/alerting/provider/twilio"
|
||||
"github.com/TwiN/gatus/v5/alerting/provider/zulip"
|
||||
)
|
||||
|
||||
// Config is the configuration for alerting providers
|
||||
@ -94,6 +95,9 @@ type Config struct {
|
||||
|
||||
// Twilio is the configuration for the twilio alerting provider
|
||||
Twilio *twilio.AlertProvider `yaml:"twilio,omitempty"`
|
||||
|
||||
// Zulip is the configuration for the zulip alerting provider
|
||||
Zulip *zulip.AlertProvider `yaml:"zulip,omitempty"`
|
||||
}
|
||||
|
||||
// GetAlertingProviderByAlertType returns an provider.AlertProvider by its corresponding alert.Type
|
||||
|
Reference in New Issue
Block a user