1
0
Fork 0
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:
Kevin Olbrich 2013-12-16 19:12:21 +00:00
parent 5348eb6dc4
commit 542b442365

View file

@ -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