alertmanager

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RelayEvent

func RelayEvent(e *scheduler.AlertAttrs, host, endpoint, dashboardURL, dataConsole string, logger log.Logger) error

Types

type AlertManager

type AlertManager struct {
	io.Closer
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, logger log.Logger, host, endpoint, dashboard, dataConsole string) *AlertManager

func (*AlertManager) Close

func (a *AlertManager) Close() error

func (*AlertManager) Relay

func (a *AlertManager) Relay(alert *scheduler.AlertAttrs)

type AlertPayload

type AlertPayload struct {
	Data     map[string]string `json:"data"`
	Template string            `json:"template"`
	Labels   map[string]string `json:"labels"`
}

Jump to

Keyboard shortcuts

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