csprofiles

package
v1.4.3-freebsd Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 10 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:"-"`
	DebugFilters        []*exprhelpers.ExprDebugger `json:"-" yaml:"-"`
	RuntimeDurationExpr *vm.Program                 `json:"-" yaml:"-"`
	DebugDurationExpr   *exprhelpers.ExprDebugger   `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