Step in dev of activity report.

This commit is contained in:
Christian P. MOMON 2020-11-26 15:40:14 +01:00 committed by root
parent 8fec56ded8
commit 5b825d6958
2 changed files with 32 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*~

31
rapport_activite/probe_api.sh Executable file
View File

@ -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"