mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
25 lines
484 B
Ruby
25 lines
484 B
Ruby
|
module Fog
|
||
|
module Compute
|
||
|
class OpenStack
|
||
|
class Real
|
||
|
|
||
|
def get_usage(tenant_id, date_start, date_end)
|
||
|
# TODO: Handle nasty date formats
|
||
|
request(
|
||
|
:expects => [200, 203],
|
||
|
:method => 'GET',
|
||
|
:path => "os-simple-tenant-usage/#{tenant_id}?start=#{date_start.iso8601}&end=#{date_end.iso8601}"
|
||
|
)
|
||
|
end
|
||
|
|
||
|
end
|
||
|
|
||
|
class Mock
|
||
|
|
||
|
# TODO: Mocks to go here
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|