mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-17 14:19:54 +05:00
Adding option to disable threshold processing via *none
This commit is contained in:
committed by
Dan Christian Bogos
parent
cf24c1919f
commit
a0131b72af
@@ -507,6 +507,9 @@ func (rS *ResourceService) processThresholds(r *Resource) (err error) {
|
||||
}
|
||||
var thIDs []string
|
||||
if len(r.rPrf.ThresholdIDs) != 0 {
|
||||
if len(r.rPrf.ThresholdIDs) == 1 && r.rPrf.ThresholdIDs[0] == utils.META_NONE {
|
||||
return
|
||||
}
|
||||
thIDs = r.rPrf.ThresholdIDs
|
||||
}
|
||||
thEv := &ArgsProcessEvent{ThresholdIDs: thIDs,
|
||||
|
||||
@@ -256,6 +256,9 @@ func (sS *StatService) processEvent(args *StatsArgsProcessEvent) (statQueueIDs [
|
||||
}
|
||||
var thIDs []string
|
||||
if len(sq.sqPrfl.ThresholdIDs) != 0 {
|
||||
if len(sq.sqPrfl.ThresholdIDs) == 1 && sq.sqPrfl.ThresholdIDs[0] == utils.META_NONE {
|
||||
continue
|
||||
}
|
||||
thIDs = sq.sqPrfl.ThresholdIDs
|
||||
}
|
||||
thEv := &ArgsProcessEvent{
|
||||
|
||||
Reference in New Issue
Block a user