Prose\UsingSavageD::stopWatchingServerDiskstats PHP Method

stopWatchingServerDiskstats() public method

    public function stopWatchingServerDiskstats()
    {
        // what are we doing?
        $log = usingLog()->startAction("stop watching the server's diskstats on host '{$this->args[0]}'");
        // where are we doing this?
        $safeTestName = urlencode($this->args[0] . '.host');
        $url = $this->getSavagedUrl() . "/server/{$safeTestName}/diskstats";
        // make the request
        usingHttp()->delete($url);
        // did it work?
        $response = fromHttp()->get($url);
        expectsHttpResponse($response)->hasStatusCode(404);
        expectsHttpResponse($response)->hasBody('{"monitoring":false}');
        // all done
        $log->endAction();
    }