Module: Resque::Plugins::JobStats::Timeseries::Performed
- Includes:
- Common
- Included in:
- Resque::Plugins::JobStats
- Defined in:
- lib/resque/plugins/job_stats/timeseries.rb
Instance Method Summary collapse
-
#after_perform_job_stats_timeseries(*args) ⇒ Object
Increments the performed count for the timestamp when job is complete.
-
#performed_per_hour ⇒ Object
Hash of timeseries data over the last 24 hours for completed jobs.
-
#performed_per_minute ⇒ Object
Hash of timeseries data over the last 60 minutes for completed jobs.
Methods included from Common
Instance Method Details
#after_perform_job_stats_timeseries(*args) ⇒ Object
Increments the performed count for the timestamp when job is complete
82 83 84 |
# File 'lib/resque/plugins/job_stats/timeseries.rb', line 82 def after_perform_job_stats_timeseries(*args) incr_timeseries(:performed) end |
#performed_per_hour ⇒ Object
Hash of timeseries data over the last 24 hours for completed jobs
92 93 94 |
# File 'lib/resque/plugins/job_stats/timeseries.rb', line 92 def performed_per_hour timeseries_data(:performed, 24, :hours) end |
#performed_per_minute ⇒ Object
Hash of timeseries data over the last 60 minutes for completed jobs
87 88 89 |
# File 'lib/resque/plugins/job_stats/timeseries.rb', line 87 def performed_per_minute timeseries_data(:performed, 60, :minutes) end |