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

Method SetNillableEventsCount

pkg/database/ent/alert_create.go:98–103  ·  view source on GitHub ↗

SetNillableEventsCount sets the "eventsCount" field if the given value is not nil.

(v *int32)

Source from the content-addressed store, hash-verified

96
97// SetNillableEventsCount sets the "eventsCount" field if the given value is not nil.
98func (_c *AlertCreate) SetNillableEventsCount(v *int32) *AlertCreate {
99 if v != nil {
100 _c.SetEventsCount(*v)
101 }
102 return _c
103}
104
105// SetStartedAt sets the "startedAt" field.
106func (_c *AlertCreate) SetStartedAt(v time.Time) *AlertCreate {

Callers

nothing calls this directly

Calls 1

SetEventsCountMethod · 0.95

Tested by

no test coverage detected