alertmgr

package
v0.10.12 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KeyTopology is the key for the topology status of alerts
	KeyTopology = "topology"
)

Variables

This section is empty.

Functions

func New

func New(options ...Option)

New registers a alert manager on the event bus

func Run

func Run() error

Run starts a alert manager

Types

type AlertMgr

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

AlertMgr handles alerts

func (*AlertMgr) Configure

func (am *AlertMgr) Configure(options ...Option)

Configure the AlertMgr

type Option

type Option func(*AlertMgr)

Option configures AlertMgr

func AlertIntervall

func AlertIntervall(i time.Duration) Option

AlertIntervall sets the intervall in which an alert is repeated

type Stater

type Stater interface {
	json.Marshaler
	json.Unmarshaler
	GetAlert(e msg.SzenarioEvtMsg) *msg.AlertMsg
}

Stater defines the state of an entity

Jump to

Keyboard shortcuts

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