garethgeorge / backrest

Backrest is a web UI and orchestrator for restic backup.
GNU General Public License v3.0
1.71k stars 49 forks source link

healthchecks.io hook should send a plain text message as its status #552

Open garethgeorge opened 1 week ago

garethgeorge commented 1 week ago

Discussed in https://github.com/garethgeorge/backrest/discussions/546

Originally posted by **nesalkiN** November 10, 2024 The request body for calls to healthchecks looks like this: ![Capture_Backrest_-_Immich_–_Healthchecks io_–_Brave_2024-11-10_16-53-48_86046533](https://github.com/user-attachments/assets/b43bcb4e-1bb1-41b8-bbb1-babcc0b3b224) This is quite hard to read. The warning via e-mail and notification services connected to healthchecks shows this info when it sends out warnings but you can't easily see in the notifications what's going on when in json. Can this be configured in the field for template? Please ELI5 if possible. ;) For other software/solutions it could look like this: (this is from duplicati): ![Capture_Duplicati_-_Appdata_OneDrive_–_Healthchecks io_–_B_2024-11-10_16-49-07_62998342](https://github.com/user-attachments/assets/d909e858-47d9-4af4-ae7c-e7d864d98dc7) (pics from healthchecks)
garethgeorge commented 1 week ago

Converting this to an issue -- I think the healthchecks.io integration is currently forwarding the "text" payload as a JSON field of an object which isn't necessary. It should just send the unmodified text over as text/plain