alert

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 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 ActiveAlert

type ActiveAlert struct {
	Labels      map[string]string `json:"labels"`
	Annotations map[string]string `json:"annotations"`
}

type Alertmanager

type Alertmanager struct {
	Endpoint string
}

func (Alertmanager) Send

func (a Alertmanager) Send(alerts []ActiveAlert) error

type Alertmanagers

type Alertmanagers struct {
	Alertmanagers []Alertmanager
}

func AlertmanagersFromConfig

func AlertmanagersFromConfig(conf config.Config) Alertmanagers

func (Alertmanagers) Send

func (a Alertmanagers) Send(alerts []ActiveAlert)

Jump to

Keyboard shortcuts

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