alert

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: BSD-3-Clause, GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {

	// allow thread safe access
	sync.Mutex
	// contains filtered or unexported fields
}

Manager keeps track of generated alerts to perform deduplication, and provides an interface to fetch alerts in a configurable interval.

func (*Manager) AddAlert

func (a *Manager) AddAlert(alert *types.Alert)

AddAlert will add an alert

func (*Manager) FetchAlerts

func (a *Manager) FetchAlerts() map[string]*types.Alert

FetchAlerts fetches all alerts from the manager make configurable, add timer etc

Jump to

Keyboard shortcuts

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