1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/rackspace/requests/monitoring/create_notification.rb
2013-09-10 10:03:33 -05:00

18 lines
365 B
Ruby

module Fog
module Rackspace
class Monitoring
class Real
def create_notification(options = {})
data = options.dup
request(
:body => JSON.encode(data),
:expects => [201],
:method => 'POST',
:path => 'notifications'
)
end
end
end
end
end