Class: SolidQueueWeb::DashboardStats

Inherits:
Object
  • Object
show all
Defined in:
app/services/solid_queue_web/dashboard_stats.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDashboardStats

Returns a new instance of DashboardStats.



5
6
7
8
# File 'app/services/solid_queue_web/dashboard_stats.rb', line 5

def initialize
  @now = Time.current
  compute
end

Instance Attribute Details

#countsObject (readonly)

Returns the value of attribute counts.



3
4
5
# File 'app/services/solid_queue_web/dashboard_stats.rb', line 3

def counts
  @counts
end

#depth_sparklineObject (readonly)

Returns the value of attribute depth_sparkline.



3
4
5
# File 'app/services/solid_queue_web/dashboard_stats.rb', line 3

def depth_sparkline
  @depth_sparkline
end

#slow_jobs_countObject (readonly)

Returns the value of attribute slow_jobs_count.



3
4
5
# File 'app/services/solid_queue_web/dashboard_stats.rb', line 3

def slow_jobs_count
  @slow_jobs_count
end

#sparklineObject (readonly)

Returns the value of attribute sparkline.



3
4
5
# File 'app/services/solid_queue_web/dashboard_stats.rb', line 3

def sparkline
  @sparkline
end

#throughputObject (readonly)

Returns the value of attribute throughput.



3
4
5
# File 'app/services/solid_queue_web/dashboard_stats.rb', line 3

def throughput
  @throughput
end