Class: Dashboards::CpuUsagesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Dashboards::CpuUsagesController
- Defined in:
- app/controllers/mission_control/servers/dashboards/cpu_usages_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
3 4 5 6 7 |
# File 'app/controllers/mission_control/servers/dashboards/cpu_usages_controller.rb', line 3 def show @project = MissionControl::Servers::Project.find_by(token: params[:project_id]) @hostname = params[:hostname] @service = @project.services.where(hostname: @hostname).last end |