baseline

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaselineMatch

type BaselineMatch struct {
	RuleID      string
	Title       string
	Severity    string
	Tags        []string
	Description string
	Pattern     string // The unique pattern that was seen
	Message     *santapb.SantaMessage
	Timestamp   time.Time
	InLearning  bool // Whether this occurred during learning period
}

BaselineMatch represents a baseline rule match (first occurrence)

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

Processor evaluates baseline rules and tracks first-seen patterns

func NewProcessor

func NewProcessor(db *state.DB) *Processor

NewProcessor creates a new baseline processor

func (*Processor) Process

func (p *Processor) Process(
	msg *santapb.SantaMessage,
	baselines []*rules.CompiledBaseline,
	engine *rules.Engine,
) ([]*BaselineMatch, error)

Process evaluates an event against baseline rules.

Jump to

Keyboard shortcuts

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