rules

package
v0.0.0-...-1a3a2fa Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertRule

type AlertRule struct {
	Times           []ruletime.RuleTime `json:"times"`
	ScoreMultiplier float32             `json:"mult"`
}

func (*AlertRule) MatchTime

func (ar *AlertRule) MatchTime(t time.Time, coversOpts ...ruletime.CoversOption) bool

type AlertRules

type AlertRules []AlertRule

func (AlertRules) Apply

func (ars AlertRules) Apply(t time.Time, coversOpts ...ruletime.CoversOption) float64

Jump to

Keyboard shortcuts

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