Class: Railswatch::Widgets::SidekiqJobsTable

Inherits:
Table
  • Object
show all
Defined in:
lib/railswatch/widgets/sidekiq_jobs_table.rb

Instance Attribute Summary

Attributes inherited from Base

#datasource

Instance Method Summary collapse

Methods inherited from Table

#auto_update_interval, #table_id, #to_partial_path

Methods inherited from Base

#initialize, #to_partial_path

Constructor Details

This class inherits a constructor from Railswatch::Widgets::Base

Instance Method Details

#content_partial_pathObject



26
27
28
# File 'lib/railswatch/widgets/sidekiq_jobs_table.rb', line 26

def content_partial_path
  'railswatch/railswatch/sidekiq_jobs_table_content'
end

#dataObject



10
11
12
# File 'lib/railswatch/widgets/sidekiq_jobs_table.rb', line 10

def data
  @data ||= Railswatch::Reports::RecentRequestsReport.new(datasource.db).data
end

#empty_messageObject



14
15
16
# File 'lib/railswatch/widgets/sidekiq_jobs_table.rb', line 14

def empty_message
  'Nothing to show here. Try to make a few requests in the main app.'
end

#show_export?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/railswatch/widgets/sidekiq_jobs_table.rb', line 18

def show_export?
  false
end

#subtitleObject



6
7
8
# File 'lib/railswatch/widgets/sidekiq_jobs_table.rb', line 6

def subtitle
  "Recent Jobs (last #{Railswatch.recent_requests_time_window / 60} minutes)"
end

#table_classesObject



22
23
24
# File 'lib/railswatch/widgets/sidekiq_jobs_table.rb', line 22

def table_classes
  'table is-fullwidth is-hoverable is-narrow'
end