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:
parent
8fa4359c5d
commit
fae0ff06fb
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue