README.md in fnordmetric-0.6.3 vs README.md in fnordmetric-0.6.4

- old
+ new

@@ -102,10 +102,17 @@ redis.set("fnordmetric-event-#{my_uuid}", event) redis.expire("fnordmetric-event-#{my_uuid}", 60) redis.lpush("fnordmetric-queue", uuid) ``` +The Ruby way: Using the API. + +```ruby +api = FnordMetric::API.new({}) +api.event({:_type => "unicorn_seen"}) +``` + ---- ### Special Events ### ```js @@ -119,10 +126,16 @@ { "_type": "_set_picture", "url": "http://myhost/123.jpg", "_session": "mysessiontoken" } ``` ---- +### Assigning Events to a Namespace ### + +```js +{ "_type": "unicorn_seen", "_namespace": "myapp" } +``` + ### Event Handlers ### Call these methods from the event-handler block incr(gauge_name, value=1): @@ -310,11 +323,12 @@ + Bruno Michel (http://github.com/nono) + Marco Borromeo (http://github.com/mborromeo) + Leo Lou (http://github.com/l4u) + Andy Lindeman (http://github.com/alindeman) + Jurriaan Pruis (http://github.com/jurriaan) -+ Kacper Bielecki (http://github.com/kazjote) ++ John Murray (http://github.com/JohnMurray) ++ Lars Gierth (http://github.com/lgierth) To contribute, please fork this repository, make your changes and run the specs, commit them to your github repository and send me a pull request. License @@ -340,15 +354,15 @@ Todos ----- ++ readme: user_data (_session), import/log/_time, data expiration + combine/calculation gauges via opts_gauge({}, &block) (+calculate ctr) + timeline_widget: 'compare mode': compare gauge to yesterday + numbers_widget: handle decreasing vals + opt_event options: :increment => gauge_name + prune the namespace-sessions-timline (remove event_ids older than x) + prune the namespace-event-types-list (trim to max items) + the funnel-widget + timelinewidget + numberswidget => should use redis hmget + get multiple metrics in a single http get -+ the `{ _namespace: myns }` field