class VpsbClient::Api::PostSysbenchRun

Public Class Methods

new(http_client, trial_id, test_id, command, data) click to toggle source
Calls superclass method
# File lib/vpsb_client/api/post_sysbench_run.rb, line 5
def initialize(http_client, trial_id, test_id, command, data)
  super(http_client)
  @trial_id = trial_id
  @test_id = test_id
  @command = command
  @data = data
end

Public Instance Methods

content_type() click to toggle source
# File lib/vpsb_client/api/post_sysbench_run.rb, line 26
def content_type
  'application/json'
end
post_params() click to toggle source
# File lib/vpsb_client/api/post_sysbench_run.rb, line 17
def post_params
  @post_params = { sysbench_run: {
      test_id: @test_id,
      command: @command,
      data: @data
    }
  }
end
url_path() click to toggle source
# File lib/vpsb_client/api/post_sysbench_run.rb, line 13
def url_path
  "/api/trials/#{@trial_id}/sysbench_runs"
end