Class: RailsHealthChecks::Check
- Inherits:
-
Object
- Object
- RailsHealthChecks::Check
- Defined in:
- lib/rails_health_checks/check.rb
Direct Known Subclasses
RailsHealthChecks::Checks::CacheCheck, RailsHealthChecks::Checks::DatabaseCheck, RailsHealthChecks::Checks::DiskCheck, RailsHealthChecks::Checks::GoodJobCheck, RailsHealthChecks::Checks::HttpCheck, RailsHealthChecks::Checks::MemoryCheck, RailsHealthChecks::Checks::ResqueCheck, RailsHealthChecks::Checks::SidekiqCheck, RailsHealthChecks::Checks::SolidQueueCheck
Instance Attribute Summary collapse
-
#latency_ms ⇒ Object
readonly
Returns the value of attribute latency_ms.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
Instance Attribute Details
#latency_ms ⇒ Object (readonly)
Returns the value of attribute latency_ms.
6 7 8 |
# File 'lib/rails_health_checks/check.rb', line 6 def latency_ms @latency_ms end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/rails_health_checks/check.rb', line 6 def @message end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/rails_health_checks/check.rb', line 6 def status @status end |
#timeout ⇒ Object
Returns the value of attribute timeout.
5 6 7 |
# File 'lib/rails_health_checks/check.rb', line 5 def timeout @timeout end |
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'lib/rails_health_checks/check.rb', line 8 def call raise NotImplementedError, "#{self.class} must implement #call" end |