Class: Nvoi::Configuration::AppService::HealthCheck

Inherits:
Object
  • Object
show all
Defined in:
lib/nvoi/configuration/app_service.rb

Overview

HealthCheck defines health check configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#commandObject

Returns the value of attribute command.



39
40
41
# File 'lib/nvoi/configuration/app_service.rb', line 39

def command
  @command
end

#intervalObject

Returns the value of attribute interval.



39
40
41
# File 'lib/nvoi/configuration/app_service.rb', line 39

def interval
  @interval
end

#pathObject

Returns the value of attribute path.



39
40
41
# File 'lib/nvoi/configuration/app_service.rb', line 39

def path
  @path
end

#portObject

Returns the value of attribute port.



39
40
41
# File 'lib/nvoi/configuration/app_service.rb', line 39

def port
  @port
end

#retriesObject

Returns the value of attribute retries.



39
40
41
# File 'lib/nvoi/configuration/app_service.rb', line 39

def retries
  @retries
end

#timeoutObject

Returns the value of attribute timeout.



39
40
41
# File 'lib/nvoi/configuration/app_service.rb', line 39

def timeout
  @timeout
end

#typeObject

Returns the value of attribute type.



39
40
41
# File 'lib/nvoi/configuration/app_service.rb', line 39

def type
  @type
end