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

Add options argument to all() method

This commit is contained in:
Tom Noonan II 2014-05-09 14:56:47 -05:00
parent 8fa4359c5d
commit fae0ff06fb
2 changed files with 6 additions and 4 deletions

View file

@ -3,11 +3,12 @@ module Fog
class Monitoring
class Real
def list_alarms(entity_id)
def list_alarms(entity_id, options={})
request(
:expects => [200, 203],
:method => 'GET',
:path => "entities/#{entity_id}/alarms"
:path => "entities/#{entity_id}/alarms",
:query => options
)
end

View file

@ -3,11 +3,12 @@ module Fog
class Monitoring
class Real
def list_checks(entity_id)
def list_checks(entity_id, options={})
request(
:expects => [200, 203],
:method => 'GET',
:path => "entities/#{entity_id}/checks"
:path => "entities/#{entity_id}/checks",
:query => options
)
end
end