ad

package
v0.0.0-...-1dd94e2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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