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

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

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