Sha256: 62d8b5033e39f5ac39796da7e206dd46814f8d7c06c3e8c098c9a72cb0557595

Contents?: true

Size: 805 Bytes

Versions: 38

Compression:

Stored size: 805 Bytes

Contents

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

      class Mock
        def get_instrumentation_value(url, requested_start_time, ndatapoints, duration)
          response = Excon::Response.new
          response.status = 200
          response.body = [self.data[:values]]
          response
        end
      end
    end
  end
end

Version data entries

38 entries across 36 versions & 6 rubygems

Version Path
fog-1.27.0 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
fog-1.26.0 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
fog-1.25.0 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
nsidc-fog-1.24.1 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
fog-1.24.0 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
ns-fog-1.22.11 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
ns-fog-1.22.10 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
ns-fog-1.22.9 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
ns-fog-1.22.8 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
ns-fog-1.22.7 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
ns-fog-1.22.6 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
fog-1.23.0 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
ns-fog-1.22.4 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
ns-fog-1.22.3 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
ns-fog-1.22.2 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
fog-1.22.1 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
fog-1.22.0 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb
fog-1.21.0 lib/fog/joyent/requests/analytics/get_instrumentation_value.rb