Class: Rack::Perf::SendDataToPerf

Inherits:
Struct
  • Object
show all
Defined in:
lib/rack/perf.rb

Overview

this method sends up the single timing request up to Perf TODO: queue this up in a batch

Constant Summary collapse

DESTINATION_URL =
"https://data.perf.sh/ingest"

Instance Method Summary collapse

Instance Method Details

#perform!Object



143
144
145
# File 'lib/rack/perf.rb', line 143

def perform!
  Unirest.post(DESTINATION_URL, headers: headers, parameters: params_json)
end