MCPcopy
hub / github.com/brimdata/zui / SuricataEvent

Class SuricataEvent

apps/zui/src/ppl/detail/models/SuricataEvent.ts:4–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import {SecurityEventInterface} from "./security-event"
3
4export class SuricataEvent implements SecurityEventInterface {
5 constructor(private r: zed.Record) {}
6
7 getRecord() {
8 return this.r
9 }
10
11 getTime() {
12 return this.r.get<zed.Time>("ts").toDate()
13 }
14
15 getEndTime() {
16 return null
17 }
18
19 getType() {
20 return this.r.get("event_type").toString()
21 }
22
23 getSeverity(): number {
24 return Number(this.r.get<zed.Uint64>(["alert", "severity"]).toInt())
25 }
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected