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 TimeNonEffectiveMuteStrategy(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 TimeNonEffectiveMuteStrategy ¶
func TimeNonEffectiveMuteStrategy(rule *models.AlertRule, event *models.AlertCurEvent) bool
TimeNonEffectiveMuteStrategy 根据规则配置的告警时间过滤,如果产生的告警不在规则配置的告警时间内,则不告警
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.