We should be able to send out a "now in spec" alert as soon as a path transitions from out-of-spec and into-spec. This will likely mean that the Monitor object needs to keep some 'state' for each of the paths its monitoring that includes:
State of last-alert-sent
Time of last-alert-sent
The simple thing to do is have the Monitor object hold this state... but a more advanced model would be to store this data in the cluster.State() object and ultimately store it in Zookeeper.
We should be able to send out a "now in spec" alert as soon as a path transitions from out-of-spec and into-spec. This will likely mean that the Monitor object needs to keep some 'state' for each of the paths its monitoring that includes:
The simple thing to do is have the Monitor object hold this state... but a more advanced model would be to store this data in the cluster.State() object and ultimately store it in Zookeeper.