Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoesEventMatch ¶
func DoesEventMatch(e event.NormalizedEvent, r DirectiveRule, s *StickyDiffData, connID uint64) bool
DoesEventMatch check event against rule for rule with stickyDiff set, s will be appended as needed
Types ¶
type DirectiveRule ¶
type DirectiveRule struct { Name string `json:"name"` Stage int `json:"stage"` PluginID int `json:"plugin_id"` PluginSID []int `json:"plugin_sid"` Product []string `json:"product"` Category string `json:"category"` SubCategory []string `json:"subcategory"` Occurrence int `json:"occurrence"` From string `json:"from"` To string `json:"to"` Type string `json:"type"` PortFrom string `json:"port_from"` PortTo string `json:"port_to"` Protocol string `json:"protocol"` Reliability int `json:"reliability"` Timeout int64 `json:"timeout"` StartTime int64 `json:"start_time"` EndTime int64 `json:"end_time"` RcvdTime int64 `json:"rcvd_time"` Status string `json:"status"` Events []string `json:"events,omitempty"` StickyDiff string `json:"sticky_different,omitempty"` }
DirectiveRule defines the struct for directive rules, this is read-only struct.
Click to show internal directories.
Click to hide internal directories.