Documentation ¶
Index ¶
- func BgNotMatchMuteStrategy(rule *models.AlertRule, event *models.AlertCurEvent, ...) bool
- func EventMuteStrategy(event *models.AlertCurEvent, alertMuteCache *memsto.AlertMuteCacheType) bool
- func IdentNotExistsMuteStrategy(rule *models.AlertRule, event *models.AlertCurEvent, ...) bool
- func IsMuted(rule *models.AlertRule, event *models.AlertCurEvent, ...) bool
- func TimeSpanMuteStrategy(rule *models.AlertRule, event *models.AlertCurEvent) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BgNotMatchMuteStrategy ¶
func BgNotMatchMuteStrategy(rule *models.AlertRule, event *models.AlertCurEvent, targetCache *memsto.TargetCacheType) bool
BgNotMatchMuteStrategy 当规则开启只在bg内部告警时,对于非bg内部的机器过滤
func EventMuteStrategy ¶
func EventMuteStrategy(event *models.AlertCurEvent, alertMuteCache *memsto.AlertMuteCacheType) bool
func IdentNotExistsMuteStrategy ¶
func IdentNotExistsMuteStrategy(rule *models.AlertRule, event *models.AlertCurEvent, targetCache *memsto.TargetCacheType) bool
IdentNotExistsMuteStrategy 根据ident是否存在过滤,如果ident不存在,则target_up的告警直接过滤掉
func IsMuted ¶
func IsMuted(rule *models.AlertRule, event *models.AlertCurEvent, targetCache *memsto.TargetCacheType, alertMuteCache *memsto.AlertMuteCacheType) bool
func TimeSpanMuteStrategy ¶
func TimeSpanMuteStrategy(rule *models.AlertRule, event *models.AlertCurEvent) bool
TimeSpanMuteStrategy 根据规则配置的告警生效时间段过滤,如果产生的告警不在规则配置的告警生效时间段内,则不告警,即被mute 时间范围,左闭右开,默认范围:00:00-24:00
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.