Documentation ¶
Index ¶
Constants ¶
View Source
const ( EqualOperation = iota NotEqualOperation )
Variables ¶
This section is empty.
Functions ¶
func ConnectToTask ¶
ConnectToTask 返回任务实例,用于接收采集事件 OnEvent
func FormatterRegister ¶
func FormatterRegister(name string, factory FormatterFactory) error
FormatterRegister: 注册sender输出方法
func SetResourceLimit ¶
func SetResourceLimit(maxCpuLimit, checkTimes int)
Types ¶
type FormatterFactory ¶
type FormatterFactory = func(config *config.TaskConfig) (Formatter, error)
FormatterFactory is used by output plugins to build an output instance
func FindFormatterFactory ¶
func FindFormatterFactory(name string) (FormatterFactory, error)
FindFormatterFactory: 获取格式化器实例
type Processors ¶
type Processors struct {
// contains filtered or unexported fields
}
Processors: 兼容数据平台过滤规则
func NewProcessors ¶
func NewProcessors(config *config.TaskConfig) (*Processors, error)
NewProcessors: 兼容原采集器处理并复用filebeat.processors
type Sender ¶
type Sender struct {
// contains filtered or unexported fields
}
Sender: 对采集事件进行打包, 并调用beat发送事件
func NewSender ¶
func NewSender(config *cfg.TaskConfig, taskDone chan struct{}, publisher PublisherFunc) (*Sender, error)
NewSender 生成采集器Sender实例
Click to show internal directories.
Click to hide internal directories.