Class: StandardHealth::Configuration::Registration

Inherits:
Struct
  • Object
show all
Defined in:
lib/standard_health/configuration.rb

Overview

A registered health check entry.

timeout is per-check seconds, or nil to fall back to default_check_timeout (itself nil by default — see below).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#criticalObject

Returns the value of attribute critical

Returns:

  • (Object)

    the current value of critical



18
19
20
# File 'lib/standard_health/configuration.rb', line 18

def critical
  @critical
end

#klassObject

Returns the value of attribute klass

Returns:

  • (Object)

    the current value of klass



18
19
20
# File 'lib/standard_health/configuration.rb', line 18

def klass
  @klass
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



18
19
20
# File 'lib/standard_health/configuration.rb', line 18

def name
  @name
end

#timeoutObject

Returns the value of attribute timeout

Returns:

  • (Object)

    the current value of timeout



18
19
20
# File 'lib/standard_health/configuration.rb', line 18

def timeout
  @timeout
end

Instance Method Details

#critical?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/standard_health/configuration.rb', line 19

def critical?
  !!critical
end