Changes

Jump to navigation Jump to search
759 bytes added ,  10:08, 13 May 2014
Line 237: Line 237:  
=== Node statistics ===
 
=== Node statistics ===
   −
While working, Sugar Network servers collect depersonalized and common [[Sugar_Network/Node_Statistics|statistics]]. To read such info, call the command:
+
The node statistics are about the entire server and depersonalized. Statistics are being collected by analyzing regular requests to an API server and stored for each Sugar Network node. To read such info, call the command:
    
  '''GET''' /?cmd='''stats'''[&start=''SECONDS''][&end=''SECONDS''][&event=''EVENT''][&limit=''NUMBER'']
 
  '''GET''' /?cmd='''stats'''[&start=''SECONDS''][&end=''SECONDS''][&event=''EVENT''][&limit=''NUMBER'']
Line 246: Line 246:  
* {{Code|event}}, multiple argument to specify what [[Sugar_Network/Node_Statistics#Common_statistics|stats]] should be returned; if omitted, return all sources;
 
* {{Code|event}}, multiple argument to specify what [[Sugar_Network/Node_Statistics#Common_statistics|stats]] should be returned; if omitted, return all sources;
 
* {{Code|limit}}, number of stat records to return for the {{Code|start}}-{{Code|end}} interval; note that this amount is not precise, the final resultset might be smaller or bigger depending on chosen resolution; stats resolution depends on node configuration, default values are 1 day, 10 days, 30 days, 365 days; if omitted, return {{Code|end}} record only.
 
* {{Code|limit}}, number of stat records to return for the {{Code|start}}-{{Code|end}} interval; note that this amount is not precise, the final resultset might be smaller or bigger depending on chosen resolution; stats resolution depends on node configuration, default values are 1 day, 10 days, 30 days, 365 days; if omitted, return {{Code|end}} record only.
 +
 +
Possible events are:
 +
 +
* '''users''', total number of existing ''User'' objects;
 +
* '''contexts''', total number of existing ''Context'' objects;
 +
* '''released''', average number of newly uploaded ''Context.releases'' for specified time frame;
 +
* '''solved''', average number of requested ''Context'' [[#GET-solve|solutions]] for specified time frame; note that this value does not equal to the number of solution usages on client side since solutions might be cached;
 +
* '''reported''', average number of newly uploaded failure ''Report'' objects for specified time frame;
 +
* '''topics''', total number of top-level ''Post'' objects;
 +
* '''posts''', total number of dependent ''Post'' objects.
    
== Client API ==
 
== Client API ==

Navigation menu