Difference between revisions of "Platform Team/Usage Statistics"
Line 13: | Line 13: | ||
*** {{Code|shell.collab.buddies}}<br>Number of buddies in the Neighborhood view. | *** {{Code|shell.collab.buddies}}<br>Number of buddies in the Neighborhood view. | ||
* {{Code|activity}}<br>Activities related stats; specified only for the particular activity. | * {{Code|activity}}<br>Activities related stats; specified only for the particular activity. | ||
− | ** {{Code|activity. | + | ** {{Code|activity.session}}<br>Running Activities related stats. |
− | ** {{Code|activity.active}}<br>Activity window | + | *** {{Code|activity.session.total}}<br>How many instances active right now. |
+ | *** {{Code|activity.session.new}}<br>How many active instances with new Journal entity. | ||
+ | *** {{Code|activity.session.resumed}}<br>How many active instances with resumed Journal entity. | ||
+ | *** {{Code|activity.session.active}}<br>Is Activity window active. | ||
+ | ** {{Code|activity.journal}}<br>Journal related Activity's activities. | ||
+ | *** {{Code|activity.journal.total}}<br>Total number of Journal entries for the Activity. | ||
+ | *** {{Code|activity.journal.shared}}<br>Total number of Journal entries shared with buddies. | ||
** {{Code|activity.collab}}<br>Collaboration related stats for activities. | ** {{Code|activity.collab}}<br>Collaboration related stats for activities. | ||
*** {{Code|activity.collab.buddies}}<br>Number of buddies activity is interacting with. | *** {{Code|activity.collab.buddies}}<br>Number of buddies activity is interacting with. |
Revision as of 13:58, 10 January 2012
Summary
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).
Statistics
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.
shell
Shell related stats.shell.run
Shell process is run.shell.active
Shell or activity window is active.shell.collab
Collaboration related stats in Shell.shell.collab.buddies
Number of buddies in the Neighborhood view.
activity
Activities related stats; specified only for the particular activity.activity.session
Running Activities related stats.activity.session.total
How many instances active right now.activity.session.new
How many active instances with new Journal entity.activity.session.resumed
How many active instances with resumed Journal entity.activity.session.active
Is Activity window active.
activity.journal
Journal related Activity's activities.activity.journal.total
Total number of Journal entries for the Activity.activity.journal.shared
Total number of Journal entries shared with buddies.
activity.collab
Collaboration related stats for activities.activity.collab.buddies
Number of buddies activity is interacting with.
system
System related stats.system.uptime
System uptime value.
Implementation
Monitor
The usage statistics will be gathered by sniffing DBus and X11 messages in the sugar-client program launched with the monitor
command. The sugar-client
will stay in daemon mode, and send collected and filtered data to the sugar-server, or, will keep it for later collection in server-less environments.
Journal crawler
In addition to the realtime monitoring, it might be useful to collect some stats from the Journal. It should be possible to run this code on a client side, or, on school servers using Journal backups.
This feature was implemented in Paraguay, but is not being used right now.