Module: SidekiqMonitoring::StatusMixin
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
41 42 43 |
# File 'lib/sidekiq-monitoring.rb', line 41 def status @status end |
Instance Method Details
#<=>(other) ⇒ Object
43 44 45 |
# File 'lib/sidekiq-monitoring.rb', line 43 def <=>(other) STATUS_LIST[status] <=> STATUS_LIST[other.status] end |
#criticality(status = monitoring_status) ⇒ Object
47 48 49 |
# File 'lib/sidekiq-monitoring.rb', line 47 def criticality(status = monitoring_status) STATUS_LIST[status] end |
#monitoring_status ⇒ Object
51 52 53 |
# File 'lib/sidekiq-monitoring.rb', line 51 def monitoring_status raise NotImplementedError.new "#{self.class}#monitoring_status" end |