Hi Grafana Team - how do I get the alert id in the webhook payload in V8 alerts? Since the webhook is sending multiple alerts, I’m not sure how I can apply deduplication(firing vs resolved) to these alerts. Here is what I’m receiving:
"receiver": "MyWebhook",
"status": "resolved",
"alerts": [
{
"status": "resolved",
"labels": {
"alert": "fire",
"alertname": "Main DB Memory "
},
"annotations": {},
"startsAt": "2021-07-26T22:26:02.18682019Z",
"endsAt": "2021-07-26T22:28:02.18682019Z",
"generatorURL": "",
"fingerprint": "0353ae2ad87a8775",
"silenceURL": "[http://localhost:3000/alerting/silence/new?alertmanager=grafana&matchers=alert%3Dfire%2Calertname%3DMain+DB+Memory+](http://localhost:3000/alerting/silence/new?alertmanager=grafana&matchers=alert%3Dfire%2Calertname%3DMain+DB+Memory+)",
"dashboardURL": "[http://localhost:3000/d/SxpMj-Wnk](http://localhost:3000/d/SxpMj-Wnk)",
"panelURL": "[http://localhost:3000/d/SxpMj-Wnk?viewPanel=2](http://localhost:3000/d/SxpMj-Wnk?viewPanel=2)"
}
],
"groupLabels": {},
"commonLabels": {
"alert": "fire",
"alertname": "Main DB Memory "
},
"commonAnnotations": {},
"externalURL": "[http://localhost:3000/](http://localhost:3000/)",
"version": "1",
"groupKey": "{}/{alert=\"fire\"}:{}",
"truncatedAlerts": 0,
"title": "[RESOLVED] (Main DB Memory fire)",
"state": "ok",
"message": "**Resolved**\n\nLabels:\n - alertname = Main DB Memory \n - alert = fire\nAnnotations:\nSilence: [http://localhost:3000/alerting/silence/new?alertmanager=grafana&matchers=alert%3Dfire%2Calertname%3DMain+DB+Memory+](http://localhost:3000/alerting/silence/new?alertmanager=grafana&matchers=alert%3Dfire%2Calertname%3DMain+DB+Memory+)\nDashboard: [http://localhost:3000/d/SxpMj-Wnk](http://localhost:3000/d/SxpMj-Wnk)\nPanel: [http://localhost:3000/d/SxpMj-Wnk?viewPanel=2](http://localhost:3000/d/SxpMj-Wnk?viewPanel=2)\n"
}```