 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- func NewEmailNotifier(model *m.AlertNotification) (alerting.Notifier, error)
- func NewPagerdutyNotifier(model *m.AlertNotification) (alerting.Notifier, error)
- func NewSlackNotifier(model *m.AlertNotification) (alerting.Notifier, error)
- func NewWebHookNotifier(model *m.AlertNotification) (alerting.Notifier, error)
- type EmailNotifier
- type NotifierBase
- type PagerdutyNotifier
- type SlackNotifier
- type WebhookNotifier
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 ¶
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
 Click to show internal directories. 
   Click to hide internal directories.