metrics.sh/reporters/stathat.sh
2015-03-08 20:37:56 +01:00

12 lines
232 B
Bash

#!/bin/sh
report () {
METRIC=$1
VALUE=$2
curl -d "stat=$METRIC&ezkey=$STATHAT_API_KEY&value=$VALUE" http://api.stathat.com/ez
}
docs () {
echo "Send data to StatHat (https://www.stathat.com)."
echo "\$API_KEY=<ez_key>"
}