Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler is a logs-agent Scheduler that only manages one source, connected to a channel. Messages sent to the channel will be directed to a logs pipeline.
After the scheduler is started, the tags assigned to the log source can be updated with SetLogsTags.
func NewScheduler ¶
func NewScheduler(sourceName, source string, logsChan chan *config.ChannelMessage) *Scheduler
NewScheduler creates a new Scheduler.
func (*Scheduler) GetLogsTags ¶
GetLogsTags returns a defensive copy of the used tags
func (*Scheduler) SetLogsTags ¶
SetLogsTags updates the tags attached to channel messages.
This method retains the given tags slice, which must not be modified after this call.
func (*Scheduler) Start ¶
func (s *Scheduler) Start(sourceMgr schedulers.SourceManager)
Start implements schedulers.Scheduler#Start.
Click to show internal directories.
Click to hide internal directories.