alertanalyzer

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAlertSummarySerializer

func NewAlertSummarySerializer() monitortestframework.MonitorTest

Types

type Alert

type Alert struct {
	AlertKey `json:",inline"`
	Duration metav1.Duration
}

type AlertByKey

type AlertByKey []Alert

func (AlertByKey) Len

func (a AlertByKey) Len() int

func (AlertByKey) Less

func (a AlertByKey) Less(i, j int) bool

func (AlertByKey) Swap

func (a AlertByKey) Swap(i, j int)

type AlertKey

type AlertKey struct {
	Name      string
	Namespace string
	Level     AlertLevel
}

name and namespace are consistent (usually) for every CI run

type AlertKeyByAlert

type AlertKeyByAlert []AlertKey

func (AlertKeyByAlert) Len

func (a AlertKeyByAlert) Len() int

func (AlertKeyByAlert) Less

func (a AlertKeyByAlert) Less(i, j int) bool

func (AlertKeyByAlert) Swap

func (a AlertKeyByAlert) Swap(i, j int)

type AlertLevel

type AlertLevel string
var (
	UnknownAlertLevel  AlertLevel = "Unknown"
	WarningAlertLevel  AlertLevel = "Warning"
	CriticalAlertLevel AlertLevel = "Critical"
)

type AlertList

type AlertList struct {
	// Alerts is keyed by name to make the consumption easier
	Alerts []Alert
}

Jump to

Keyboard shortcuts

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