sender

package
v0.0.85-test Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sender

type Sender struct {
	// contains filtered or unexported fields
}

Sender is responsible for dispatching alert notifications to an external Alertmanager service.

func New

func New(_ *metrics.Scheduler) (*Sender, error)

func (*Sender) Alertmanagers

func (s *Sender) Alertmanagers() []*url.URL

Alertmanagers returns a list of the discovered Alertmanager(s).

func (*Sender) ApplyConfig

func (s *Sender) ApplyConfig(cfg *ngmodels.AdminConfiguration) error

ApplyConfig syncs a configuration with the sender.

func (*Sender) DroppedAlertmanagers

func (s *Sender) DroppedAlertmanagers() []*url.URL

DroppedAlertmanagers returns a list of Alertmanager(s) we no longer send alerts to.

func (*Sender) Run

func (s *Sender) Run()

func (*Sender) SendAlerts

func (s *Sender) SendAlerts(alerts apimodels.PostableAlerts)

SendAlerts sends a set of alerts to the configured Alertmanager(s).

func (*Sender) Stop

func (s *Sender) Stop()

Stop shuts down the sender.

Jump to

Keyboard shortcuts

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