From e85408744573bd195a47f10eba75d40e0647ccb7 Mon Sep 17 00:00:00 2001 From: DanB Date: Tue, 1 Aug 2017 13:51:49 +0200 Subject: [PATCH 1/2] Small fix --- engine/thresholds.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/thresholds.go b/engine/thresholds.go index c5f56adc8..70501c1e4 100644 --- a/engine/thresholds.go +++ b/engine/thresholds.go @@ -24,9 +24,9 @@ type ThresholdCfg struct { ActivationInterval *utils.ActivationInterval // Time when this limit becomes active and expires ThresholdType string ThresholdValue float64 // threshold value + MinItems int // number of items agregated for the threshold to match Recurrent bool MinSleep time.Duration - MinItems int // number of items agregated for the threshold to match Blocker bool // blocker flag to stop processing on filters matched Stored bool Weight float64 // Weight to sort the thresholds From b26d6ac52ef2935e9169fca13c7eee7c30e00c24 Mon Sep 17 00:00:00 2001 From: DanB Date: Tue, 1 Aug 2017 14:49:40 +0200 Subject: [PATCH 2/2] Adding missing imports for thresholds --- engine/thresholds.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/thresholds.go b/engine/thresholds.go index 70501c1e4..e3f9d7a0b 100644 --- a/engine/thresholds.go +++ b/engine/thresholds.go @@ -18,6 +18,12 @@ along with this program. If not, see package engine +import ( + "time" + + "github.com/cgrates/cgrates/utils" +) + type ThresholdCfg struct { ID string Filters []*RequestFilter // Filters for the request