policy

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(policyClient interfaces.PolicyClient) *Service

func NewWithStrictMode

func NewWithStrictMode(policyClient interfaces.PolicyClient, strictAlert bool) *Service

func (*Service) EvaluateEnrichPolicy

func (s *Service) EvaluateEnrichPolicy(ctx context.Context, alert *alert.Alert) (*policy.EnrichPolicyResult, error)

EvaluateEnrichPolicy evaluates the enrich policy for the given alert

func (*Service) EvaluateIngestPolicy added in v0.7.0

func (s *Service) EvaluateIngestPolicy(ctx context.Context, schema types.AlertSchema, alertData any) ([]*alert.Alert, error)

EvaluateIngestPolicy evaluates ingest policy and returns alerts

func (*Service) EvaluateTriagePolicy added in v0.7.0

func (s *Service) EvaluateTriagePolicy(ctx context.Context, alert *alert.Alert, enrichResults policy.EnrichResults) (*policy.TriagePolicyResult, error)

EvaluateTriagePolicy evaluates triage policy

Jump to

Keyboard shortcuts

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