This commit is contained in:
AJ ONeal 2019-06-08 03:14:12 -06:00
джерело 8248c33607
коміт dc59f44322
1 змінених файлів з 24 додано та 24 видалено

@ -19,30 +19,30 @@ go run ./watchdog.go -c dog.json
```json
{
"watches": [
{
"name": "Example Site",
"url": "https://example.com/",
"webhooks": ["twilio"],
"keywords": "My Site",
"recover_script": "systemctl restart example-site"
}
],
"webhooks": [
{
"name": "twilio",
"url": "https://api.twilio.com/2010-04-01/Accounts/AC00000000000000000000000000000000/Messages.json",
"auth": {
"user": "AC00000000000000000000000000000000",
"pass": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"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/",
"webhooks": ["twilio"],
"keywords": "My Site",
"recover_script": "systemctl restart example-site"
}
],
"webhooks": [
{
"name": "twilio",
"url": "https://api.twilio.com/2010-04-01/Accounts/AC00000000000000000000000000000000/Messages.json",
"auth": {
"user": "AC00000000000000000000000000000000",
"pass": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"form": {
"To": "+1 801 555 1234",
"From": "+1 800 555 4321",
"Body": "[{{ .Name }}] The system is down. The system is down."
}
}
]
}
```