Sha256: e0495d7083a248f40444f74e7ddde6bbcd6ed717ec4b8bd921922c69f19a1e55

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

require "sidekiq/api"

class PeakFlowUtils::Pings::SidekiqController < PeakFlowUtils::ApplicationController
  def index
    sidekiq_queue = Sidekiq::Queue.new

    render json: {
      check_json_status: "OK",
      latency: sidekiq_queue.latency,
      queue_size: sidekiq_queue.size
    }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
peak_flow_utils-0.1.17 app/controllers/peak_flow_utils/pings/sidekiq_controller.rb
peak_flow_utils-0.1.16 app/controllers/peak_flow_utils/pings/sidekiq_controller.rb
peak_flow_utils-0.1.15 app/controllers/peak_flow_utils/pings/sidekiq_controller.rb
peak_flow_utils-0.1.14 app/controllers/peak_flow_utils/pings/sidekiq_controller.rb
peak_flow_utils-0.1.13 app/controllers/peak_flow_utils/pings/sidekiq_controller.rb