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

getStatisticsConnection() public method

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