Thank you. I've now got it working using the following :
w.transition(:up, :unmonitored) do |on|
on.condition(:flapping) do |c|
c.notify = "barry"
c.to_state = [:start, :restart]
c.times = 5
c.within = 60.seconds
end
end
but I expected to be able to do this:
w.lifecycle do |on|
on.condition(:flapping) do |c|
c.to_state = [:start, :restart]
c.times = 5
c.within = 60.seconds
c.transition = :unmonitored
c.notify = "barry"
end
end
After looking through the code I can see why this doesn't send out the
notification, but is this intended behaviour?
Barry