5
6
7
8
9
10
11
12
13
14
15
|
# File 'app/controllers/rails_vitals/dashboard_controller.rb', line 5
def index
@records = RailsVitals.store.all.reverse
@total = @records.size
@avg_score = average(@records, :score)
@avg_queries = average(@records, :total_query_count)
@avg_db_time = average(@records, :total_db_time_ms)
@top_offenders = top_offenders(@records)
@health_trend = health_trend_data(@records)
@score_distribution = score_distribution_data(@records)
@query_volume = query_volume_data(@records)
end
|