provider

package
v1.34.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertManager

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

AlertManager represents integration provider with Prometheus alert manager

func NewAlertManager

func NewAlertManager(alertManagerURL string, fn AlertURLGenerator, c *http.Client) *AlertManager

NewAlertManager is a constructor for AlertManager

func (*AlertManager) Send

func (am *AlertManager) Send(alert *config.Alert) error

Send an alert or resolve message

type AlertProvider

type AlertProvider interface {
	Send(rule config.Alert) error
}

AlertProvider is common interface for alert manager provider

type AlertURLGenerator

type AlertURLGenerator func(name string) string

AlertURLGenerator returns URL to single alert by given name

Jump to

Keyboard shortcuts

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