如何开发扩展Aggregator插件
公共接口 Aggregator
type Aggregator interface {
Init(Context, LogGroupQueue) (int, error)
Description() string
Reset()
}AggregatorV1(protocol.Log / LogGroup)
type AggregatorV1 interface {
Aggregator
Add(log *protocol.Log, ctx map[string]interface{}) error
Flush() []*protocol.LogGroup
}AggregatorV2(PipelineGroupEvents)
LogGroupQueue 说明
Aggregator 开发流程
Last updated