diff --git a/engine/thresholds.go b/engine/thresholds.go index c5f56adc8..e3f9d7a0b 100644 --- a/engine/thresholds.go +++ b/engine/thresholds.go @@ -18,15 +18,21 @@ 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 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