Sugar Network/API: Difference between revisions

Line 92: Line 92:
  '''GET''' /user/''GUID''?cmd='''stats-info'''
  '''GET''' /user/''GUID''?cmd='''stats-info'''


Returns a dictionary with RRD configuration settings for local stats collecting process that user side should use to avoid problem while uploading stats to the server.
Returns a dictionary with RRD configuration settings for local stats collecting process that user side should use to avoid problems while uploading stats to the server.


  '''POST''' /user/''GUID''?cmd='''stats-upload'''
  '''POST''' /user/''GUID''?cmd='''stats-upload'''
Line 99: Line 99:


* {{Code|name}} name of RRD database to upload stats to;
* {{Code|name}} name of RRD database to upload stats to;
* {{Code|values}} and array of {{Code|timestamp, row}} tuples when {{Code|row}} is a dictionary of database field names and values.
* {{Code|values}} an array of {{Code|timestamp, row}} tuples when {{Code|row}} is a dictionary of database field names and values.


=== Notifications ===
=== Notifications ===