Ovh\Dedicated\Server\ServerClient::getStatisticsPartitionChart PHP Method

getStatisticsPartitionChart() public method

Ajout by @Thibautg16 le 01/06/2014
public getStatisticsPartitionChart ( string $domain, string $partition, string $period = 'daily' ) : Object
$domain string
$partition string
$period string
return Object
    public function getStatisticsPartitionChart($domain, $partition, $period = 'daily')
    {
        $domain = (string) $domain;
        $partition = (string) $partition;
        $period = (string) $period;
        if (!$domain) {
            throw new BadMethodCallException('Parameter $domain is missing.');
        }
        try {
            $r = $this->get('dedicated/server/' . $domain . '/statistics/partition/' . $partition . '/chart?period=' . $period)->send();
        } catch (\Exception $e) {
            throw new ServerException($e->getMessage(), $e->getCode(), $e);
        }
        return $r->getBody(true);
    }