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

Method AlertsIDs

pkg/database/ent/mutation.go:9658–9663  ·  view source on GitHub ↗

AlertsIDs returns the "alerts" edge IDs in the mutation.

()

Source from the content-addressed store, hash-verified

9656
9657// AlertsIDs returns the "alerts" edge IDs in the mutation.
9658func (m *MachineMutation) AlertsIDs() (ids []int) {
9659 for id := range m.alerts {
9660 ids = append(ids, id)
9661 }
9662 return
9663}
9664
9665// ResetAlerts resets all changes to the "alerts" edge.
9666func (m *MachineMutation) ResetAlerts() {

Callers 3

createSpecMethod · 0.80
sqlSaveMethod · 0.80
sqlSaveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected