Class: Dashboards::CpuHistoriesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Dashboards::CpuHistoriesController
- Defined in:
- app/controllers/mission_control/servers/dashboards/cpu_histories_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
3 4 5 6 7 8 |
# File 'app/controllers/mission_control/servers/dashboards/cpu_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 @cpu_history_data = MissionControl::Servers::Service.cpu_usage_history(services) end |