Class: Rafflesia::JobQueueInfo
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::JobQueueInfo
- Defined in:
- lib/rafflesia/jobs/job_queue_info.rb
Constant Summary collapse
- HASH_ATTRS =
{ active: :active, aggregating: :aggregating, archived: :archived, completed: :completed, failed: :failed, failed_total: :failed_total, groups: :groups, latency_ms: :latency_ms, memory_usage_bytes: :memory_usage_bytes, paused: :paused, pending: :pending, processed: :processed, processed_total: :processed_total, queue: :queue, retry: :retry, scheduled: :scheduled, size: :size, snapshot_at: :snapshot_at }.freeze
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#aggregating ⇒ Object
Returns the value of attribute aggregating.
-
#archived ⇒ Object
Returns the value of attribute archived.
-
#completed ⇒ Object
Returns the value of attribute completed.
-
#failed ⇒ Object
Returns the value of attribute failed.
-
#failed_total ⇒ Object
Returns the value of attribute failed_total.
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#latency_ms ⇒ Object
Returns the value of attribute latency_ms.
-
#memory_usage_bytes ⇒ Object
Returns the value of attribute memory_usage_bytes.
-
#paused ⇒ Object
Returns the value of attribute paused.
-
#pending ⇒ Object
Returns the value of attribute pending.
-
#processed ⇒ Object
Returns the value of attribute processed.
-
#processed_total ⇒ Object
Returns the value of attribute processed_total.
-
#queue ⇒ Object
Returns the value of attribute queue.
-
#retry ⇒ Object
Returns the value of attribute retry.
-
#scheduled ⇒ Object
Returns the value of attribute scheduled.
-
#size ⇒ Object
Returns the value of attribute size.
-
#snapshot_at ⇒ Object
Returns the value of attribute snapshot_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ JobQueueInfo
constructor
A new instance of JobQueueInfo.
Constructor Details
#initialize(json) ⇒ JobQueueInfo
Returns a new instance of JobQueueInfo.
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 49 def initialize(json) super() hash = self.class.normalize(json) @active = hash[:active] @aggregating = hash[:aggregating] @archived = hash[:archived] @completed = hash[:completed] @failed = hash[:failed] @failed_total = hash[:failed_total] @groups = hash[:groups] @latency_ms = hash[:latency_ms] @memory_usage_bytes = hash[:memory_usage_bytes] @paused = hash[:paused] @pending = hash[:pending] @processed = hash[:processed] @processed_total = hash[:processed_total] @queue = hash[:queue] @retry = hash[:retry] @scheduled = hash[:scheduled] @size = hash[:size] @snapshot_at = hash[:snapshot_at] end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def active @active end |
#aggregating ⇒ Object
Returns the value of attribute aggregating.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def aggregating @aggregating end |
#archived ⇒ Object
Returns the value of attribute archived.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def archived @archived end |
#completed ⇒ Object
Returns the value of attribute completed.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def completed @completed end |
#failed ⇒ Object
Returns the value of attribute failed.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def failed @failed end |
#failed_total ⇒ Object
Returns the value of attribute failed_total.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def failed_total @failed_total end |
#groups ⇒ Object
Returns the value of attribute groups.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def groups @groups end |
#latency_ms ⇒ Object
Returns the value of attribute latency_ms.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def latency_ms @latency_ms end |
#memory_usage_bytes ⇒ Object
Returns the value of attribute memory_usage_bytes.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def memory_usage_bytes @memory_usage_bytes end |
#paused ⇒ Object
Returns the value of attribute paused.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def paused @paused end |
#pending ⇒ Object
Returns the value of attribute pending.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def pending @pending end |
#processed ⇒ Object
Returns the value of attribute processed.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def processed @processed end |
#processed_total ⇒ Object
Returns the value of attribute processed_total.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def processed_total @processed_total end |
#queue ⇒ Object
Returns the value of attribute queue.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def queue @queue end |
#retry ⇒ Object
Returns the value of attribute retry.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def retry @retry end |
#scheduled ⇒ Object
Returns the value of attribute scheduled.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def scheduled @scheduled end |
#size ⇒ Object
Returns the value of attribute size.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def size @size end |
#snapshot_at ⇒ Object
Returns the value of attribute snapshot_at.
29 30 31 |
# File 'lib/rafflesia/jobs/job_queue_info.rb', line 29 def snapshot_at @snapshot_at end |