oncall-engine/engine/apps/webhooks/tasks
Matias Bordese e93858e136
Add manual trigger support for webhooks (#4934)
Related to https://github.com/grafana/oncall/issues/4748

- Added support for additional filters when getting webhooks:
- `GET
/api/plugins/grafana-oncall-app/resources/webhooks/?integration=CALBFV7RRDH93`
  (filter webhooks that are enabled for the specified integration)
- `GET
/api/plugins/grafana-oncall-app/resources/webhooks/?trigger_type=0`
  (filter webhooks with the given trigger type)
- Allow triggering a Manual webhook using an alert group as context:
`POST /api/plugins/grafana-oncall-app/resources/webhooks/<webhook public
ID>/trigger_manual`
Example payload: `{"alert_group": "I4A4I1UPSA7IC"}`
(will return a 200 OK on success)

---------

Co-authored-by: Rares Mardare <rares.mardare@grafana.com>
2024-09-09 12:17:23 +00:00
..
__init__.py Webhooks trigger tasks on alert group events (#1533) 2023-03-13 21:19:22 +00:00
alert_group_status.py Check for backsync updates before triggering connected webhooks (#4149) 2024-04-08 14:25:48 +00:00
trigger_webhook.py Add manual trigger support for webhooks (#4934) 2024-09-09 12:17:23 +00:00