mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-14 20:59:53 +05:00
Adding AttributeSIDs to eventExporter config
This commit is contained in:
@@ -36,7 +36,8 @@ type EventExporterCfg struct {
|
||||
Timezone string
|
||||
Filters []string
|
||||
Flags utils.FlagsWithParams
|
||||
AttributeSCtx string // context to use when querying AttributeS
|
||||
AttributeSCtx string // context to use when querying AttributeS
|
||||
AttributeSIDs []string // selective AttributeS profiles
|
||||
Synchronous bool
|
||||
Attempts int
|
||||
FieldSep rune
|
||||
|
||||
@@ -97,10 +97,10 @@ func (eeS *EEService) V1ProcessEvent(cgrEv *utils.CGREvent) (err error) {
|
||||
err = nil // cancel ErrNotFound
|
||||
}
|
||||
*/
|
||||
eeS.eesMux.RLock()
|
||||
defer eeS.eesMux.RUnlock()
|
||||
for _, eeCfg := range eeS.cfg.EEsCfg().Exporters {
|
||||
eeS.eesMux.RLock()
|
||||
ee, has := eeS.ees[eeCfg.ID]
|
||||
eeS.eesMux.RUnlock()
|
||||
if !has {
|
||||
if ee, err = NewEventExporter(eeCfg); err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user