mirror of
https://github.com/rajnandan1/kener.git
synced 2026-05-07 19:59:28 -05:00
fix: fixed docs
This commit is contained in:
@@ -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"
|
||||
@@ -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
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user