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 ¶
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 ¶
ApplyConfig updates the status state as the new config requires.
func (*Notifier) Collect ¶
func (n *Notifier) Collect(ch chan<- prometheus.Metric)
Collect implements prometheus.Collector.
func (*Notifier) Describe ¶
func (n *Notifier) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
Click to show internal directories.
Click to hide internal directories.