mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 06:55:53 +03:00
[GH-ISSUE #674] Twist #484
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#484
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 @frank-embleton on GitHub (Jul 11, 2022).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/674
We use Twist for in-company communication, it would be great if there was an integration.
As a workaround we can email to a thread, but it tends to attach the message instead of displaying it inline.
If there are some examples/guides on building an integration I can probably take a look at it too.
@cuu508 commented on GitHub (Aug 23, 2022):
Hi Frank,
You can pick an existing integration as a starting point for the new integration.
Looking at Twist documentation, looks like it supports OAuth2 flow to get access tokens, and has an Add Thread API call for creating threads.
A similar existing integration is Pushbullet, you could pick it and replicate everything what it's doing. From the top of my head, the pieces that each integration needs, are:
/hc/api/transports.py/templates/integrations//hc/api/tests/test_notify_<kind>.pyCHANNEL_KINDSin/hc/api/models.pyChannel.transport()in/hc/api/models.py/hc/front/views.py/templates/front/add_<kind>.py, and any supporting illustrations in/static/img/integrations//hc/front/urls.py/hc/font/tests/test_add_<kind>.py/templates/front/channels.html(add a new section in the list of available integrations, make sure an existing integration is displayed nicely)/templates/front/event_summaryto make sure notifications sent to the new integration are displayed nicely/static/img/integrations/CHANGELOG.md