mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 16:48:45 +05:00
StatS matching only fields in filters, integration tests for StatSV1.ProcessEvent
This commit is contained in:
@@ -36,7 +36,6 @@ type StatQueueProfile struct {
|
||||
QueueLength int
|
||||
TTL time.Duration
|
||||
Metrics []string // list of metrics to build
|
||||
Store bool // store to DB
|
||||
Thresholds []string // list of thresholds to be checked after changes
|
||||
Blocker bool // blocker flag to stop processing on filters matched
|
||||
Stored bool
|
||||
|
||||
@@ -154,7 +154,7 @@ func (sS *StatService) matchingStatQueuesForEvent(ev *StatEvent) (sqs StatQueues
|
||||
}
|
||||
passAllFilters := true
|
||||
for _, fltr := range sqPrfl.Filters {
|
||||
if pass, err := fltr.Pass(ev, "", sS); err != nil {
|
||||
if pass, err := fltr.Pass(ev.Fields, "", sS); err != nil {
|
||||
return nil, err
|
||||
} else if !pass {
|
||||
passAllFilters = false
|
||||
|
||||
Reference in New Issue
Block a user