module Resque::Plugins::JobStats::Timeseries::Enqueued

Public Instance Methods

after_enqueue_job_stats_timeseries(*args) click to toggle source

Increments the enqueued count for the timestamp when job is queued

# File lib/resque/plugins/job_stats/timeseries.rb, line 64
def after_enqueue_job_stats_timeseries(*args)
  incr_timeseries(:enqueued)
end
queued_per_hour() click to toggle source

Hash of timeseries data over the last 24 hours for queued jobs

# File lib/resque/plugins/job_stats/timeseries.rb, line 74
def queued_per_hour
  timeseries_data(:enqueued, 24, :hours)
end
queued_per_minute() click to toggle source

Hash of timeseries data over the last 60 minutes for queued jobs

# File lib/resque/plugins/job_stats/timeseries.rb, line 69
def queued_per_minute
  timeseries_data(:enqueued, 60, :minutes)
end