Module: Resque::Plugins::JobStats

Includes:
Duration, Enqueued, Failed, History, Performed, Timeseries::Enqueued, Timeseries::Performed
Defined in:
lib/resque-job-stats/server.rb,
lib/resque/plugins/job_stats.rb,
lib/resque/plugins/job_stats/failed.rb,
lib/resque/plugins/job_stats/history.rb,
lib/resque/plugins/job_stats/version.rb,
lib/resque/plugins/job_stats/duration.rb,
lib/resque/plugins/job_stats/enqueued.rb,
lib/resque/plugins/job_stats/performed.rb,
lib/resque/plugins/job_stats/statistic.rb,
lib/resque/plugins/job_stats/timeseries.rb

Defined Under Namespace

Modules: Duration, Enqueued, Failed, History, Performed, Server, Timeseries Classes: Statistic

Constant Summary collapse

VERSION =
'0.5.0'

Class Method Summary collapse

Methods included from History

#around_perform_job_stats_history, #histories_recordable, #histories_recorded, #job_histories, #jobs_history_key, #reset_job_histories

Methods included from Timeseries::Performed

#after_perform_job_stats_timeseries, #performed_per_hour, #performed_per_minute

Methods included from Timeseries::Common

#timestamp

Methods included from Timeseries::Enqueued

#after_enqueue_job_stats_timeseries, #queued_per_hour, #queued_per_minute

Methods included from Duration

#around_perform_job_stats_duration, #durations_recorded, #job_durations, #job_rolling_avg, #jobs_duration_key, #longest_job, #reset_job_durations

Methods included from Failed

#jobs_failed, #jobs_failed=, #jobs_failed_key, #on_failure_job_stats_failed

Methods included from Enqueued

#after_enqueue_job_stats_enqueued, #jobs_enqueued, #jobs_enqueued=, #jobs_enqueued_key

Methods included from Performed

#after_perform_job_stats_performed, #jobs_performed, #jobs_performed=, #jobs_performed_key

Class Method Details

.extended(base) ⇒ Object



21
22
23
# File 'lib/resque/plugins/job_stats.rb', line 21

def self.extended(base)
  self.measured_jobs << base
end

.measured_jobsObject



25
26
27
# File 'lib/resque/plugins/job_stats.rb', line 25

def self.measured_jobs
  @measured_jobs ||= []
end