Say you have a notification apply rule defined with interval set to 1h. I would like to change the re-notification interval based on current time being within defined timeperiod. Something like this
if current_time is within 9to5 timeperiod; then
interval = 1h
else
interval = 0
fi
I tried to use two separate notification apply rules but it tat approach has it problems. Is this doable using single notification apply statement and some kind of condition?
It would need {{ and }} for returning a lambda so it is executed on every access of the interval.
And 0 works because durations are only a special form of number so without a unit it is in second, so it would result in interval 1s which is perhaps to much spam!
But except from this, this was what I had in mind.