Alert Management - event_count should be implemented for generic Alerts
The Alert endpoint should set event_count when it receives identical alerts.
To reproduce
- Enable the generic alert endpoint (https://docs.gitlab.com/ee/user/project/integrations/generic_alerts.html)
- POST the following data to it:
{"title": "Simple Alert", "fingerprint":"12345"}
- for example:
curl --request POST --data '{"title": "Simple Alert", "fingerprint":"12345"}' --header "Authorization: Bearer <bearer>" --header "Content-Type: application/json" <url>
- POST the same alert again
- View the alert management list.
Expected Behaviour
- A single alert is added to the list.
- Event count for the alert should be 2.
Actual Behaviour
- Two alerts are added to the list.
- The event count for both alerts are 1.
More info:
Grouping of alerts is missing from the generic alert ingester. It's not clearly defined whether event count is supposed to be part of the Minimal feature set - I couldn't find an issue for it.
Edited by Tristan Read