Step in dev of activity report.
This commit is contained in:
parent
8fec56ded8
commit
5b825d6958
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*~
|
31
rapport_activite/probe_api.sh
Executable file
31
rapport_activite/probe_api.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user