Documentation
¶
Index ¶
Constants ¶
View Source
const ( TMPL_BODY = `The status for alarm '{{.Alarm.Name}}' has changed from '{{.Previous | ToUpper}}' to '{{.Current | ToUpper}}' ` TMPL_SUBJECT = `[LOVEBEAT] {{.Alarm.Name}}-{{.Alarm.IncidentNbr}}` TMPL_EMAIL = `From: {{.From}} To: {{.To}} Subject: {{.Subject}} MIME-version: 1.0 Content-Type: text/html; charset="UTF-8" {{.Message}}` )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlerterBackend ¶
type AlerterBackend interface {
Notify(alertCfg config.ConfigAlert, ev AlertInfo)
}
func NewMailAlerter ¶
func NewMailAlerter(cfg config.Config) AlerterBackend
func NewScriptAlerter ¶
func NewScriptAlerter(cfg config.Config) AlerterBackend
func NewSlackAlerter ¶
func NewSlackAlerter(cfg config.Config) AlerterBackend
func NewWebhooksAlerter ¶
func NewWebhooksAlerter(cfg config.Config) AlerterBackend
Click to show internal directories.
Click to hide internal directories.