fix: fixed docs

This commit is contained in:
Raj Nandan Sharma
2024-12-04 18:30:50 +05:30
parent d931f3ec6d
commit fe953b6b36
4 changed files with 30 additions and 5 deletions
+21
View File
@@ -25,3 +25,24 @@
description: "Write a description here please"
triggers:
- MyWebhook
- Discord Test
- name: CNAME Lookup
description: Monitor example showing how to lookup CNAME record for a domain. The site www.rajnandan.com is hosted on GitHub Pages.
tag: "cname-rajnandan"
image: "https://www.rajnandan.com/assets/images/me.jpg"
defaultStatus: "UP"
dns:
host: "www.rajnandan.com"
lookupRecord: "CNAME"
nameServer: "8.8.8.8"
matchType: "ANY" # ANY, ALL
values:
- "rajnandan1.github.io"
- name: "Frogment APP Ping"
description: "Ping www.frogment.app"
image: https://www.frogment.app/icons/Square107x107Logo.png
tag: "pingFrogmentApp"
defaultStatus: "UP"
ping:
hostsV4:
- "www.frogment.app"
+5 -2
View File
@@ -1,10 +1,13 @@
triggers:
- name: MyWebhook
type: webhook
url: https://teeny-gold-88.webhook.cool
url: https://kener.requestcatcher.com/test
method: POST
headers:
Authorization: Bearer $API_TOKEN
Authorization: Bearer SomeToken
- name: Discord Test
type: discord
url: https://discord.com/api/webhooks/1310641119767302164/XJvq4MO2lz5yp9XRCJgfc4dbUfcQdHsttFUKTFJx4y_Oo1jNkUXf-CS3RSnamnNNv4Lx
database:
sqlite:
dbName: kener.db
+2 -1
View File
@@ -26,8 +26,9 @@ let requiredFilesExist = allFilesExist();
//create anonymous function to call the init function
(async function init() {
while (!requiredFilesExist && waitTime < maxWait) {
requiredFilesExist = allFilesExist();
await delay(1000);
requiredFilesExist = allFilesExist();
waitTime += interval;
}
if (!requiredFilesExist) {
+2 -2
View File
@@ -27,7 +27,7 @@ In the `server.yaml` file, you can add the alerting mechanisms under the `trigge
triggers:
- name: Awesome Webhook
type: "webhook"
url: "https://webhook.site/e0b7f471-adae-4153-b81b-4f977f65ad4a"
url: "https://kener.requestcatcher.com/test"
method: "POST"
headers:
Authorization: Bearer $SOME_TOKEN_FROM_ENV
@@ -52,7 +52,7 @@ In webhook alerting, you can also add headers and method to the request.
```yaml
- name: Awesome Webhook
type: "webhook"
url: "https://webhook.site/e0b7f471-adae-4153-b81b-4f977f65ad4a"
url: "https://kener.requestcatcher.com/test"
method: "POST"
headers:
Authorization: Bearer $SOME_TOKEN_FROM_ENV