Documentation
¶
Index ¶
Constants ¶
View Source
const ( EventDimensionKey = "dimension" // 事件dimension键值 EventEventKey = "event" // 事件内容的事件键值 EventTimeStampKey = "timestamp" // 事件事件键值 EventEventNameKey = "event_name" // 事件名键值 EventTargetKey = "target" // 监控目标键值 )
Variables ¶
View Source
var CounterSend = uint64(0)
Functions ¶
Types ¶
type EventCounter ¶
type EventSender ¶
type EventSender struct { tasks.CmdbEventSender // contains filtered or unexported fields }
EventSender: 日志关键字的事件发送
func NewEventSender ¶
func NewEventSender(ctx context.Context, config keyword.SendConfig, eChan chan<- define.Event) *EventSender
func (*EventSender) AddInput ¶
func (s *EventSender) AddInput(input <-chan interface{})
func (*EventSender) AddOutput ¶
func (s *EventSender) AddOutput(output chan<- interface{})
AddOutput 由于Sender是最后一个环节了,所以不需要将output保留
func (*EventSender) ID ¶
func (s *EventSender) ID() string
func (*EventSender) Reload ¶
func (s *EventSender) Reload(interface{})
func (*EventSender) Start ¶
func (s *EventSender) Start() error
func (*EventSender) Stop ¶
func (s *EventSender) Stop()
func (*EventSender) Wait ¶
func (s *EventSender) Wait()
type OutputData ¶
type OutputData struct {
// contains filtered or unexported fields
}
func (OutputData) AsMapStr ¶
func (o OutputData) AsMapStr() common.MapStr
func (OutputData) GetType ¶
func (o OutputData) GetType() string
Click to show internal directories.
Click to hide internal directories.