I am use Grafana with a lot of Dashboards and Panels. Many panels have alerts. Accordingly, these alerts often change their state, for example, from OK to Altering or no_data.
I also have my application (ASP.NET Core) where I want to get the current state of alert for some panel, as well as alert history, using the Grafana HTTP API.
Using a request like:
GET api/alerts?PanelId=36
I only get the latest notification state. How do I get notification history for this panel? Such that I can see in the Grafana interface using Panel-> Edit-> Alert-> State History. Maybe i need to do something with the query or dashboardQuery parameters of the API GET request?
Thanks!