csprofiles

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runtime added in v1.4.0

type Runtime struct {
	RuntimeFilters      []*vm.Program        `json:"-" yaml:"-"`
	RuntimeDurationExpr *vm.Program          `json:"-" yaml:"-"`
	Cfg                 *csconfig.ProfileCfg `json:"-" yaml:"-"`
	Logger              *log.Entry           `json:"-" yaml:"-"`
}

func NewProfile added in v1.4.0

func NewProfile(profilesCfg []*csconfig.ProfileCfg) ([]*Runtime, error)

func (*Runtime) EvaluateProfile added in v1.4.0

func (Profile *Runtime) EvaluateProfile(Alert *models.Alert) ([]*models.Decision, bool, error)

EvaluateProfile is going to evaluate an Alert against a profile to generate Decisions

func (*Runtime) GenerateDecisionFromProfile added in v1.4.0

func (Profile *Runtime) GenerateDecisionFromProfile(Alert *models.Alert) ([]*models.Decision, error)

Jump to

Keyboard shortcuts

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