Class: Upcheck::Component
Constant Summary collapse
- STATUS_OPERATIONAL =
"operational"- STATUS_DEGRADED_PERFORMANCE =
"degraded_performance"- STATUS_PARTIAL_OUTAGE =
"partial_outage"- STATUS_MAJOR_OUTAGE =
"major_outage"- STATUS_UNDER_MAINTENANCE =
"under_maintenance"
Instance Method Summary collapse
- #degraded? ⇒ Boolean
- #maintenance? ⇒ Boolean
- #major_outage? ⇒ Boolean
- #operational? ⇒ Boolean
- #partial_outage? ⇒ Boolean
Methods inherited from Resource
attribute, build_all, #initialize
Constructor Details
This class inherits a constructor from Upcheck::Resource
Instance Method Details
#degraded? ⇒ Boolean
14 |
# File 'lib/upcheck/component.rb', line 14 def degraded? = status == STATUS_DEGRADED_PERFORMANCE |
#maintenance? ⇒ Boolean
17 |
# File 'lib/upcheck/component.rb', line 17 def maintenance? = status == STATUS_UNDER_MAINTENANCE |
#major_outage? ⇒ Boolean
16 |
# File 'lib/upcheck/component.rb', line 16 def major_outage? = status == STATUS_MAJOR_OUTAGE |
#operational? ⇒ Boolean
13 |
# File 'lib/upcheck/component.rb', line 13 def operational? = status == STATUS_OPERATIONAL |
#partial_outage? ⇒ Boolean
15 |
# File 'lib/upcheck/component.rb', line 15 def partial_outage? = status == STATUS_PARTIAL_OUTAGE |