Class: Railswatch::Widgets::CustomEventsTable
- Inherits:
-
Table
- Object
- Base
- Table
- Railswatch::Widgets::CustomEventsTable
show all
- Defined in:
- lib/railswatch/widgets/custom_events_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
Instance Method Details
#content_partial_path ⇒ Object
43
44
45
|
# File 'lib/railswatch/widgets/custom_events_table.rb', line 43
def content_partial_path
'railswatch/railswatch/custom_events_table_content'
end
|
#empty_message ⇒ Object
14
15
16
|
# File 'lib/railswatch/widgets/custom_events_table.rb', line 14
def empty_message
example_message.html_safe
end
|
#example_message ⇒ Object
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/railswatch/widgets/custom_events_table.rb', line 18
def example_message
<<~HTML
Nothing to show here. Try to make a few requests in the main app.
<pre>
<code>
# in controller for example
def index
Railswatch.measure("stats calculation", "reports#index") do
stats = User.calculate_stats
end
end
</code>
</pre>
HTML
end
|
#show_export? ⇒ Boolean
35
36
37
|
# File 'lib/railswatch/widgets/custom_events_table.rb', line 35
def show_export?
false
end
|
#table_classes ⇒ Object
39
40
41
|
# File 'lib/railswatch/widgets/custom_events_table.rb', line 39
def table_classes
'table is-fullwidth is-hoverable is-narrow'
end
|