service

package
v0.0.0-...-738f650 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(
	alertClient *client.AlertClient,
	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, bool, error)

Jump to

Keyboard shortcuts

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