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

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

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