MCPcopy
hub / github.com/crowdsecurity/crowdsec / getAlertContext

Function getAlertContext

pkg/alertcontext/alertcontext.go:92–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90}
91
92func getAlertContext() *Context {
93 if ac := alertContext.Load(); ac != nil {
94 return ac
95 }
96
97 return &Context{}
98}
99
100// Truncate the context map to fit in the context value length
101func TruncateContextMap(contextMap map[string][]string, contextValueLen int) ([]*models.MetaItems0, []error) {

Callers 4

TruncateContextMapFunction · 0.85
EvalAlertContextRulesFunction · 0.85
AppsecEventToContextFunction · 0.85
EventToContextFunction · 0.85

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…