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

Method WithDecisions

pkg/database/ent/alert_query.go:374–381  ·  view source on GitHub ↗

WithDecisions tells the query-builder to eager-load the nodes that are connected to the "decisions" edge. The optional arguments are used to configure the query builder of the edge.

(opts ...func(*DecisionQuery))

Source from the content-addressed store, hash-verified

372// WithDecisions tells the query-builder to eager-load the nodes that are connected to
373// the "decisions" edge. The optional arguments are used to configure the query builder of the edge.
374func (_q *AlertQuery) WithDecisions(opts ...func(*DecisionQuery)) *AlertQuery {
375 query := (&DecisionClient{config: _q.config}).Query()
376 for _, opt := range opts {
377 opt(query)
378 }
379 _q.withDecisions = query
380 return _q
381}
382
383// WithEvents tells the query-builder to eager-load the nodes that are connected to
384// the "events" edge. The optional arguments are used to configure the query builder of the edge.

Callers 3

CreateOrUpdateAlertMethod · 0.80
QueryAlertWithFilterMethod · 0.80
GetAlertByIDMethod · 0.80

Calls 1

QueryMethod · 0.45

Tested by

no test coverage detected