LINE Notifications
Using the LINE Messaging API, you can send monitor incident notifications to LINE.
Prerequisites
Section titled “Prerequisites”1. Create a LINE Official Account
Section titled “1. Create a LINE Official Account”- Go to LINE Official Account Manager
- Create a LINE Official Account (free plan is sufficient)
2. Enable Messaging API
Section titled “2. Enable Messaging API”- Log in to LINE Developers with your personal LINE account
- Create a provider (if not already created)
- Enable Messaging API for your Official Account
- Issue a Channel Access Token (long-lived) in the “Messaging API settings” tab
3. Add the Bot as a Friend
Section titled “3. Add the Bot as a Friend”Users who want to receive notifications must add the Bot as a friend. The Bot’s QR code can be found in the “Messaging API settings” tab of the LINE Developers Console.
Obtaining the Destination ID
Section titled “Obtaining the Destination ID”| Destination | ID Format | How to Obtain |
|---|---|---|
| User | U + 32-digit hex | ”Your user ID” at the bottom of the “Basic settings” tab in LINE Developers Console |
| Group | C + 32-digit hex | source.groupId from webhook events |
| Room | R + 32-digit hex | source.roomId from webhook events |
Manako Configuration
Section titled “Manako Configuration”- Open the “Notification Channels” menu in the dashboard
- Click “Add Channel” and select LINE as the Type
- Enter the Channel Access Token and Destination ID
- Click “Add Channel”
After setup, LINE messages will be sent when a monitor detects an incident or recovers.
Notification Message Appearance
Section titled “Notification Message Appearance”LINE notifications are sent as Japanese text messages.
When an Incident Occurs
Section titled “When an Incident Occurs”[Manako] 🔴 {Monitor Name} がダウンしましたインシデント: {Incident ID}URL: {Monitored URL}When an Incident Recovers
Section titled “When an Incident Recovers”[Manako] 🟢 {Monitor Name} が復旧しましたインシデント: {Incident ID}When a Web Change is Detected
Section titled “When a Web Change is Detected”[Manako] 👀 {Monitor Name} で変更を検出しました{Change diff summary}