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
-
.adapters ⇒ Object
writeonly
Sets the attribute adapters.
-
.debug ⇒ Object
(also: debug?)
Returns the value of attribute debug.
-
.logger ⇒ Object
writeonly
Sets the attribute logger.
Class Method Summary collapse
Class Attribute Details
.adapters=(value) ⇒ Object (writeonly)
Sets the attribute adapters
7 8 9 |
# File 'lib/host_status.rb', line 7 def adapters=(value) @adapters = value end |
.debug ⇒ Object 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
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, *) .each { |m| logger.send(lvl, m) } end |