human readable action and action trigger id

This commit is contained in:
Radu Ioan Fericean
2015-02-05 23:01:24 +02:00
parent 39a85a76de
commit 4ff96becee
8 changed files with 74 additions and 44 deletions

View File

@@ -608,10 +608,10 @@ func (self *SQLStorage) SetTPActionTriggers(tpid string, ats map[string][]*utils
tx.Rollback()
return err
}
for _, at := range aTriggers {
for idx, at := range aTriggers {
saved := tx.Save(TpActionTrigger{
Tpid: tpid,
Tag: atId,
Tag: atId + strconv.Itoa(idx),
ThresholdType: at.ThresholdType,
ThresholdValue: at.ThresholdValue,
Recurrent: at.Recurrent,