mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 23:28:44 +05:00
renamed into Filters + uniqueAlteredFields
This commit is contained in:
committed by
Dan Christian Bogos
parent
93a5e66774
commit
75fc37db2c
@@ -114,6 +114,18 @@ func (alS *AttributeS) attributeProfileForEvent(ctx *context.Context, tnt string
|
||||
return apWw.AttributeProfile, nil
|
||||
}
|
||||
|
||||
type FieldsAltered struct {
|
||||
MatchedProfileID string
|
||||
AlteredFields []string
|
||||
}
|
||||
|
||||
func (flds *FieldsAltered) UniqueAlteredFields() (unFlds utils.StringSet) {
|
||||
for _, fldName := range flds.AlteredFields {
|
||||
unFlds.Add(fldName)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// AttrSProcessEventReply reply used for proccess event
|
||||
type AttrSProcessEventReply struct {
|
||||
Fields []*FieldsAltered
|
||||
@@ -140,11 +152,6 @@ func (attrReply *AttrSProcessEventReply) Digest() (rplyDigest string) {
|
||||
return
|
||||
}
|
||||
|
||||
type FieldsAltered struct {
|
||||
MatchedProfileID string
|
||||
AlteredFields []string
|
||||
}
|
||||
|
||||
// processEvent will match event with attribute profile and do the necessary replacements
|
||||
func (alS *AttributeS) processEvent(ctx *context.Context, tnt string, args *utils.CGREvent, evNm utils.MapStorage, dynDP utils.DataProvider,
|
||||
lastID string, processedPrfNo map[string]int, profileRuns int) (rply *AttrSProcessEventReply, err error) {
|
||||
|
||||
Reference in New Issue
Block a user