diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/rapport_activite/probe_api.sh b/rapport_activite/probe_api.sh new file mode 100755 index 0000000..b3e9660 --- /dev/null +++ b/rapport_activite/probe_api.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +json=$(curl http://localhost:8080/colibri/stats 2> /dev/null) + +function show +{ + local key="$1" + + local value=$(echo "$json" | jshon -e $key -u) + printf " $key=$value" +} + +printf "$(date +%FT%T)" +#show "current_timestamp" +#show "version" + +show "total_conferences_created" +show "total_failed_conferences" +show "total_conferences_completed" +show "largest_conference" +show "total_conference_seconds" +show "total_bytes_received" +show "total_bytes_sent" +show "total_participants" + +show "conferences" +show "participants" +show "videochannels" +show "endpoints_sending_audio" + +printf "\n"