Changes

Jump to navigation Jump to search
m
no edit summary
Line 1: Line 1:  
== Summary ==
 
== Summary ==
   −
Sugar usage statistics might be very useful from, e.g., educational point of view. Statistics might be anonymous or personalized (with taking special efforts to keep information secure and local only for particular deployment).
+
Sugar usage statistics might be very useful from, e.g., an educational or research point of view. Statistics might be anonymous or personalized (by taking special efforts to keep information secure and local for use only by a particular deployment).
 +
 
 +
== Counter types ==
 +
 
 +
[[#Statistics|Measured]] statistic values might be one of the following types:
 +
 
 +
* ''absolute''<br>value to use as-is, e.g., amount of free disk space;
 +
* ''uptime''<br>number of seconds since event start, e.g., how long window is active; if event is not active, value will be reset to zero;
 +
* ''gauge''<br>is for things like temperatures or number of people in a room, i.e., value can grow and fall in time;
 +
* ''counter''<br>a counter, number of times event was triggered during single time frame; value can be more or equal to zero.
    
== Statistics ==
 
== Statistics ==
   −
* How long a Sugar user was on the Internet.
+
All types of statistics are identified by IDs in a dot separated hierarchy. This makes it possible to refer to the particular type or level of data.
* How long a Sugar user was collaborating with other users:
+
 
** number of collaborators,
+
* '''''shell'''''<br>Shell related stats.
** durations of collaboration sessions.
+
** '''shell.uptime''' ''uptime''<br>How long Shell is running.
* System uptime:
+
** '''shell.active''' ''uptime''<br>How long Shell window is on top.
** total,
+
** '''shell.friends''' ''absolute''<br>Number of buddies in the Groups view.
** time in active use (not counting time in suspend).
+
* '''''journal'''''<br>Journal related activity.
 +
** '''journal.uptime''' ''uptime''<br>How long Journal is running.
 +
** '''journal.active''' ''uptime''<br>How long Journal window is on top.
 +
** '''journal.creates''' ''counter''<br>Number of create requests sent from the Journal window.
 +
** '''journal.updates''' ''counter''<br>Number of update requests sent from the Journal window.
 +
** '''journal.deletes''' ''counter''<br>Number of delete requests sent from the Journal window.
 +
* '''''activity'''''<br>Activities related stats; specified only for the particular activity.
 +
** '''activity.uptime''' ''uptime''<br>How long Activity is running.
 +
** '''activity.active''' ''uptime''<br>How long Activity window is on top.
 +
** '''activity.instances''' ''gauge''<br>How many instances launched.
 +
** '''activity.new''' ''counter''<br>How many running instances with new Journal entity.
 +
** '''activity.resumed''' ''counter''<br>How many running instances with resumed Journal entity.
 +
** '''activity.buddies''' ''gauge''<br>Number of buddies Activity is interacting with for all running instances.
 +
* '''''application'''''<br>Applications related stats in non-Sugar mode; specified only for the particular application.
 +
** '''application.uptime''' ''uptime''<br>How long application is running.
 +
** '''application.active''' ''uptime''<br>How long application window is on top.
 +
* '''''network'''''<br>Network related stats.
 +
** '''network.uptime''' ''uptime''<br>How long client is connected to the Internet.
 +
** '''network.school''' ''uptime''<br>How long client is connected to school network.
 +
* '''''system'''''<br>System related stats.
 +
** '''system.uptime''' ''uptime''<br>System uptime value.
 +
** '''system.diskfree''' ''absolute''<br>How many storage space is free, in kilobytes, for the home directory.
    
== Implementation ==
 
== Implementation ==
   −
* Client side code to collect statistics.
+
* [[Platform_Team/sugar-stats|sugar-stats]] library.
* Server side code to accept statistics from the clients.
+
* [[Platform_Team/Server_Kit/sugar-client|sugar-client]] starting from 1.2 version, Sugar client complex solution that uses [[Sugar_Server_Kit/sugar-stats|sugar-stats]] library.
* Analyzing tool.
+
 
 +
== See also ==
 +
 
 +
* Paraguayan Activity usage [http://wiki.paraguayeduca.org/index.php/Analisis_de_Uso_de_Actividades analysis] basing on Journal records.
 +
* Australian [https://sugardextrose.org/issues/59 request] for statistics gathering.
18

edits

Navigation menu