Class: RedisWebManager::DashboardController

Inherits:
ApplicationController show all
Defined in:
app/controllers/redis_web_manager/dashboard_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

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