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

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

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