Class: BackRun::MetricsCollector
- Inherits:
-
Object
- Object
- BackRun::MetricsCollector
- Defined in:
- lib/back_run/metrics_collector.rb
Constant Summary collapse
- EVENT_NAME =
'back_run.event_executed'.freeze
Class Method Summary collapse
Class Method Details
.job_executed(job) ⇒ Object
6 7 8 9 10 |
# File 'lib/back_run/metrics_collector.rb', line 6 def job_executed(job) ActiveSupport::Notifications.instrument( EVENT_NAME, duration_seconds: job.duration_seconds, job: job.klass ) end |