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.
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) Unschedule ¶
func (s *Scheduler) Unschedule(configs []integration.Config)
Unschedule removes all the sources and services matching the integration configs.