analyzer

package
v0.0.0-...-51da36d Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ConsumeAllEvents = "consumeAllEvents"

Variables

This section is empty.

Functions

This section is empty.

Types

type Analyzer

type Analyzer interface {
	// Start initializes the analyzer
	Start() error
	// ConsumeEvent gets the event from the previous component
	ConsumeEvent(event *model.KindlingEvent) error
	// Shutdown cleans all the resources used by the analyzer
	Shutdown() error
	// Type returns the type of the analyzer
	Type() Type
	// ConsumableEvents returns the events' name that this analyzer can consume
	ConsumableEvents() []string
}

type Manager

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

func NewManager

func NewManager(analyzers ...Analyzer) (*Manager, error)

func (*Manager) GetConsumableAnalyzers

func (m *Manager) GetConsumableAnalyzers(eventName string) []Analyzer

GetConsumableAnalyzers returns the analyzers according to the input eventName. Note this method is called in very high frequency, so the performance is important.

func (*Manager) ShutdownAll

func (m *Manager) ShutdownAll(logger *component.TelemetryLogger) error

func (*Manager) StartAll

func (m *Manager) StartAll(logger *component.TelemetryLogger) error

type Type

type Type string

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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