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

Method events

pkg/rules/sequence.go:148–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146}
147
148func (s *sequenceState) events() []*event.Event {
149 s.mmu.RLock()
150 defer s.mmu.RUnlock()
151 events := make([]*event.Event, 0, len(s.matches))
152 for _, e := range s.matches {
153 events = append(events, e)
154 }
155 sort.Slice(events, func(i, j int) bool { return events[i].Timestamp.Before(events[j].Timestamp) })
156 return events
157}
158
159func (s *sequenceState) isStateSchedulable(state fsm.State) bool {
160 return state != s.initialState && state != sequenceTerminalState && state != sequenceExpiredState && state != sequenceDeadlineState

Callers 1

ProcessEventMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected