alerting

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

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

Dispatcher is used to dispatch Prometheus alerts via email.

func NewDispatcher

func NewDispatcher(conf *config.Configuration, log *zerolog.Logger) (*Dispatcher, error)

NewDispatcher creates a new dispatcher instance.

func (*Dispatcher) DispatchAlerts

func (dispatcher *Dispatcher) DispatchAlerts(alerts *template.Data, accounts data.Accounts) error

DispatchAlerts sends the provided alert(s) via email to the appropriate recipients.

Jump to

Keyboard shortcuts

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