Rename event type ProcessTime to EventPerformanceReport

This commit is contained in:
ionutboangiu
2025-10-06 10:39:58 +03:00
committed by Dan Christian Bogos
parent 2b63ee67bb
commit 8ce296cdaf
5 changed files with 16 additions and 14 deletions

View File

@@ -270,7 +270,7 @@ func processRequest(ctx *context.Context, reqProcessor *config.RequestProcessor,
utils.RequestProcessorID: reqProcessor.ID,
},
APIOpts: map[string]any{
utils.MetaEventType: utils.ProcessTime,
utils.MetaEventType: utils.EventPerformanceReport,
},
}

View File

@@ -539,7 +539,7 @@ func (ra *RadiusAgent) processRequest(req *radigo.Packet, reqProcessor *config.R
utils.RequestProcessorID: reqProcessor.ID,
},
APIOpts: map[string]any{
utils.MetaEventType: utils.ProcessTime,
utils.MetaEventType: utils.EventPerformanceReport,
},
}

View File

@@ -506,7 +506,7 @@ func (sa *SIPAgent) processRequest(reqProcessor *config.RequestProcessor,
utils.RequestProcessorID: reqProcessor.ID,
},
APIOpts: map[string]any{
utils.MetaEventType: utils.ProcessTime,
utils.MetaEventType: utils.EventPerformanceReport,
},
}

View File

@@ -263,7 +263,7 @@ func (erS *ERService) processEvent(cgrEv *utils.CGREvent,
utils.EventReaderID: rdrCfg.ID,
},
APIOpts: map[string]any{
utils.MetaEventType: utils.ProcessTime,
utils.MetaEventType: utils.EventPerformanceReport,
},
}

View File

@@ -566,13 +566,6 @@ const (
BalanceDisabled = "BalanceDisabled"
BalanceFactorID = "BalanceFactorID"
Units = "Units"
AccountUpdate = "AccountUpdate"
StatUpdate = "StatUpdate"
TrendUpdate = "TrendUpdate"
RankingUpdate = "RankingUpdate"
ResourceUpdate = "ResourceUpdate"
ProcessTime = "ProcessTime"
CDR = "CDR"
CDRs = "CDRs"
ExpiryTime = "ExpiryTime"
AllowNegative = "AllowNegative"
@@ -623,6 +616,18 @@ const (
ProcessingTime = "ProcessingTime"
ReplyState = "ReplyState"
// Event types
EventType = "EventType"
MetaEventType = "*eventType"
CDR = "CDR"
ThresholdHit = "ThresholdHit"
AccountUpdate = "AccountUpdate"
RankingUpdate = "RankingUpdate"
ResourceUpdate = "ResourceUpdate"
StatUpdate = "StatUpdate"
TrendUpdate = "TrendUpdate"
EventPerformanceReport = "PerformanceReport"
// ReplyState error constants
ErrReplyStateAuthorize = "ERR_AUTHORIZE"
ErrReplyStateInitiate = "ERR_INITIATE"
@@ -2956,7 +2961,6 @@ const (
OptsStatsProfileIDs = "*stsProfileIDs"
OptsStatsProfileIgnoreFilters = "*stsProfileIgnoreFilters"
// Thresholds
ThresholdHit = "ThresholdHit"
Hits = "Hits"
Snooze = "Snooze"
ThresholdConfig = "Config"
@@ -2978,9 +2982,7 @@ const (
OptsAttributesProcessRuns = "*attrProcessRuns"
OptsAttributesProfileRuns = "*attrProfileRuns"
OptsAttributesProfileIgnoreFilters = "*attrProfileIgnoreFilters"
MetaEventType = "*eventType"
MetaEventTime = "*eventTime"
EventType = "EventType"
SchedulerInit = "SchedulerInit"
RemoteHostOpt = "*rmtHost"