MCPcopy Create free account
hub / github.com/crowdsecurity/crowdsec / Aggregate

Method Aggregate

pkg/database/ent/alert_query.go:449–451  ·  view source on GitHub ↗

Aggregate returns a AlertSelect configured with the given aggregations.

(fns ...AggregateFunc)

Source from the content-addressed store, hash-verified

447
448// Aggregate returns a AlertSelect configured with the given aggregations.
449func (_q *AlertQuery) Aggregate(fns ...AggregateFunc) *AlertSelect {
450 return _q.Select().Aggregate(fns...)
451}
452
453func (_q *AlertQuery) prepareQuery(ctx context.Context) error {
454 for _, inter := range _q.inters {

Callers

nothing calls this directly

Calls 1

SelectMethod · 0.95

Tested by

no test coverage detected