Alert page should automatically refresh
The Alerts page should auto refresh so that it can be kept open and automatically update as alerts fire and clear.
That would indeed be interesting. Prerequisite would be a new and stable API, which people are looking for anyway, that implements watches. The tricky bit is that we cannot simply emit new data on every alert we receive, as they are deduplicated and/or merged into the current set. So we need a definition of a user-relevant delta first.
The basic enhancement there would be to add a refresh-every-n-seconds timer, until the tricky bit gets resolved. 👍
I'm hoping to provide an event stream endpoint (#1304), where individuals can subscribe and receive events as seen by AM:
- silence creation/update
- alert received
- alert resolved
- alert silenced/inhibited/uninhibited
- notification sent
the front end could consume from this, but relying on this could lead to the UI showing out-of-sync data should the connection be dropped and then re-established.