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

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

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