Class: Dashboards::MemoryHistoriesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/mission_control/servers/dashboards/memory_histories_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



3
4
5
6
7
8
# File 'app/controllers/mission_control/servers/dashboards/memory_histories_controller.rb', line 3

def show
  @project = MissionControl::Servers::Project.find_by(token: params[:project_id])
  @hostname = params[:hostname]
  services = @project.services.where(hostname: @hostname).ordered
  @memory_history_data = MissionControl::Servers::Service.memory_usage_history(services)
end