basic script flow implemented

This commit is contained in:
Patrick Stadler
2015-02-21 18:18:27 +01:00
parent ae2ec619d3
commit 5d3a3fcdb1
8 changed files with 71 additions and 7 deletions

7
reporters/stathat.sh Normal file
View File

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

7
reporters/stdout.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
report () {
METRIC=$1
VALUE=$2
echo $METRIC: $VALUE
}