# Functions
AddHandlers adds the REST API handlers for run, status and stop.
DataList returns the .json files/entries in data dir.
Error writes serialized ServerReply marked as error, to the writer.
FormValue gets the value from the query arguments/URL parameter or from the provided map (JSON data).
GetAllRuns returns a copy of the status map (note maps are always reference types, so no copy is done when returning the map value).
GetConfigAtPath deserializes the bytes as JSON and extracts the map at the given path (only supports simple expression): .
GetDataURL gives the url of the data/ dir either using configured `-base-url` and ui path from the incoming Host header.
LogAndFilterDataRequest logs the data request.
RESTRunHandler is API version of UI submit handler.
RESTStatusHandler will print the state of the runs.
RESTStopHandler is the API to stop a given run by runid or all the runs if unspecified/0.
Run executes the run (can be called async or not, writer is nil for async mode).
RunMetrics returns the number of currently running runs as well as the total runs so far.
SaveJSON save JSON bytes to give file name (.json) in data-path dir.
format for gcloud transfer https://cloud.google.com/storage/transfer/create-url-list.
StopByRunID stops all the runs if passed 0 or the runid provided.
Must be called exactly once for each runner.
# Variables
Default percentiles when not otherwise specified.