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

Method SetScenario

pkg/database/ent/mutation.go:274–276  ·  view source on GitHub ↗

SetScenario sets the "scenario" field.

(s string)

Source from the content-addressed store, hash-verified

272
273// SetScenario sets the "scenario" field.
274func (m *AlertMutation) SetScenario(s string) {
275 m.scenario = &s
276}
277
278// Scenario returns the value of the "scenario" field in the mutation.
279func (m *AlertMutation) Scenario() (r string, exists bool) {

Callers 14

SetFieldMethod · 0.95
createDecisionFunction · 0.45
CreateOrUpdateAlertMethod · 0.45
createDecisionBatchMethod · 0.45
createAlertBatchMethod · 0.45
TestAPICCAPIPullIsOldFunction · 0.45
TestAPICWhitelistsFunction · 0.45
TestAPICPullTopFunction · 0.45
TestGetDecisionsCountFunction · 0.45

Calls

no outgoing calls

Tested by 9

createDecisionFunction · 0.36
TestAPICCAPIPullIsOldFunction · 0.36
TestAPICWhitelistsFunction · 0.36
TestAPICPullTopFunction · 0.36
TestGetDecisionsCountFunction · 0.36