MCPcopy Index your code
hub / github.com/crowdsecurity/crowdsec / SetEventsCount

Method SetEventsCount

pkg/database/ent/mutation.go:408–411  ·  view source on GitHub ↗

SetEventsCount sets the "eventsCount" field.

(i int32)

Source from the content-addressed store, hash-verified

406
407// SetEventsCount sets the "eventsCount" field.
408func (m *AlertMutation) SetEventsCount(i int32) {
409 m.eventsCount = &i
410 m.addeventsCount = nil
411}
412
413// EventsCount returns the value of the "eventsCount" field in the mutation.
414func (m *AlertMutation) EventsCount() (r int32, exists bool) {

Callers 3

SetFieldMethod · 0.95
createAlertBatchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected