nsca-client/lib/nsca/client/notifier.rb

18 lines
291 B
Ruby
Raw Normal View History

2012-12-07 19:39:46 +01:00
require 'send_nsca'
module NSCA
module Client
class Notifier
def initialize(message)
@message = message
end
def send_nsca
connection = SendNsca::NscaConnection.new(@message.to_h)
connection.send_nsca
true
end
end
end
end