mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[GH-ISSUE #201] Allow for optional additional data in integrated alerts #144
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#144
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @S1M0N on GitHub (Nov 14, 2018).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/201
Available integrations for alerts are wonderful, and I'm pleased to see Discord in there as well. However it would be nice to be able to add additional data in the payload for those alerts, such as being able to mention a specific user or group in Discord. This can be done by appending the UUID of the user to the
contentfield in the payload JSON. For example, my Discord UUID is236140136725741568(don't worry it's safe for me to post this here) and can be added to the webhook as a mention by entering in thecontentsection like this:<@236140136725741568>. Same for a Group, for example I have anAdmingroup on one of my Discord servers with a UUID of512373976358453248, so it can be mentioned by adding<@512373976358453248>to the content section, but will only mention on that server.This same principal works for emotes as well, as an example, my server has an emote of
:SOVModShield:when a user uses it, but a bot/webhook needs to use<:SOVModShield:482569662333452288>to post it as well, again only in the server that "owns" the emote.A simple option when adding the integration to included addition Content data, in a simple text box, would be reasonable for this addition. Also, being able to name each Discord (or other) integration uniquely would be beneficial.
Below is an example JSON payload for a webhook that would support this
contentsection:@cuu508 commented on GitHub (Oct 22, 2021):
You can use the
<@userid>syntax in check's "Description" field – see an example here: https://github.com/healthchecks/healthchecks/issues/578