Skip to content

Instantly share code, notes, and snippets.

@trekdemo
Created December 4, 2015 10:18
Show Gist options
  • Save trekdemo/16b380cf9db61aaaf4a6 to your computer and use it in GitHub Desktop.
Save trekdemo/16b380cf9db61aaaf4a6 to your computer and use it in GitHub Desktop.
function cronitor {
if [ $# -ne 2 ]; then return; fi
if [ -z "$1" ]; then return; fi
if [ -z "$2" ]; then return; fi
echo "Sending signal to - https://cronitor.link/${2}/${1}"
curl "https://cronitor.link/${2}/${1}" -m 10
}
# Usage
# cornitor <ping-endpoing> <identifier>
# https://cronitor.io/help/understanding-ping-urls
cronitor "run" "xyz"
cronitor "complete" "xyz"
cronitor "fail" "xyz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment