mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
send agent events to stats/thresholds w/ ProcessTime
applies only to template-based agents
This commit is contained in:
committed by
Dan Christian Bogos
parent
9b706f57ac
commit
671c7474b8
@@ -71,8 +71,9 @@ func (ha *HTTPAgent) Start() (err error) {
|
||||
utils.Logger.Info(fmt.Sprintf("<%s> successfully started HTTPAgent", utils.HTTPAgent))
|
||||
for _, agntCfg := range ha.cfg.HTTPAgentCfg() {
|
||||
ha.server.RegisterHttpHandler(agntCfg.URL,
|
||||
agents.NewHTTPAgent(ha.connMgr, agntCfg.SessionSConns, filterS,
|
||||
ha.cfg.GeneralCfg().DefaultTenant, agntCfg.RequestPayload,
|
||||
agents.NewHTTPAgent(ha.connMgr,
|
||||
agntCfg.SessionSConns, agntCfg.StatSConns, agntCfg.ThresholdSConns,
|
||||
filterS, ha.cfg.GeneralCfg().DefaultTenant, agntCfg.RequestPayload,
|
||||
agntCfg.ReplyPayload, agntCfg.RequestProcessors))
|
||||
}
|
||||
ha.Unlock()
|
||||
|
||||
Reference in New Issue
Block a user