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

Method EventsCount

pkg/database/ent/mutation.go:414–420  ·  view source on GitHub ↗

EventsCount returns the value of the "eventsCount" field in the mutation.

()

Source from the content-addressed store, hash-verified

412
413// EventsCount returns the value of the "eventsCount" field in the mutation.
414func (m *AlertMutation) EventsCount() (r int32, exists bool) {
415 v := m.eventsCount
416 if v == nil {
417 return
418 }
419 return *v, true
420}
421
422// OldEventsCount returns the old "eventsCount" field's value of the Alert entity.
423// If the Alert object wasn't provided to the builder, the object is fetched from the database.

Callers 5

FieldMethod · 0.95
defaultsMethod · 0.80
createSpecMethod · 0.80
UpdateNewValuesMethod · 0.80
UpdateNewValuesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected