Class: SolidQueueWeb::DashboardStats
- Inherits:
-
Object
- Object
- SolidQueueWeb::DashboardStats
- Defined in:
- app/services/solid_queue_web/dashboard_stats.rb
Instance Attribute Summary collapse
-
#counts ⇒ Object
readonly
Returns the value of attribute counts.
-
#depth_sparkline ⇒ Object
readonly
Returns the value of attribute depth_sparkline.
-
#slow_jobs_count ⇒ Object
readonly
Returns the value of attribute slow_jobs_count.
-
#sparkline ⇒ Object
readonly
Returns the value of attribute sparkline.
-
#throughput ⇒ Object
readonly
Returns the value of attribute throughput.
Instance Method Summary collapse
-
#initialize ⇒ DashboardStats
constructor
A new instance of DashboardStats.
Constructor Details
#initialize ⇒ DashboardStats
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
#counts ⇒ Object (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_sparkline ⇒ Object (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_count ⇒ Object (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 |
#sparkline ⇒ Object (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 |
#throughput ⇒ Object (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 |