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.



43
44
45
# File 'lib/sidekiq/web.rb', line 43

def app_url
  @app_url
end

Class Method Details

.custom_tabsObject Also known as: tabs



38
39
40
# File 'lib/sidekiq/web.rb', line 38

def custom_tabs
  @custom_tabs ||= {}
end

.default_tabsObject



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

def default_tabs
  DEFAULT_TABS
end