Module: NSCA::Checks
- Defined in:
- lib/nsca/check.rb
Instance Method Summary collapse
Instance Method Details
#check(service, hostname, perfdatas = nil) ⇒ Object
191 192 193 194 195 |
# File 'lib/nsca/check.rb', line 191 def check service, hostname, perfdatas = nil perfdatas ||= [] perfdatas.map! {|cl| cl.is_a?( Symbol) ? const_get( cl) : cl } NSCA::Check.new service, hostname, perfdatas end |
#perfdata(*params) ⇒ Object
189 |
# File 'lib/nsca/check.rb', line 189 def perfdata( *params) NSCA::PerformanceData.new( *params) end |