Avoid sending default fields in request body of alert notification webhook

Currently, when the webhook gets fired from grafana, it sends following as the request body. However, I wanted to know if it is possible to avoid sending fields like dashboardId, evalMatches, etc. Basically, I just want to send the tags field from below. Is it possible? If yes, where can I read about the details of removing other fields? I saw docs/stackoverflow, didn’t find any. Thanks in advance.

{
  "dashboardId":1,
  "evalMatches":[
    {
      "value":1,
      "metric":"Count",
      "tags":{}
    }
  ],
  "imageUrl":"https://grafana.com/assets/img/blog/mixed_styles.png",
  "message":"Notification Message",
  "orgId":1,
  "panelId":2,
  "ruleId":1,
  "ruleName":"Panel Title alert",
  "ruleUrl":"http://grafana.staged-by-discourse.com/d/hZ7BuVbWz/test-dashboard?fullscreen\u0026edit\u0026tab=alert\u0026panelId=2\u0026orgId=1",
  "state":"alerting",
  "tags":{
    "tag name":"tag value"
  },
  "title":"[Alerting] Panel Title alert"
}

This topic was automatically closed after 365 days. New replies are no longer allowed.