18 lines
291 B
Ruby
18 lines
291 B
Ruby
|
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
|