1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/joyent/requests/analytics/get_instrumentation_value.rb

21 lines
541 B
Ruby

module Fog
module Joyent
class Analytics
class Real
def get_instrumentation_value(url, requested_start_time, ndatapoints, duration)
request(
:path => url,
:method => 'GET',
:debug_request => true,
:expects => 200,
:query => {
:ndatapoints => ndatapoints,
:start_time => requested_start_time.to_i,
:duration => duration
}
)
end
end
end
end
end