Class: Sidekiq::Web

Inherits:
Sinatra::Base
  • Object
show all
Includes:
Paginator
Defined in:
lib/sidekiq/web.rb

Constant Summary collapse

DEFAULT_TABS =
{
  "Dashboard" => '',
  "Busy"      => 'busy',
  "Queues"    => 'queues',
  "Retries"   => 'retries',
  "Scheduled" => 'scheduled',
  "Dead"      => 'morgue',
}
REDIS_KEYS =
%w(redis_version uptime_in_days connected_clients used_memory_human used_memory_peak_human)

Class Attribute Summary collapse

Class Method Summary collapse

Methods included from Paginator

#page

Class Attribute Details

.app_urlObject

Returns the value of attribute app_url.



40
41
42
# File 'lib/sidekiq/web.rb', line 40

def app_url
  @app_url
end

Class Method Details

.custom_tabsObject Also known as: tabs



35
36
37
# File 'lib/sidekiq/web.rb', line 35

def custom_tabs
  @custom_tabs ||= {}
end

.default_tabsObject



31
32
33
# File 'lib/sidekiq/web.rb', line 31

def default_tabs
  DEFAULT_TABS
end