Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Trigger ¶
type Trigger struct { Condition string `mapstructure:"condition,omitempty"` MinOccurrences int `mapstructure:"min-occurrences,omitempty"` MaxOccurrences int `mapstructure:"max-occurrences,omitempty"` Window time.Duration `mapstructure:"window,omitempty"` Action map[string]interface{} `mapstructure:"action,omitempty"` Debug bool `mapstructure:"debug,omitempty"` // contains filtered or unexported fields }
Trigger triggers an action when certain conditions are met
func (*Trigger) Apply ¶
func (p *Trigger) Apply(es ...*formatters.EventMsg) []*formatters.EventMsg
func (*Trigger) WithLogger ¶
func (*Trigger) WithTargets ¶
Click to show internal directories.
Click to hide internal directories.