rule

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertValues

type AlertValues struct {
	Labels map[string]string
}

type ScheduledRule

type ScheduledRule struct {
	LastRun   time.Time
	Running   bool
	Config    config.Rule
	GroupName string
	Labels    map[string]string
	// contains filtered or unexported fields
}

func ScheduledRulesFromConfig

func ScheduledRulesFromConfig(c config.AlertConfig, conn driver.Conn) []ScheduledRule

func (*ScheduledRule) Query

func (rule *ScheduledRule) Query() ([]map[string]string, error)

func (*ScheduledRule) Run

func (rule *ScheduledRule) Run() ([]alert.ActiveAlert, error)

Jump to

Keyboard shortcuts

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