Module: NSCA::Checks

Defined in:
lib/nsca/check.rb

Instance Method Summary collapse

Instance Method Details

#check(service, hostname, perfdatas = nil) ⇒ Object



215
216
217
218
219
# File 'lib/nsca/check.rb', line 215

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



213
# File 'lib/nsca/check.rb', line 213

def perfdata( *params) NSCA::PerformanceData.new( *params) end