What I am trying to do is activate a watch rule to run in 5 minute intervals only from 6am to 10pm every single day.
Is this an appropriate trigger schedule to achieve this goal?
"trigger" : {
"schedule" : {
"daily" : {
"at" {
"hour" : [ 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 ],
"minute" : [0,5,10,15,20,25,30,35,40,45,50,55]
}
}
}
},
spinscale
(Alexander Reelsen)
September 8, 2017, 9:22am
2
yes this is. alternatively you could use a cron expression if you wanted, but this should work as well.
1 Like
joedissmeyer
(Joseph Dissmeyer)
September 12, 2017, 2:42pm
3
Thank you for confirming @spinscale ! This is definitely the correct solved answer.
I did have Nick Lang reach out to me on this one as well and he provided some cron expression examples for this same goal:
0 0/5 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 ? * * *
or
0 0/5 6-22 ? * * *
I'm going to stick with the long format for now but it is nice to know there are several scheduling options available depending on the needs.
system
(system)
Closed
October 10, 2017, 2:42pm
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.