Module: Resque::Plugins::JobStats::Timeseries::Enqueued
- Includes:
- Common
- Included in:
- Resque::Plugins::JobStats
- Defined in:
- lib/resque/plugins/job_stats/timeseries.rb
Instance Method Summary collapse
-
#after_enqueue_job_stats_timeseries(*args) ⇒ Object
Increments the enqueued count for the timestamp when job is queued.
-
#queued_per_hour ⇒ Object
Hash of timeseries data over the last 24 hours for queued jobs.
-
#queued_per_minute ⇒ Object
Hash of timeseries data over the last 60 minutes for queued jobs.
Methods included from Common
Instance Method Details
#after_enqueue_job_stats_timeseries(*args) ⇒ Object
Increments the enqueued count for the timestamp when job is queued
63 64 65 |
# File 'lib/resque/plugins/job_stats/timeseries.rb', line 63 def after_enqueue_job_stats_timeseries(*args) incr_timeseries(:enqueued) end |
#queued_per_hour ⇒ Object
Hash of timeseries data over the last 24 hours for queued jobs
73 74 75 |
# File 'lib/resque/plugins/job_stats/timeseries.rb', line 73 def queued_per_hour timeseries_data(:enqueued, 24, :hours) end |
#queued_per_minute ⇒ Object
Hash of timeseries data over the last 60 minutes for queued jobs
68 69 70 |
# File 'lib/resque/plugins/job_stats/timeseries.rb', line 68 def queued_per_minute timeseries_data(:enqueued, 60, :minutes) end |