Class: Sidekiq::Stats::History

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq/api.rb

Instance Method Summary collapse

Constructor Details

#initialize(days_previous, start_date = nil) ⇒ History

Returns a new instance of History.


150
151
152
153
# File 'lib/sidekiq/api.rb', line 150

def initialize(days_previous, start_date = nil)
  @days_previous = days_previous
  @start_date = start_date || Time.now.utc.to_date
end

Instance Method Details

#failedObject


159
160
161
# File 'lib/sidekiq/api.rb', line 159

def failed
  @failed ||= date_stat_hash("failed")
end

#processedObject


155
156
157
# File 'lib/sidekiq/api.rb', line 155

def processed
  @processed ||= date_stat_hash("processed")
end