APIEnvironment::getPing PHP Method

getPing() protected method

protected getPing ( integer $ID ) : SS_HTTPResponse
$ID integer
return SS_HTTPResponse
    protected function getPing($ID)
    {
        $ping = DNPing::get()->byID($ID);
        if (!$ping) {
            return $this->message('Ping not found', 404);
        }
        $output = array('status' => $ping->ResqueStatus(), 'message' => $ping->LogContent());
        return $this->getAPIResponse($output);
    }