Class: RooOnRails::Sidekiq::SlaMetric

Inherits:
Object
  • Object
show all
Defined in:
lib/roo_on_rails/sidekiq/sla_metric.rb

Overview

Returns stats on the current SLA performance of queues in a Sidekiq instance.

Only returns stats for queues being processed by current Sidekiq process

Class Method Summary collapse

Class Method Details

.queueObject



11
12
13
14
15
# File 'lib/roo_on_rails/sidekiq/sla_metric.rb', line 11

def self.queue
  queues = QueueLatency.queues
  global_stats = ProcessScaling.new(queues)
  global_stats.requested_processes
end