Module: Toro::Monitor
- Defined in:
- lib/toro/monitor.rb,
lib/toro/monitor/engine.rb,
lib/toro/monitor/custom_views.rb,
lib/toro/monitor/time_formatter.rb,
app/datatables/toro/monitor/jobs_datatable.rb,
app/controllers/toro/monitor/base_controller.rb,
app/controllers/toro/monitor/jobs_controller.rb,
app/helpers/toro/monitor/toro_monitor_helper.rb,
app/controllers/toro/monitor/queues_controller.rb,
app/datatables/toro/monitor/abstract_datatable.rb,
app/datatables/toro/monitor/processes_datatable.rb,
app/controllers/toro/monitor/api/jobs_controller.rb,
app/controllers/toro/monitor/processes_controller.rb,
app/controllers/toro/monitor/api/queues_controller.rb,
app/controllers/toro/monitor/api/processes_controller.rb
Defined Under Namespace
Modules: Api, ToroMonitorHelper
Classes: AbstractDatatable, BaseController, CustomViews, Engine, JobsController, JobsDatatable, ProcessesController, ProcessesDatatable, QueuesController, TimeFormatter
Constant Summary
collapse
- DEFAULTS =
{
:charts => nil,
:javascripts => [],
:poll_interval => 3000
}
Class Method Summary
collapse
Class Method Details
.options ⇒ Object
20
21
22
|
# File 'lib/toro/monitor.rb', line 20
def options
@options ||= DEFAULTS.dup
end
|
.options=(options) ⇒ Object
24
25
26
|
# File 'lib/toro/monitor.rb', line 24
def options=(options)
@options = options
end
|
.root_path ⇒ Object
28
29
30
31
|
# File 'lib/toro/monitor.rb', line 28
def root_path
toro_monitor_path = Toro::Monitor::Engine.routes.url_helpers.toro_monitor_path
"#{::Rails.application.config.relative_url_root}#{toro_monitor_path}"
end
|