Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Custom is the configuration for the custom alerting provider Custom *custom.AlertProvider `yaml:"custom"` // Discord is the configuration for the discord alerting provider Discord *discord.AlertProvider `yaml:"discord"` // Mattermost is the configuration for the mattermost alerting provider Mattermost *mattermost.AlertProvider `yaml:"mattermost"` // Messagebird is the configuration for the messagebird alerting provider Messagebird *messagebird.AlertProvider `yaml:"messagebird"` // PagerDuty is the configuration for the pagerduty alerting provider PagerDuty *pagerduty.AlertProvider `yaml:"pagerduty"` // Slack is the configuration for the slack alerting provider Slack *slack.AlertProvider `yaml:"slack"` // Teams is the configuration for the teams alerting provider Teams *teams.AlertProvider `yaml:"teams"` // Telegram is the configuration for the telegram alerting provider Telegram *telegram.AlertProvider `yaml:"telegram"` // Twilio is the configuration for the twilio alerting provider Twilio *twilio.AlertProvider `yaml:"twilio"` }
Config is the configuration for alerting providers
func (Config) GetAlertingProviderByAlertType ¶
func (config Config) GetAlertingProviderByAlertType(alertType alert.Type) provider.AlertProvider
GetAlertingProviderByAlertType returns an provider.AlertProvider by its corresponding alert.Type
Click to show internal directories.
Click to hide internal directories.