diff --git a/CHANGELOG.md b/CHANGELOG.md index c63dd1d0..1598f7c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. - Removing unused /api/v1/notifications/{uuid}/bounce endpoint - Less verbose output in the `senddeletionnotices` command - Host a read-only dashboard (from github.com/healthchecks/dashboard/) +- LINE Notify integration (#412) ## Bug Fixes - Handle excessively long email addresses in the signup form diff --git a/hc/api/models.py b/hc/api/models.py index 7b781936..55adfad5 100644 --- a/hc/api/models.py +++ b/hc/api/models.py @@ -51,7 +51,7 @@ CHANNEL_KINDS = ( ("zulip", "Zulip"), ("spike", "Spike"), ("call", "Phone Call"), - ("linenotify", "LineNotify"), + ("linenotify", "LINE Notify"), ) PO_PRIORITIES = {-2: "lowest", -1: "low", 0: "normal", 1: "high", 2: "emergency"} @@ -759,6 +759,7 @@ class Channel(models.Model): doc = json.loads(self.value) return doc["token"] + class Notification(models.Model): class Meta: get_latest_by = "created" diff --git a/static/img/integrations/linenotify.png b/static/img/integrations/linenotify.png index 9f0aa226..b6c23d35 100644 Binary files a/static/img/integrations/linenotify.png and b/static/img/integrations/linenotify.png differ diff --git a/templates/front/channels.html b/templates/front/channels.html index 7277bf2f..62a3bff1 100644 --- a/templates/front/channels.html +++ b/templates/front/channels.html @@ -227,6 +227,15 @@ {% endif %} +
Receive a notification on LINE when a check goes up or down.
+ Add Integration +Get a LineNotify message when a check goes up or down.
- Add Integration -LineNotify - allows you to send web notifications directly to your LINE chats. - If you use or plan on using LineNotify, - you can set up {% site_name %} to post status updates directly to an appropriate LineNotify channel. - Here are a few steps that can integrate it with your {% site_name %} account.
+LINE Notify + allows you to send notifications directly to your LINE chats. + You can set up {% site_name %} to post status updates directly to an + appropriate LINE chat.
- Log into your Line account, - go to My Pages in the upper right corner. - In the My Pages, scroll to the bottom of the page, + Log into your LINE account, + go to My Page in the upper right corner. + In the My Page, scroll to the bottom of the page, and click on Generate token button.