diff --git a/lib/fog/joyent/requests/analytics/get_instrumentation_value.rb b/lib/fog/joyent/requests/analytics/get_instrumentation_value.rb new file mode 100644 index 000000000..fce3c2df4 --- /dev/null +++ b/lib/fog/joyent/requests/analytics/get_instrumentation_value.rb @@ -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