Class: ActiveInsights::JobsLatenciesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/active_insights/jobs_latencies_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



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

#redirectionObject



11
12
13
# File 'app/controllers/active_insights/jobs_latencies_controller.rb', line 11

def redirection
  redirect_to jobs_latency_path(params[:date])
end