Class: SolidStackWeb::DashboardController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SolidStackWeb::DashboardController
- Defined in:
- app/controllers/solid_stack_web/dashboard_controller.rb
Constant Summary
Constants inherited from ApplicationController
ApplicationController::PERIOD_DURATIONS
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/controllers/solid_stack_web/dashboard_controller.rb', line 3 def index @queue_stats = { ready: ::SolidQueue::ReadyExecution.count, scheduled: ::SolidQueue::ScheduledExecution.count, claimed: ::SolidQueue::ClaimedExecution.count, blocked: ::SolidQueue::BlockedExecution.count, failed: ::SolidQueue::FailedExecution.count, processes: ::SolidQueue::Process.count } @cache_stats = { entries: ::SolidCache::Entry.count, byte_size: ::SolidCache::Entry.sum(:byte_size) } @cable_stats = { messages: ::SolidCable::Message.count, channels: ::SolidCable::Message.distinct.count(:channel) } end |