Class: Nvoi::Configuration::AppService::HealthCheck
- Inherits:
-
Object
- Object
- Nvoi::Configuration::AppService::HealthCheck
- Defined in:
- lib/nvoi/configuration/app_service.rb
Overview
HealthCheck defines health check configuration
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#interval ⇒ Object
Returns the value of attribute interval.
-
#path ⇒ Object
Returns the value of attribute path.
-
#port ⇒ Object
Returns the value of attribute port.
-
#retries ⇒ Object
Returns the value of attribute retries.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data = nil) ⇒ HealthCheck
constructor
A new instance of HealthCheck.
Constructor Details
#initialize(data = nil) ⇒ HealthCheck
Returns a new instance of HealthCheck.
41 42 43 44 45 46 47 48 49 50 |
# File 'lib/nvoi/configuration/app_service.rb', line 41 def initialize(data = nil) data ||= {} @type = data["type"] @path = data["path"] @port = data["port"]&.to_i @command = data["command"] @interval = data["interval"] @timeout = data["timeout"] @retries = data["retries"]&.to_i end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
39 40 41 |
# File 'lib/nvoi/configuration/app_service.rb', line 39 def command @command end |
#interval ⇒ Object
Returns the value of attribute interval.
39 40 41 |
# File 'lib/nvoi/configuration/app_service.rb', line 39 def interval @interval end |
#path ⇒ Object
Returns the value of attribute path.
39 40 41 |
# File 'lib/nvoi/configuration/app_service.rb', line 39 def path @path end |
#port ⇒ Object
Returns the value of attribute port.
39 40 41 |
# File 'lib/nvoi/configuration/app_service.rb', line 39 def port @port end |
#retries ⇒ Object
Returns the value of attribute retries.
39 40 41 |
# File 'lib/nvoi/configuration/app_service.rb', line 39 def retries @retries end |
#timeout ⇒ Object
Returns the value of attribute timeout.
39 40 41 |
# File 'lib/nvoi/configuration/app_service.rb', line 39 def timeout @timeout end |
#type ⇒ Object
Returns the value of attribute type.
39 40 41 |
# File 'lib/nvoi/configuration/app_service.rb', line 39 def type @type end |