1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Adding alarm delete coverage of API

This commit is contained in:
Daniel Reichert 2013-07-24 11:09:46 -07:00
parent 5a8f6316ef
commit 26d98d0b5b
2 changed files with 19 additions and 0 deletions

View file

@ -64,6 +64,7 @@ module Fog
request :update_alarm
request :delete_agent_token
request :delete_alarm
request :delete_check
request :delete_entity

View file

@ -0,0 +1,18 @@
module Fog
module Rackspace
class Monitoring
class Real
def delete_alarm(entity_id, alarm_id)
request(
:expects => [204],
:method => 'DELETE',
:path => "entities/#{entity_id}/alarms/#{alarm_id}"
)
end
end
end
end
end