mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
create an instrumentation via api call with start and end times
This commit is contained in:
parent
5348eb6dc4
commit
542b442365
1 changed files with 21 additions and 0 deletions
|
@ -0,0 +1,21 @@
|
|||
module Fog
|
||||
module Joyent
|
||||
class Analytics
|
||||
class Real
|
||||
def get_instrumentation_value(url, requested_start_time, requested_end_time)
|
||||
request(
|
||||
:path => url,
|
||||
:method => 'GET',
|
||||
:debug_request => true,
|
||||
:expects => 200,
|
||||
:query => {
|
||||
:start_time => requested_start_time.to_i,
|
||||
:duration => requested_end_time.to_i - requested_start_time.to_i,
|
||||
:end_time => requested_end_time.to_i
|
||||
}
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue