ad

package
v0.0.0-...-45a9bcf Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSources

func CreateSources(config integration.Config) ([]*sourcesPkg.LogSource, error)

createsSources creates new sources from an integration config, returns an error if the parsing failed.

func New

New creates a new scheduler.

Types

type Scheduler

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

Scheduler creates and deletes new sources and services to start or stop log collection based on information from autodiscovery.

This type implements pkg/logs/schedulers.Scheduler.

func (*Scheduler) Schedule

func (s *Scheduler) Schedule(configs []integration.Config)

Schedule creates new sources and services from a list of integration configs. An integration config can be mapped to a list of sources when it contains a Provider, while an integration config can be mapped to a service when it contains an Entity. An entity represents a unique identifier for a process that be reused to query logs.

func (*Scheduler) Start

func (s *Scheduler) Start(sourceMgr schedulers.SourceManager)

Start implements schedulers.Scheduler#Start.

func (*Scheduler) Stop

func (s *Scheduler) Stop()

Stop implements schedulers.Scheduler#Stop.

func (*Scheduler) Unschedule

func (s *Scheduler) Unschedule(configs []integration.Config)

Unschedule removes all the sources and services matching the integration configs.

Jump to

Keyboard shortcuts

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