Page MenuHome

submit_benchmark.sh
No OneTemporary

submit_benchmark.sh

#!/bin/bash
# Run as `submit_benchmark.sh benchmark.json your-token`
# You can get your-token by looking up or creating a mydata_benchmarks_clienttoken
# record associated with your user in the database.
JSON_FNAME="$1"; shift
AUTH_TOKEN="$1"; shift
curl_opts=(
-H "Content-Type: application/json"
-H "Accept: application/json"
-H "Authorization: Bearer $AUTH_TOKEN"
--data-binary "@${JSON_FNAME}"
)
curl "${curl_opts[@]}" "$@" http://mydata.local:8003/benchmarks/submit

File Metadata

Mime Type
text/x-shellscript
Expires
Mon, Mar 1, 12:07 AM (2 d)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ea/53/815bc07b1fefc217f8e0be0fac81

Event Timeline