notifiers

package
v4.0.0-beta1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmailNotifier

func NewEmailNotifier(model *m.AlertNotification) (alerting.Notifier, error)

func NewPagerdutyNotifier

func NewPagerdutyNotifier(model *m.AlertNotification) (alerting.Notifier, error)

func NewSlackNotifier

func NewSlackNotifier(model *m.AlertNotification) (alerting.Notifier, error)

func NewWebHookNotifier

func NewWebHookNotifier(model *m.AlertNotification) (alerting.Notifier, error)

Types

type EmailNotifier

type EmailNotifier struct {
	NotifierBase
	Addresses []string
	// contains filtered or unexported fields
}

func (*EmailNotifier) Notify

func (this *EmailNotifier) Notify(evalContext *alerting.EvalContext) error

type NotifierBase

type NotifierBase struct {
	Name     string
	Type     string
	Id       int64
	IsDeault bool
}

func NewNotifierBase

func NewNotifierBase(id int64, isDefault bool, name, notifierType string, model *simplejson.Json) NotifierBase

func (*NotifierBase) GetIsDefault

func (n *NotifierBase) GetIsDefault() bool

func (*NotifierBase) GetNotifierId

func (n *NotifierBase) GetNotifierId() int64

func (*NotifierBase) GetType

func (n *NotifierBase) GetType() string

func (*NotifierBase) NeedsImage

func (n *NotifierBase) NeedsImage() bool

func (*NotifierBase) PassesFilter

func (n *NotifierBase) PassesFilter(rule *alerting.Rule) bool

type PagerdutyNotifier

type PagerdutyNotifier struct {
	NotifierBase
	Key         string
	AutoResolve bool
	// contains filtered or unexported fields
}

func (*PagerdutyNotifier) Notify

func (this *PagerdutyNotifier) Notify(evalContext *alerting.EvalContext) error

type SlackNotifier

type SlackNotifier struct {
	NotifierBase
	Url       string
	Recipient string
	Mention   string
	// contains filtered or unexported fields
}

func (*SlackNotifier) Notify

func (this *SlackNotifier) Notify(evalContext *alerting.EvalContext) error

type WebhookNotifier

type WebhookNotifier struct {
	NotifierBase
	Url        string
	User       string
	Password   string
	HttpMethod string
	// contains filtered or unexported fields
}

func (*WebhookNotifier) Notify

func (this *WebhookNotifier) Notify(evalContext *alerting.EvalContext) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL