Class: Sidekiq::Metrics::Query::Result
- Inherits:
-
Struct
- Object
- Struct
- Sidekiq::Metrics::Query::Result
- Defined in:
- lib/sidekiq/metrics/query.rb
Instance Attribute Summary collapse
-
#ends_at ⇒ Object
Returns the value of attribute ends_at.
-
#granularity ⇒ Object
Returns the value of attribute granularity.
-
#job_results ⇒ Object
Returns the value of attribute job_results.
-
#marks ⇒ Object
Returns the value of attribute marks.
-
#size ⇒ Object
Returns the value of attribute size.
-
#starts_at ⇒ Object
Returns the value of attribute starts_at.
Instance Method Summary collapse
-
#initialize(granularity = :minutely) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(granularity = :minutely) ⇒ Result
Returns a new instance of Result.
117 118 119 120 121 122 |
# File 'lib/sidekiq/metrics/query.rb', line 117 def initialize(granularity = :minutely) super self.granularity = granularity self.marks = [] self.job_results = Hash.new { |h, k| h[k] = JobResult.new(granularity) } end |
Instance Attribute Details
#ends_at ⇒ Object
Returns the value of attribute ends_at
116 117 118 |
# File 'lib/sidekiq/metrics/query.rb', line 116 def ends_at @ends_at end |
#granularity ⇒ Object
Returns the value of attribute granularity
116 117 118 |
# File 'lib/sidekiq/metrics/query.rb', line 116 def granularity @granularity end |
#job_results ⇒ Object
Returns the value of attribute job_results
116 117 118 |
# File 'lib/sidekiq/metrics/query.rb', line 116 def job_results @job_results end |
#marks ⇒ Object
Returns the value of attribute marks
116 117 118 |
# File 'lib/sidekiq/metrics/query.rb', line 116 def marks @marks end |
#size ⇒ Object
Returns the value of attribute size
116 117 118 |
# File 'lib/sidekiq/metrics/query.rb', line 116 def size @size end |
#starts_at ⇒ Object
Returns the value of attribute starts_at
116 117 118 |
# File 'lib/sidekiq/metrics/query.rb', line 116 def starts_at @starts_at end |