HistoryPurge: Clearing 219 old commits
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# this script requires httpie and cfcli
|
||||
#
|
||||
cfcli zones -f json | jq -cr '.[] | .name,.id' | paste - - | awk '{print $1,$2}' | while read d k; do
|
||||
cfcli ls -d $d -f json | jq -cr '.[] | select(.type == "A") | .name' | while read s; do
|
||||
cat template.json | sed s/REPLACE_ME/$s/g | http https://api.cloudflare.com/client/v4/zones/$k/healthchecks \
|
||||
X-Auth-Email:ken.fong@rackspace.com \
|
||||
X-Auth-Key:xxx
|
||||
done
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "site-monitor",
|
||||
"description": "Health check",
|
||||
"check_regions": [
|
||||
"SEAS"
|
||||
],
|
||||
"type": "HTTPS",
|
||||
"consecutive_successes": 1,
|
||||
"consecutive_fails": 2,
|
||||
"http_config": {
|
||||
"method": "GET",
|
||||
"port": 443,
|
||||
"path": "/",
|
||||
"expected_codes": [
|
||||
"200"
|
||||
],
|
||||
"follow_redirects": true,
|
||||
"allow_insecure": false
|
||||
},
|
||||
"timeout": 5,
|
||||
"retries": 2,
|
||||
"interval": 60,
|
||||
"address": "REPLACE_ME"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user