Class: ActiveInsights::RequestsPValuesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ActiveInsights::RequestsPValuesController
- Defined in:
- app/controllers/active_insights/requests_p_values_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 10 11 |
# File 'app/controllers/active_insights/requests_p_values_controller.rb', line 5 def index @p50 = minutes.map{ |minute| [minute.pretty_started_at, minute.p50] } @p95 = minutes.map{ |minute| [minute.pretty_started_at, minute.p95] } @p99 = minutes.map{ |minute| [minute.pretty_started_at, minute.p99] } fetch_rpm end |
#redirection ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'app/controllers/active_insights/requests_p_values_controller.rb', line 13 def redirection if formatted_controller.present? redirect_to controller_p_values_path(params[:date], formatted_controller) else redirect_to requests_p_values_path(params[:date]) end end |