diff --git a/engine/thresholds.go b/engine/thresholds.go index 8b88c712b..817500519 100644 --- a/engine/thresholds.go +++ b/engine/thresholds.go @@ -250,7 +250,7 @@ func (tS *ThresholdService) StoreThreshold(t *Threshold) (err error) { // matchingThresholdsForEvent returns ordered list of matching thresholds which are active for an Event func (tS *ThresholdService) matchingThresholdsForEvent(ev *ThresholdEvent) (ts Thresholds, err error) { matchingTs := make(map[string]*Threshold) - tIDs, err := matchingItemIDsForEvent(ev.Event, tS.dm, utils.ThresholdsIndex+ev.Tenant) + tIDs, err := matchingItemIDsForEvent(ev.Event, tS.dm, utils.ThresholdStringIndex+ev.Tenant) if err != nil { return nil, err } diff --git a/utils/consts.go b/utils/consts.go index 214959d67..0e3520b2e 100755 --- a/utils/consts.go +++ b/utils/consts.go @@ -249,7 +249,7 @@ const ( ResourceProfilesPrefix = "rsp_" StatQueuesStringIndex = "ssi_" ThresholdPrefix = "thd_" - ThresholdsIndex = "thi_" + ThresholdStringIndex = "tsi_" TimingsPrefix = "tmg_" FilterPrefix = "ftr_" FilterIndex = "fti_"