Talk:XQuery/Uptime monitor

Triggers could be used to detect the outage, but need to prevent repeated Alerts.

One approach would add Alert elements to the log, interspersed with the Tests. This does not affect the code which accesses Tests, but allows us to inhibit Alerts when on has been recently:

Changing to the new composition retains the Watch entity which can then be updated independently of the Log. Just need a simple XForm to update an existing Watch, suspend a Watch, to create and delete a Watch