MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / isScoped

Method isScoped

pkg/rules/engine.go:111–118  ·  view source on GitHub ↗

isScoped determines if this filter is scoped, i.e. it has the event name or category conditions.

()

Source from the content-addressed store, hash-verified

109// isScoped determines if this filter is scoped, i.e. it has the event name or category
110// conditions.
111func (f *compiledFilter) isScoped() bool {
112 for name := range f.filter.GetStringFields() {
113 if name == fields.EvtName || name == fields.EvtCategory {
114 return true
115 }
116 }
117 return false
118}
119
120func (f *compiledFilter) isSequence() bool {
121 return f.ss != nil

Callers 1

CompileMethod · 0.80

Calls 1

GetStringFieldsMethod · 0.65

Tested by

no test coverage detected