Versions in this module Expand all Collapse all v0 v0.3.0 Jul 8, 2016 Changes in this version + const MinTimeout + func Build(confs []*config.Receiver, tmpl *template.Template) map[string]Fanout + func GroupKey(ctx context.Context) (model.Fingerprint, bool) + func GroupLabels(ctx context.Context) (model.LabelSet, bool) + func LoginAuth(username, password string) smtp.Auth + func Now(ctx context.Context) (time.Time, bool) + func Receiver(ctx context.Context) (string, bool) + func RepeatInterval(ctx context.Context) (time.Duration, bool) + func WithGroupKey(ctx context.Context, fp model.Fingerprint) context.Context + func WithGroupLabels(ctx context.Context, lset model.LabelSet) context.Context + func WithNow(ctx context.Context, t time.Time) context.Context + func WithReceiver(ctx context.Context, rcv string) context.Context + func WithRepeatInterval(ctx context.Context, t time.Duration) context.Context + type DedupingNotifier struct + func Dedup(notifies provider.Notifies, n Notifier) *DedupingNotifier + func (n *DedupingNotifier) Notify(ctx context.Context, alerts ...*types.Alert) error + type Email struct + func NewEmail(c *config.EmailConfig, t *template.Template) *Email + func (n *Email) Notify(ctx context.Context, as ...*types.Alert) error + type Fanout map[string]Notifier + func (ns Fanout) Notify(ctx context.Context, alerts ...*types.Alert) error + type Hipchat struct + func NewHipchat(conf *config.HipchatConfig, tmpl *template.Template) *Hipchat + func (n *Hipchat) Notify(ctx context.Context, as ...*types.Alert) error + type InhibitNotifier struct + func Inhibit(m types.Muter, n Notifier, mk types.Marker) *InhibitNotifier + func (n *InhibitNotifier) Notify(ctx context.Context, alerts ...*types.Alert) error + type LogNotifier struct + func Log(n Notifier, log log.Logger) *LogNotifier + func (n *LogNotifier) Notify(ctx context.Context, alerts ...*types.Alert) error + type Notifier interface + Notify func(context.Context, ...*types.Alert) error + type NotifierFunc func(context.Context, ...*types.Alert) error + func (f NotifierFunc) Notify(ctx context.Context, alerts ...*types.Alert) error + type OpsGenie struct + func NewOpsGenie(c *config.OpsGenieConfig, t *template.Template) *OpsGenie + func (n *OpsGenie) Notify(ctx context.Context, as ...*types.Alert) error + type PagerDuty struct + func NewPagerDuty(c *config.PagerdutyConfig, t *template.Template) *PagerDuty + func (n *PagerDuty) Notify(ctx context.Context, as ...*types.Alert) error + type Pushover struct + func NewPushover(c *config.PushoverConfig, t *template.Template) *Pushover + func (n *Pushover) Notify(ctx context.Context, as ...*types.Alert) error + type RetryNotifier struct + func Retry(n Notifier) *RetryNotifier + func (n *RetryNotifier) Notify(ctx context.Context, alerts ...*types.Alert) error + type Router map[string]Notifier + func (rs Router) Notify(ctx context.Context, alerts ...*types.Alert) error + type SilenceNotifier struct + func Silence(m types.Muter, n Notifier, mk types.Marker) *SilenceNotifier + func (n *SilenceNotifier) Notify(ctx context.Context, alerts ...*types.Alert) error + type Slack struct + func NewSlack(conf *config.SlackConfig, tmpl *template.Template) *Slack + func (n *Slack) Notify(ctx context.Context, as ...*types.Alert) error + type Webhook struct + URL string + func NewWebhook(conf *config.WebhookConfig, t *template.Template) *Webhook + func (w *Webhook) Notify(ctx context.Context, alerts ...*types.Alert) error + type WebhookMessage struct + GroupKey uint64 + Version string