added event name for published action logs

This commit is contained in:
Radu Ioan Fericean
2016-07-18 22:01:29 +03:00
parent 5c59792c16
commit 5222899ff5
3 changed files with 4 additions and 0 deletions

View File

@@ -361,6 +361,7 @@ func (at *ActionTiming) Execute() (err error) {
return err
}
Publish(CgrEvent{
"EventName": utils.EVT_ACTION_TIMING_FIRED,
"Uuid": at.Uuid,
"Id": at.actionPlanID,
"ActionIds": at.ActionsID,

View File

@@ -108,6 +108,7 @@ func (at *ActionTrigger) Execute(ub *Account, sq *StatsQueueTriggered) (err erro
}
if !transactionFailed && ub != nil && !removeAccountActionFound {
Publish(CgrEvent{
"EventName": utils.EVT_ACTION_TRIGGER_FIRED,
"Uuid": at.UniqueID,
"Id": at.ID,
"ActionIds": at.ActionsID,

View File

@@ -1060,6 +1060,7 @@ func TestActionTriggerLogging(t *testing.T) {
t.Error("Error getting actions for the action timing: ", as, err)
}
Publish(CgrEvent{
"EventName": utils.EVT_ACTION_TRIGGER_FIRED,
"Uuid": at.UniqueID,
"Id": at.ID,
"ActionIds": at.ActionsID,
@@ -1105,6 +1106,7 @@ func TestActionPlanLogging(t *testing.T) {
t.Error("Error getting actions for the action trigger: ", err)
}
Publish(CgrEvent{
"EventName": utils.EVT_ACTION_TIMING_FIRED,
"Uuid": at.Uuid,
"Id": at.actionPlanID,
"ActionIds": at.ActionsID,