NSCA::Checks: bundle your checks
This commit is contained in:
parent
28bc605104
commit
08108167a9
12
lib/nsca.rb
12
lib/nsca.rb
|
@ -316,4 +316,16 @@ module NSCA
|
|||
self
|
||||
end
|
||||
end
|
||||
|
||||
module Checks
|
||||
class <<self
|
||||
def perfdata cl, *params
|
||||
const_set cl, NSCA::PerformanceData.create( *params)
|
||||
end
|
||||
|
||||
def check cl, *params
|
||||
const_set cl, NSCA::Check.create( *params)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue