Wednesday 29 March 2017

Introducing Time alerts for your tasks

I'm pleased to announce the addition of a timing function to IsItWorking.info checkins.

These allow you to send the time your task took, along with the boundary time that you consider acceptable.

If the task took too long, then IsItWorking will alert you.


     
#!/bin/sh
start=`date +%s`
/Users/rob/Documents/Development/Rails/IsItWorking/test/scripts/slow_script.sh
end=`date +%s`
runtime=$((end-start))

curl -d "t=$runtime&b=5" https://api.IsItWorking.info/c/CHECKIN_IDENTIFIER


In this example, if slow_script.sh takes more than 5 seconds, you'll get an alert.

You can read more in the api

Or see other examples