Class: RedisWebManager::DashboardController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- RedisWebManager::DashboardController
- Defined in:
- app/controllers/redis_web_manager/dashboard_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /dashboard.
Instance Method Details
#index ⇒ Object
GET /dashboard
6 7 8 9 10 11 12 13 |
# File 'app/controllers/redis_web_manager/dashboard_controller.rb', line 6 def index @information = stats.map { |k, v| { name: k.to_s.humanize, value: v } } @status = info.status @url = connection.id @memory = keys_by_type(data.keys, :memory) @cpu = keys_by_type(data.keys, :cpu) @client = keys_by_type(data.keys, :client) end |