-
-
Notifications
You must be signed in to change notification settings - Fork 352
heartbeat via curl
Christian Zangl edited this page Mar 11, 2021
·
1 revision
If you have a small server that does not have the resources to run python, you can implement a heartbeat with curl.
curl -X POST -H "Content-Type: application/json" \
-H "Authorization: Key YOUR_API_KEY" \
-d '{"origin":"NAME","timeout":300}' \
"https://YOUR_SERVER/api/heartbeat"
You can also put this into your crontab -e
, e.g. (every minute):
* * * * * curl -X POST -H "Content-Type: application/json" -H "Authorization: Key YOUR_API_KEY" -d '{"origin":"NAME","timeout":300}' "https://YOUR_SERVER/api/heartbeat"