public function setStatsPrefix($prefix)
{
// what are we doing?
$log = usingLog()->startAction("set SavageD stats prefix to '{$prefix}' on host '{$this->args[0]}'");
// where are we doing this?
$url = $this->getSavagedUrl() . "/stats/prefix";
// make the request
usingHttp()->post($url, [], array("prefix" => $prefix));
// did it work?
$response = fromHttp()->get($url);
expectsHttpResponse($response)->hasStatusCode(200);
expectsHttpResponse($response)->hasBody('{"prefix":"' . $prefix . '"}');
// all done
$log->endAction();
}