mirror of
https://github.com/pstadler/metrics.sh.git
synced 2025-11-10 22:10:10 -05:00
basic script flow implemented
This commit is contained in:
7
reporters/stathat.sh
Normal file
7
reporters/stathat.sh
Normal 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
7
reporters/stdout.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
report () {
|
||||
METRIC=$1
|
||||
VALUE=$2
|
||||
echo $METRIC: $VALUE
|
||||
}
|
||||
Reference in New Issue
Block a user