alerting

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alerter

type Alerter interface {
	AlertError(err error) error
}

type Alerters added in v0.16.0

type Alerters []Alerter

func NewAlerters added in v0.16.0

func NewAlerters(cfg service.ErrorAlerting) (Alerters, error)

func (Alerters) AlertError added in v0.16.0

func (s Alerters) AlertError(e error) error

type MockAlerter

type MockAlerter struct{}

func (*MockAlerter) AlertError

func (mn *MockAlerter) AlertError(e error) error

type PagerDuty

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

func NewPagerDutyAlerter

func NewPagerDutyAlerter(cfg *service.PagerDutyAlerting) (*PagerDuty, error)

func (*PagerDuty) AlertError

func (pd *PagerDuty) AlertError(e error) error

type Slack added in v0.16.0

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

func NewSlackAlerter added in v0.16.0

func NewSlackAlerter(cfg *service.SlackAlerting) (*Slack, error)

func (*Slack) AlertError added in v0.16.0

func (s *Slack) AlertError(e error) error

func (*Slack) AuthTest added in v0.16.0

func (s *Slack) AuthTest() error

Jump to

Keyboard shortcuts

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