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

Method SetLastPush

pkg/database/ent/mutation.go:8949–8951  ·  view source on GitHub ↗

SetLastPush sets the "last_push" field.

(t time.Time)

Source from the content-addressed store, hash-verified

8947
8948// SetLastPush sets the "last_push" field.
8949func (m *MachineMutation) SetLastPush(t time.Time) {
8950 m.last_push = &t
8951}
8952
8953// LastPush returns the value of the "last_push" field in the mutation.
8954func (m *MachineMutation) LastPush() (r time.Time, exists bool) {

Callers 4

SetFieldMethod · 0.95
CreateAlertMethod · 0.45
TestAPICSendMetricsFunction · 0.45
TestAPICGetMetricsFunction · 0.45

Calls

no outgoing calls

Tested by 2

TestAPICSendMetricsFunction · 0.36
TestAPICGetMetricsFunction · 0.36