metrics.sh/reporters/stathat.sh
2015-02-21 18:18:27 +01:00

7 lines
126 B
Bash

#!/bin/sh
report () {
METRIC=$1
VALUE=$2
curl -d "stat=$METRIC&ezkey=$API_KEY&value=$VALUE" http://api.stathat.com/ez
}