Commit 32cda500 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

Merge pull request #40 from kirs/patch-1

Section about the API in README
parents d84f5554 8479190d
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -104,6 +104,13 @@ 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 ###