Hi
I got the request to automatically close a trigger after a specific amount of time.
Setup:
Item (String) that gets host name and an ID of an instance
Trigger fires when the item value changes
So far so good, but now comes the complicated part (for me):
Either close the trigger manually (easy)
OR
Close if the value didn't change again for the last 5minutes
my idea was to define the following recovery expression
PS.: I know that if the values would flap the trigger might flap, but that's not part of the question of me atm. and could be bypassed by comparing all of the last n values against the last one.
I got the request to automatically close a trigger after a specific amount of time.
Setup:
Item (String) that gets host name and an ID of an instance
Trigger fires when the item value changes
{item.diff()}=1
So far so good, but now comes the complicated part (for me):
Either close the trigger manually (easy)
OR
Close if the value didn't change again for the last 5minutes
my idea was to define the following recovery expression
{item.last(#5)}={item.last()}
But that doesn't seem to work, and I have no idea whyPS.: I know that if the values would flap the trigger might flap, but that's not part of the question of me atm. and could be bypassed by comparing all of the last n values against the last one.