Class: ActiveInsights::JobsLatenciesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ActiveInsights::JobsLatenciesController
- Defined in:
- app/controllers/active_insights/jobs_latencies_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 |
# File 'app/controllers/active_insights/jobs_latencies_controller.rb', line 5 def index @latencies = minutes.map do |minute| [minute.pretty_started_at, minute.latency.round(1)] end end |
#redirection ⇒ Object
11 12 13 |
# File 'app/controllers/active_insights/jobs_latencies_controller.rb', line 11 def redirection redirect_to jobs_latency_path(params[:date]) end |