Cametrics
git clone git://github.com/ibolmo/cametrics.git
config.py.sample
to config.py
and edit the file appropriatelyapp.yaml
(in particular the application
)Sometimes it would be useful to modify statistics to exclude certain statistics. The following are examples of such filters. Concept from Django Template Filters.
type|filters
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.
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
->
date->
date->
number->
number->
number->
number->
string->
string->
location# measure(namespace[, value = 1[, type = number]]);
measure('execution.start', 1240869175, 'timestamp');
measure('visitor::click');
measure(['participant', guid('ibolmo@gmail.com'), '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 .gc
or .gchart
to the end of your URL.
For example visit:
[http://cametrics.appspot.com/agljYW1ldHJpY3NyFQsSDm15YXBwX2NhbXBhaWduGNEPDA/name/space**.gchart?**cht=p3&chs=250x100]()
You do not need to include the chd
argument since this will be automatically populated by the system.