Sha256: 51ddaf0a704b236fd26acc615c54136f2c52c05a04a5a5ed0e1a45c811d75ed0

Contents?: true

Size: 243 Bytes

Versions: 4

Compression:

Stored size: 243 Bytes

Contents

class PeakFlowUtils::Pings::SidekiqPings < PeakFlowUtils::ApplicationController
  def create
    sidekiq_queue = Sidekiq::Queue.new

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
peak_flow_utils-0.1.9 app/controllers/peak_flow_utils/pings/sidekiq_pings_controller.rb
peak_flow_utils-0.1.8 app/controllers/peak_flow_utils/pings/sidekiq_pings_controller.rb
peak_flow_utils-0.1.7 app/controllers/peak_flow_utils/pings/sidekiq_pings_controller.rb
peak_flow_utils-0.1.6 app/controllers/peak_flow_utils/pings/sidekiq_pings_controller.rb