added Executed param to SetAccountActionTriggers

This commit is contained in:
Radu Ioan Fericean
2016-05-03 16:29:08 +03:00
parent 2ee445abcf
commit b88af6b7e7

View File

@@ -182,6 +182,7 @@ type AttrSetAccountActionTriggers struct {
ThresholdType *string
ThresholdValue *float64
Recurrent *bool
Executed *bool
MinSleep *string
ExpirationDate *string
ActivationDate *string
@@ -227,6 +228,9 @@ func (self *ApierV1) SetAccountActionTriggers(attr AttrSetAccountActionTriggers,
if attr.Recurrent != nil {
at.Recurrent = *attr.Recurrent
}
if attr.Executed != nil {
at.Executed = *attr.Executed
}
if attr.MinSleep != nil {
minSleep, err := utils.ParseDurationWithSecs(*attr.MinSleep)
if err != nil {