(r: zed.Record)
| 12 | |
| 13 | export class SecurityEvent { |
| 14 | static build(r: zed.Record) { |
| 15 | if (r.has("_path", zed.TypeString) && r.has("ts", zed.TypeTime)) { |
| 16 | return new ZeekEvent(r) |
| 17 | } else if ( |
| 18 | r.has("event_type", zed.TypeString) && |
| 19 | r.has("ts", zed.TypeTime) |
| 20 | ) { |
| 21 | return new SuricataEvent(r) |
| 22 | } else { |
| 23 | return new UnknownEvent(r) |
| 24 | } |
| 25 | } |
| 26 | } |
no test coverage detected