Sha256: 21b84468869919d5b29f6276b0da97f552fa76986c0edceb85c6eeab7ac76e2c

Contents?: true

Size: 617 Bytes

Versions: 3

Compression:

Stored size: 617 Bytes

Contents

require_relative "../request"

module Freno
  class Client
    module Requests
      class CheckRead < Request

        def initialize(**kwargs)
          super

          app        = kwargs.fetch(:app)
          store_type = kwargs.fetch(:store_type)
          store_name = kwargs.fetch(:store_name)
          threshold  = kwargs.fetch(:threshold)

          check do
            present app: app, store_type: store_type, store_name: store_name, threshold: threshold
          end

          @path = "check-read/#{app}/#{store_type}/#{store_name}/#{threshold.to_f.round(3)}"
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
freno-client-0.7.0 lib/freno/client/requests/check_read.rb
freno-client-0.6.0 lib/freno/client/requests/check_read.rb
freno-client-0.4.0 lib/freno/client/requests/check_read.rb