Skip to content

Commit bd2f058

Browse files
committed
Update
1 parent c8976d9 commit bd2f058

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.upptimerc.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ notifications:
99
webhook-url: $SLACK_WEBHOOK_URL
1010

1111
sites:
12-
- name: TEST - Intentional Failure (Remove After Testing)
13-
url: https://this-url-does-not-exist-12345678.com
14-
maxResponseTime: 5000
15-
1612
- name: Bridging - Near's 1Click - Get tokens
1713
url: https://1click.chaindefuser.com/v0/tokens
1814
icon: https://www.near.org/favicon.ico

service/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@ Assuming the [.upptimerc.yml](../.upptimerc.yml) is configured with a site whose
1212
-d '{"site":"TEST - Intentional Failure","status":"down"}'
1313
```
1414

15-
### How to add a new notification channel
15+
## How to add a new notification channel
1616
If there's a site whose status needs to be reported to a new channel.
1717

1818
1. Create a new Telegram channel for the notifications. Add anyone who needs to be notified to the channel.
1919
2. Add the Telegram Bot to that channel. Write anything in that channel (relevant for next step).
2020
3. Get the Telegram Chat ID of the channel by checking the result of this https://api.telegram.org/bot<TELEGRAM_BOT_TOKEN>/getUpdates. Make sure you add the telegram bot token to the URL.
2121
4. Create a new site. Make sure the name starts with the a given text (let's call this the `prefix`).
2222
5. Add the `prefix` to the `sitePrefixToTelegramId` record in the [notifyRouter.ts](api/notifyRouter.ts) file, and map it to the Telegram Chat ID you got in step 2.
23-
6. Deploy the changes to the Vercel app.
23+
6. Deploy the changes to the Vercel app.
24+
25+
NOTIFICATION_CUSTOM_WEBHOOK=true
26+
27+
NOTIFICATION_CUSTOM_WEBHOOK_URL=https://uptime-periphery.vercel.app/api/upptime?key=cow-upptime-xyz

0 commit comments

Comments
 (0)