Documentation ¶
Index ¶
- type Notifier
- func (n *Notifier) Alertmanagers() []string
- func (n *Notifier) ApplyConfig(conf *config.Config) error
- func (n *Notifier) Collect(ch chan<- prometheus.Metric)
- func (n *Notifier) Describe(ch chan<- *prometheus.Desc)
- func (n *Notifier) Run()
- func (n *Notifier) Send(alerts ...*model.Alert)
- func (n *Notifier) Stop()
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶ added in v1.0.0
type Notifier struct {
// contains filtered or unexported fields
}
Notifier is responsible for dispatching alert notifications to an alert manager service.
func (*Notifier) Alertmanagers ¶ added in v1.4.0
Alertmanagers returns a list Alertmanager URLs.
func (*Notifier) ApplyConfig ¶ added in v1.0.0
ApplyConfig updates the status state as the new config requires.
func (*Notifier) Collect ¶ added in v1.0.0
func (n *Notifier) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*Notifier) Describe ¶ added in v1.0.0
func (n *Notifier) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
func (*Notifier) Run ¶ added in v1.0.0
func (n *Notifier) Run()
Run dispatches notifications continuously.
Click to show internal directories.
Click to hide internal directories.