mperham/sidekiq — pull request #570 by brandonhilkert (2012-12-06 03:16:25+00:00)
Title: Add History to Stats API

Adds Stats History API by day (all dates are UTC).

Usage:

```Ruby
s = Sidekiq::Stats::History.new(2) # Indicates how many days of data you want starting from today (UTC)
s.failed # => { "2012-12-05" => 120, "2012-12-04" => 234 }
s.process # => { "2012-12-05" => 1010, "2012-12-04" => 1500 }
```
Can also provide a different start date

```Ruby
s = Sidekiq::Stats::History.new( 3, Date.parse("2012-12-3") )
s.failed # => { "2012-12-03" => 10, "2012-12-02" => 24, "2012-12-01" => 4 }
s.process # => { "2012-12-03" => 124, "2012-12-02" => 345, "2012-12-01" => 355 }
```

Use of these stats, to start, would be a dashboard in the Web UI to better visualize the Sidekiq's processing.