Class: RailsNexus::StatsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/rails_nexus/stats_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
9
10
11
12
13
14
15
# File 'app/controllers/rails_nexus/stats_controller.rb', line 5

def index
  @system_stats = collect_system_stats
  @ruby_stats = collect_ruby_stats
  @sidekiq_stats = collect_sidekiq_stats if defined?(Sidekiq)
  @cron_job_stats = CronJob.summary if defined?(CronJob)
  @webhook_stats = WebhookDelivery.summary if defined?(WebhookDelivery)
  @exception_stats = collect_exception_stats
  @platform_stats = collect_platform_stats
  @database_stats = collect_database_stats
  @storm_stats = collect_storm_stats if defined?(RailsNexus::StormProtection)
end