Module: HostStatus

Extended by:
Dry::Configurable
Defined in:
lib/host_status.rb,
lib/host_status/host.rb,
lib/host_status/types.rb,
lib/host_status/version.rb,
lib/host_status/new_relic.rb,
lib/host_status/resources.rb,
lib/host_status/application.rb,
lib/host_status/new_relic/apm.rb

Defined Under Namespace

Modules: NewRelic, Types Classes: Application, Host, Resources

Constant Summary collapse

VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.adapters=(value) ⇒ Object (writeonly)

Sets the attribute adapters

Parameters:

  • value

    the value to set the attribute adapters to.



7
8
9
# File 'lib/host_status.rb', line 7

def adapters=(value)
  @adapters = value
end

.debugObject Also known as: debug?

Returns the value of attribute debug.



6
7
8
# File 'lib/host_status.rb', line 6

def debug
  @debug
end

.logger=(value) ⇒ Object

Sets the attribute logger

Parameters:

  • value

    the value to set the attribute logger to.



7
8
9
# File 'lib/host_status.rb', line 7

def logger=(value)
  @logger = value
end

Class Method Details

.log(lvl = :info, *messages) ⇒ Object



11
12
13
# File 'lib/host_status.rb', line 11

def log(lvl = :info, *messages)
  messages.each { |m| logger.send(lvl, m) }
end