EEs processing AttributeS via flags

This commit is contained in:
DanB
2020-05-04 20:09:35 +02:00
parent 1652930f17
commit db098d4e3a
4 changed files with 5 additions and 5 deletions

View File

@@ -355,8 +355,8 @@ const CGRATES_CFG_JSON = `
"timezone": "", // timezone for timestamps where not specified <""|UTC|Local|$IANA_TZ_DB>
"filters": [], // limit parsing based on the filters
"flags": [], // flags to influence the event processing
"attribute_context": "", // context used to process request with AttributeS
"attribute_ids": [], // ids of attributes used to avoid searching
"attribute_ids": [], // select Attribute profiles instead of discovering them
"attribute_context": "", // context used to discover matching Attribute profiles
"synchronous": false, // block processing until export has a result
"attempts": 1, // export attempts
"field_separator": ",", // separator used in case of csv files

View File

@@ -103,8 +103,8 @@ type EventExporterCfg struct {
Timezone string
Filters []string
Flags utils.FlagsWithParams
AttributeSCtx string // context to use when querying AttributeS
AttributeSIDs []string // selective AttributeS profiles
AttributeSCtx string // context to use when querying AttributeS
Synchronous bool
Attempts int
FieldSep string

View File

@@ -211,8 +211,8 @@ type EventExporterJsonCfg struct {
Timezone *string
Filters *[]string
Flags *[]string
Attribute_context *string
Attribute_ids *[]string
Attribute_context *string
Synchronous *bool
Attempts *int
Field_separator *string

View File

@@ -84,7 +84,7 @@ func (eeS *EEService) V1ProcessEvent(cgrEv *utils.CGREventWithOpts) (err error)
for _, eeCfg := range eeS.cfg.EEsCfg().Exporters {
if eeCfg.AttributeSCtx != utils.META_NONE {
if eeCfg.Flags.GetBool(utils.MetaAttributes) {
var rplyEv engine.AttrSProcessEventReply
attrArgs := &engine.AttrArgsProcessEvent{
AttributeIDs: eeCfg.AttributeSIDs,