Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertProvider ¶
type AlertProvider struct {
WebhookURL string `yaml:"webhook-url"`
}
AlertProvider is the configuration necessary for sending an alert using Slack
func (*AlertProvider) IsValid ¶
func (provider *AlertProvider) IsValid() bool
IsValid returns whether the provider's configuration is valid
func (*AlertProvider) ToCustomAlertProvider ¶
func (provider *AlertProvider) ToCustomAlertProvider(service *core.Service, alert *core.Alert, result *core.Result, resolved bool) *custom.AlertProvider
ToCustomAlertProvider converts the provider into a custom.AlertProvider
Click to show internal directories.
Click to hide internal directories.