service

package
v0.0.0-...-221c3f5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: AGPL-3.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 AlertProcessor

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

func NewAlertProcessor

func NewAlertProcessor(
	opensearchClient *client.OpenSearchClient,
	fieldExtractor *extractor.FieldExtractor,
	entityBuilder *EntityBuilder,
) *AlertProcessor

func (*AlertProcessor) ProcessAlertWithAssociations

func (p *AlertProcessor) ProcessAlertWithAssociations(
	ctx context.Context,
	incidentAlert *models.IncidentAlert,
	incident *models.Incident,
	associationBuilder *association.AssociationBuilder,
) error

type EntityBuilder

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

func NewEntityBuilder

func NewEntityBuilder(entityMapper *mapper.EntityMapper) *EntityBuilder

func (*EntityBuilder) MapAndRegisterFieldsToEntities

func (b *EntityBuilder) MapAndRegisterFieldsToEntities(
	fields []*models.FlattenedField,
	incident *models.Incident,
	alert *models.Alert,
	event *models.Event,
	associationBuilder *association.AssociationBuilder,
)

type IncidentProcessor

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

func NewIncidentProcessor

func NewIncidentProcessor(
	deps *client.ClientDependencies,
	alertProcessor *AlertProcessor,
	associationBuilder *association.AssociationBuilder,
) *IncidentProcessor

func (*IncidentProcessor) ProcessIncident

func (p *IncidentProcessor) ProcessIncident(ctx context.Context, incident *models.Incident) (int, error)

Jump to

Keyboard shortcuts

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