Ovh\Dedicated\Server\ServerClient::getStatisticsCpu PHP Метод

getStatisticsCpu() публичный Метод

Get Statistics Cpu Ajout by @Thibautg16 le 01/06/2014
public getStatisticsCpu ( string $domain ) : Object
$domain string
Результат Object
    public function getStatisticsCpu($domain)
    {
        $domain = (string) $domain;
        if (!$domain) {
            throw new BadMethodCallException('Parameter $domain is missing.');
        }
        try {
            $r = $this->get('dedicated/server/' . $domain . '/statistics/cpu')->send();
        } catch (\Exception $e) {
            throw new ServerException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }