alertmanager

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 18 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
}

func (*AlertManager) Init

func (a *AlertManager) Init(
	alertCfg map[string]map[string]interface{},
	appCfg *config.App)

Init initializes AlertManager with provided config

func (*AlertManager) Notify

func (a *AlertManager) Notify(msg string)

Notify sends string msg to all providers

func (*AlertManager) NotifyEvent

func (a *AlertManager) NotifyEvent(event event.Event)

NotifyEvent sends event to all providers

type Provider

type Provider interface {
	Name() string
	SendEvent(*event.Event) error
	SendMessage(string) error
}

Provider interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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