mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-12 02:26:26 +05:00
EEs processing AttributeS via flags
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user