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

Method build

apps/zui/src/ppl/detail/models/security-event.ts:14–25  ·  view source on GitHub ↗
(r: zed.Record)

Source from the content-addressed store, hash-verified

12
13export 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}

Callers 9

getNamedQueryFunction · 0.80
test.tsFile · 0.80
pushFunction · 0.80
replaceFunction · 0.80
findMethod · 0.80
valueMethod · 0.80
viewLogDetailFunction · 0.80
CorrelationsFunction · 0.80

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected