As Opie, I want to view alerts details and mark an alert as "cleared" after I took corrective actions
Visualizations:
An alert can be set to be "active" or "cleared"
Alert list displays only alerts whose status is "active"
To Clear an alert - select one or more alerts (by checking the checkbox in the first column of each row) and click the "Clear Alerts" button
If no heartbeat alerts remain active for an endpoint, the relevant indicators revers to green
It may be possible that an indicator is green but it has an active alert.
See case 2 below which covers the following flow of events:
Heartbeat failure causes the creation of an alert and the indicator is red
The endpoint recuperates after a few minutes and heartbeat messages are received
The previously created alert is still active - indicating there was a failure at some point in the past
The indicator is green - indicating that in the heartbeat messages are received in the the present
Notes:
This is a follow-up to #40, #41 and #42, but applies to all alert types
Demo / Acceptance tests:
Case 1:
Deploy the heartbeat plugin in 3 of the 5 Video Store sample endpoints (in all except the ContentManagement and Operations endpoints)
Run the Video Store sample
Kill the "Sales" endpoint
Indicator should turn red within 1 minute
Number below Heartbeat Indicator should be 2 in green and 1 in red
Click on heartbeat indicator
3 endpoint heartbeat indicators should be displayed, 2 green, 1 red
The name of each endpoint and the number seconds elapsed since last heartbeat messages was received noted next to each indicator
Click on the endpoint name "Sales"
The alerts list is displayed, filtered to show only the heartbeat alerts for the "Sales" endpoint
Select all the alerts for the "Sales" endpoint
Click the "Clear Alerts" button
The cleared alerts are removed from the alerts list
The endpoint heartbeat indicator for "Sales" endpoint is green (i.e. 3 green indicators) and so is the overall heartbeat indicator (#40)
Since we did not revive the "Sales" endpoint, the "Sales" heartbeat Indicator should turn red within 1 minute (and a new heartbeat alert should be created)
Case 2:
Deploy the heartbeat plugin in 3 of the 5 Video Store sample endpoints (in all except the ContentManagement and Operations endpoints)
Run the Video Store sample
Kill the "Sales" endpoint
Indicator should turn red within 1 minute
Number below Heartbeat Indicator should be 2 in green and 1 in red
Click on heartbeat indicator
3 endpoint heartbeat indicators should be displayed, 2 green, 1 red
The name of each endpoint and the number seconds elapsed since last heartbeat messages was received noted next to each indicator
Click on the endpoint name "Sales"
The alerts list is displayed, filtered to show only the heartbeat alerts for the "Sales" endpoint
An active heartbeat alerts exists for the "Sales" endpoint
Create a new instance of the "Sales" endpoint
"Sales" endpoint Indicator should turn green within 1 minute (since it starts receiving heartbeat messages from the endpoint)
Next to the "Sales" endpoint indicator there is a small exclamation mark indicating there is an active alert
Click on the endpoint name "Sales"
The alerts list is displayed, filtered to show only the heartbeat alerts for the "Sales" endpoint
The same active heartbeat alerts exists for the "Sales" endpoint (see step 9 above)
Select the alert and click the "Clear Alerts" button
The active alert is removed from the alerts list
In the "Sales" endpoint indicator the small exclamation mark is no longer visible (indicating there are no longer any active alert)
As Opie, I want to view alerts details and mark an alert as "cleared" after I took corrective actions
Visualizations:
Notes:
Demo / Acceptance tests:
Case 1:
Case 2: