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:
parent
5a8f6316ef
commit
26d98d0b5b
2 changed files with 19 additions and 0 deletions
|
@ -64,6 +64,7 @@ module Fog
|
|||
request :update_alarm
|
||||
|
||||
request :delete_agent_token
|
||||
request :delete_alarm
|
||||
request :delete_check
|
||||
request :delete_entity
|
||||
|
||||
|
|
18
lib/fog/rackspace/requests/monitoring/delete_alarm.rb
Normal file
18
lib/fog/rackspace/requests/monitoring/delete_alarm.rb
Normal 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
|
||||
|
Loading…
Reference in a new issue