errbit/errbit — pull request #233 by boblail (2012-08-28 19:49:13+00:00)
Title: Add an API for reading notices and problems

Adds a decent little API for Errbit:

- It has two endpoints `/api/v1/problems` and `/api/v1/notices`.
- Specs are in `spec/controllers/api/v1`
- Authentication is done with Devise's token_authentication (no changes needed to make that work).
- You can request XML or JSON. JSON is used by default
- Added `resolved_at` and `first_notice_at` timestamp for problems
- Uses YAJL to render JSON and pulls data directly from MongoDB without instantiating models, making it pretty fast

This API now returns enough information to generate a variety of analytics on Errbit errors, like:

- Volume of problems per week
- Volume of notices per week
- Volume of resolutions per week
- Average rate of closure of problems
- Continuous Flow Diagram of problems