alert

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	AlertingRule v1.AlertingRule
	Alert        *v1.Alert
}

Internal representation of Prometheus Rules. Alert attribute will be used when iterating over multiple AlertingRules.

func FlattenRules

func FlattenRules(groups []v1.RuleGroup) []Rule

func (*Rule) GetOutput

func (a *Rule) GetOutput() (output string)

func (*Rule) GetStatus

func (a *Rule) GetStatus() (status int)

Jump to

Keyboard shortcuts

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