Commit 895fee3d authored by Kir's avatar Kir
Browse files

API section in Readme

parent 442fa5b1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -104,6 +104,12 @@ 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 ###