From c91afbff8f73502118f00bfe95de2536bb2ebc60 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 9 Jun 2019 02:12:05 -0600 Subject: [PATCH] add linkback --- README.md | 94 +++++++++++++++++++++++++++---------------------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index 6b072b8..87e7143 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Watchdog +# [Watchdog](https://git.rootprojects.org/root/watchdog.go) > Get notified when sites go down. @@ -179,52 +179,52 @@ The examples below are shown with Twilio and Mailgun, as taken from their `curl` ```json { - "watches": [ - { - "name": "Example Site", - "url": "https://example.com/", - "keywords": "My Site", - "webhooks": ["my_mailgun", "my_twilio"], - "recover_script": "systemctl restart example-site" - } - ], - "webhooks": [ - { - "name": "my_mailgun", - "method": "POST", - "url": "https://api.mailgun.net/v3/my.example.com/messages", - "auth": { - "username": "api", - "password": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" - }, - "headers": { - "User-Agent": "Watchdog/1.0", - }, - "form": { - "from": "Watchdog ", - "to": "jon.doe@gmail.com", - "subject": "{{ .Name }} is down.", - "text": "The system is down. Check up on {{ .Name }} ASAP." - } - }, - { - "name": "my_twilio", - "method": "POST", - "url": "https://api.twilio.com/2010-04-01/Accounts/AC00000000000000000000000000000000/Messages.json", - "auth": { - "username": "AC00000000000000000000000000000000", - "password": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" - }, - "headers": { - "User-Agent": "Watchdog/1.0", - }, - "form": { - "To": "+1 801 555 1234", - "From": "+1 800 555 4321", - "Body": "[{{ .Name }}] The system is down. The system is down." - } - } - ] + "watches": [ + { + "name": "Example Site", + "url": "https://example.com/", + "keywords": "My Site", + "webhooks": ["my_mailgun", "my_twilio"], + "recover_script": "systemctl restart example-site" + } + ], + "webhooks": [ + { + "name": "my_mailgun", + "method": "POST", + "url": "https://api.mailgun.net/v3/my.example.com/messages", + "auth": { + "username": "api", + "password": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + }, + "headers": { + "User-Agent": "Watchdog/1.0" + }, + "form": { + "from": "Watchdog ", + "to": "jon.doe@gmail.com", + "subject": "{{ .Name }} is down.", + "text": "The system is down. Check up on {{ .Name }} ASAP." + } + }, + { + "name": "my_twilio", + "method": "POST", + "url": "https://api.twilio.com/2010-04-01/Accounts/AC00000000000000000000000000000000/Messages.json", + "auth": { + "username": "AC00000000000000000000000000000000", + "password": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" + }, + "headers": { + "User-Agent": "Watchdog/1.0" + }, + "form": { + "To": "+1 801 555 1234", + "From": "+1 800 555 4321", + "Body": "[{{ .Name }}] The system is down. The system is down." + } + } + ] } ```