Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Events = &EventCache{records: make(map[string]*types.Event)}
View Source
var (
FromAgent = "unknown"
)
Functions ¶
Types ¶
type EventCache ¶
这里不需要定期清理,原因: 1. 内存里的事件数量不大 2. 有些事件就是很久才恢复,恢复的时候如果发现之前告警的事件已经被清理了,就无法生成恢复事件了
func (*EventCache) Del ¶
func (c *EventCache) Del(key string)
func (*EventCache) Set ¶
func (c *EventCache) Set(val *types.Event)
Click to show internal directories.
Click to hide internal directories.