Provisional data model to store statistics added git-svn-id: http://soc.googlecode.com/svn/wiki@3231 5fae56a1-394a-0410-ba46-5107137fd53f
diff --git a/StatisticsModule.wiki b/StatisticsModule.wiki index a39363c..df6897f 100644 --- a/StatisticsModule.wiki +++ b/StatisticsModule.wiki
@@ -85,6 +85,37 @@ }}} +==== Statistics provisional data model ==== +{{{ +from google.appengine.ext import db + +import soc.models.linkable + +class StatisticJSON(soc.models.linkable.Linkable): + """Model used to store a JSON representation of statistics + """ + + #: Internal String ID to get the correct statistics + stat_id = db.StringProperty(required=True) + + #: Name of the Statistic + stat_name = db.StringProperty() + + #: Long description of the Statistics + stat_description = db.TextProperty() + + #: Partial JSON representation, to be filled during the gathering of data + working_json_string = db.TextProperty() + + #: percentual of completeness during gathering of data + percentual_complete = db.IntegerProperty() + + #: Final JSON representation, to be filled when data gathering is completed + final_json_string = db.TextProperty() + + #: date when this calculation was last updated + calculated_on = db.DateTimeProperty(auto_now=True) +}}} === Later Goals for Job Control === * _...insert text here_ @@ -117,7 +148,7 @@ == Services/Libraries Used == - * *[http://code.google.com/apis/chart/ Google Chart API + * *[http://code.google.com/apis/chart/ Google Chart API] * * *[http://code.google.com/apis/visualization/documentation/gallery.html Google Visualization API]*