Class: ActiveInsights::Job
- Defined in:
- app/models/active_insights/job.rb
Class Method Summary collapse
Methods inherited from Record
#agony, #p50, #p95, #p99, #parsed_durations, #pretty_started_at
Class Method Details
.setup(started, finished, unique_id, payload) ⇒ Object
5 6 7 8 9 10 |
# File 'app/models/active_insights/job.rb', line 5 def self.setup(started, finished, unique_id, payload) create!(started_at: started, finished_at: finished, uuid: unique_id, db_runtime: payload[:db_runtime], job: payload[:job].class.to_s, queue: payload[:job].queue_name, scheduled_at: payload[:job].scheduled_at) end |