Running Your Own Cametrics
- Download from Github (http://github.com/ibolmo/cametrics/zipball/master) or
git clone git://github.com/ibolmo/cametrics.git
config.pyand edit the file appropriately
app.yaml(in particular the
- none (no statistics, no type)
- elevation (altitude)
- binary (true|false)
Sometimes it would be useful to modify statistics to exclude certain statistics. The following are examples of such filters. Concept from Django Template Filters.
- off, no statistics
All things related to models, objects, or classes and their respected statistics that are auto incremented/decremented/updated. The '\' items are not yet implemented. The '?*' items are unverified for appropiateness.
Base (common for all types)
- years (bucket)
- months (bucket)
- days (bucket)
- hours (bucket)
- minutes (bucket)
- seconds (bucket)
- weekdays (bucket)
- grids (geotudes)?
- units (0.1, 1, 10, ...)*
- start (date)
- stop (date)
- duration (number)
Web hooks can be attached for when an event (for a namespace) occurs. Supports standard HTTP methods and position conditions (pre- and post- execution of the method).
# attach(namespace, callback_uri[, method = post|get|put|delete[, condition = post|pre); attach(namespace, callback_uri) # detach([namespace, callback_uri[, method = post|get|put|delete[, condition = post|pre]]); detach(namespace, callback_uri, 'get', 'post') detach()
The following map/alias between different type of inputs
# measure(namespace[, value = 1[, type = number]]); measure('execution.start', 1240869175, 'timestamp'); measure('visitor::click'); measure(['participant', guid('firstname.lastname@example.org'), 'join']); # measure.start|pause|resume|stop(namespace)
Universally Unique Identifier can be useful for namespacing to get a specific measurement for an object that is known to the campaign but is anonymous to the system. For example, I can track a user's data quality without implicating the user in the backend.
Google Charts API is supported by passing all the normal query parameters, as described in the Google Charts API and appending
.gchart to the end of your URL.
You do not need to include the
chd argument since this will be automatically populated by the system.
- Timezone for datetime calculations
- delete Campaign, Storage, and Statistics
- Olmo: Assuming: we have a good breadth of (statistical) processings for different objects, then incr/decr operations may not be necessary
- Olmo: Would be interesting to support abritrary/other actions, though.
- Olmo: Would be interesting to have statistics local to a grouping.
- Sasank: Delete all data for a campaign
- Sasank: Delete all data for a namespace
- Sasank: Query for specific stats, including filtering for withtin a boundary