Sha256: 2356f9270dba595a8a004ceadd4a0075da45fbe138ef0903bafc0943473322df

Contents?: true

Size: 516 Bytes

Versions: 27

Compression:

Stored size: 516 Bytes

Contents

require 'sidekiq/api'
require 'roo_on_rails/sidekiq/queue_latency'
require 'roo_on_rails/sidekiq/process_scaling'

module RooOnRails
  module Sidekiq
    # 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 SlaMetric
      def self.queue
        queues = QueueLatency.queues
        global_stats = ProcessScaling.new(queues)
        global_stats.requested_processes
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
roo_on_rails-2.2.2 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-2.2.1 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-2.2.0 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-2.1.2 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-2.1.0 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-2.0.0.pre.pre.2 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-2.0.0.pre.pre.1 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-1.22.0 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-1.21.0 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-1.20.0 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-1.19.0 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-1.18.0 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-1.17.0 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-1.16.2 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-1.16.1 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-1.16.0 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-1.15.0 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-1.14.0 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-1.13.1 lib/roo_on_rails/sidekiq/sla_metric.rb
roo_on_rails-1.13.0 lib/roo_on_rails/sidekiq/sla_metric.rb