[PR #708] [MERGED] Webhooks support for $BODY placeholder #1011

Closed
opened 2026-02-26 00:30:34 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/healthchecks/healthchecks/pull/708
Author: @bdd
Created: 9/24/2022
Status: Merged
Merged: 9/26/2022
Merged by: @cuu508

Base: masterHead: body-in-webhooks


📝 Commits (1)

  • 2c3c47a Webhooks support for $BODY placeholder

📊 Changes

2 files changed (+66 additions, -12 deletions)

View changed files

📝 hc/api/tests/test_notify_webhook.py (+44 -1)
📝 hc/api/transports.py (+22 -11)

📄 Description

Adds support for sending ping body contents with webhooks.
Only allowed in the 'body' template of the webhook configuration.

Currently only e-mail transport supports including the ping body in the notification.

Implementing this for webhooks seemed like the right place for maximum flexibility.

Example uses:

  • Use Amazon API Gateway to receive and stash a copy of failure log on your own S3 account. (Inspired by discussion at https://github.com/bdd/runitor/issues/60)
  • Use IFTTT, Zapier, n8n, etc. to receive the full context of a check status change.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/healthchecks/healthchecks/pull/708 **Author:** [@bdd](https://github.com/bdd) **Created:** 9/24/2022 **Status:** ✅ Merged **Merged:** 9/26/2022 **Merged by:** [@cuu508](https://github.com/cuu508) **Base:** `master` ← **Head:** `body-in-webhooks` --- ### 📝 Commits (1) - [`2c3c47a`](https://github.com/healthchecks/healthchecks/commit/2c3c47ae3e5b5fbd8fe90fa5a82dc0c210ae5172) Webhooks support for $BODY placeholder ### 📊 Changes **2 files changed** (+66 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `hc/api/tests/test_notify_webhook.py` (+44 -1) 📝 `hc/api/transports.py` (+22 -11) </details> ### 📄 Description Adds support for sending ping body contents with webhooks. Only allowed in the 'body' template of the webhook configuration. Currently only e-mail transport supports including the ping body in the notification. Implementing this for webhooks seemed like the right place for maximum flexibility. Example uses: * Use Amazon API Gateway to receive and stash a copy of failure log on your own S3 account. (Inspired by discussion at https://github.com/bdd/runitor/issues/60) * Use IFTTT, Zapier, n8n, etc. to receive the full context of a check status change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 00:30:34 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/healthchecks#1011
No description provided.