Documentation ¶
Overview ¶
Package autosuppression holds auto suppression related files
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoSuppression ¶
type AutoSuppression struct {
// contains filtered or unexported fields
}
AutoSuppression is a struct that encapsulates the auto suppression logic
func (*AutoSuppression) Apply ¶
func (as *AutoSuppression) Apply(ruleSet *rules.RuleSet)
Apply resets the auto suppression stats based on the given ruleset
func (*AutoSuppression) GetStats ¶
func (as *AutoSuppression) GetStats() map[StatsTags]int64
GetStats returns the auto suppressions stats
func (*AutoSuppression) Init ¶
func (as *AutoSuppression) Init(opts Opts)
Init initializes the auto suppression with the given options
func (*AutoSuppression) Suppresses ¶
Suppresses returns true if the event should be suppressed for the given rule, false otherwise. It also counts statistics depending on this result
Click to show internal directories.
Click to hide internal directories.