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

Method SetEventsCount

pkg/database/ent/alert_create.go:92–95  ·  view source on GitHub ↗

SetEventsCount sets the "eventsCount" field.

(v int32)

Source from the content-addressed store, hash-verified

90
91// SetEventsCount sets the "eventsCount" field.
92func (_c *AlertCreate) SetEventsCount(v int32) *AlertCreate {
93 _c.mutation.SetEventsCount(v)
94 return _c
95}
96
97// SetNillableEventsCount sets the "eventsCount" field if the given value is not nil.
98func (_c *AlertCreate) SetNillableEventsCount(v *int32) *AlertCreate {

Callers 2

defaultsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected