event

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnrichPolicyResultEvent

type EnrichPolicyResultEvent struct {
	TaskCount int
	Policy    *policy.EnrichPolicyResult
}

EnrichPolicyResultEvent is fired when enrich policy evaluation completes

type EnrichTaskPromptEvent

type EnrichTaskPromptEvent struct {
	TaskID     string
	PromptText string
}

EnrichTaskPromptEvent is fired when an enrich task prompt is prepared

type EnrichTaskResponseEvent

type EnrichTaskResponseEvent struct {
	TaskID   string
	Response any
}

EnrichTaskResponseEvent is fired when LLM responds to an enrich task

type ErrorEvent

type ErrorEvent struct {
	TaskID  string // Optional: only set if error is related to a specific task
	Error   error
	Message string
}

ErrorEvent is fired when an error occurs during pipeline processing

type EventNotifier

type EventNotifier func(ctx context.Context, event NotificationEvent)

EventNotifier is a function type for receiving notification events Implementations should format events appropriately for their output destination

type IngestPolicyResultEvent added in v0.7.0

type IngestPolicyResultEvent struct {
	Schema types.AlertSchema
	Alerts []*alert.Alert
}

IngestPolicyResultEvent is fired when ingest policy evaluation completes

type NotificationEvent

type NotificationEvent interface {
	// contains filtered or unexported methods
}

NotificationEvent represents an event during alert pipeline processing

type TriagePolicyResultEvent added in v0.7.0

type TriagePolicyResultEvent struct {
	Result *policy.TriagePolicyResult
}

TriagePolicyResultEvent is fired when triage policy evaluation completes

Jump to

Keyboard shortcuts

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