Class: Appsignal::Probes::SidekiqProbe::Sidekiq7Adapter Private

Inherits:
Object
  • Object
show all
Defined in:
lib/appsignal/probes/sidekiq.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Class Method Summary collapse

Class Method Details

.hostnameObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
17
18
19
20
21
22
# File 'lib/appsignal/probes/sidekiq.rb', line 16

def self.hostname
  host = nil
  ::Sidekiq.redis do |c|
    host = c.config.host
  end
  host
end

.redis_infoObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



10
11
12
13
14
# File 'lib/appsignal/probes/sidekiq.rb', line 10

def self.redis_info
  redis_info = nil
  ::Sidekiq.redis { |c| redis_info = c.info }
  redis_info
end