src/Ovh/Vps/VpsClient.php
public function getCurrentMonitoring($domain, $type)
    {
        $type = strtolower($type);
        if (!$domain)
            throw new BadMethodCallException('Parameter $domain is missing.');
        if (!in_array($type, array('cpu:max', 'cpu:used', 'mem:max', 'mem:used', 'net:rx', 'net:tx')))
            throw new BadMethodCallException('Parameter $type must be "cpu:max" or "cpu:used" or "mem:max" or "mem:used" or "net:rx" or "net:tx". "' . $type . '" given.');
        try {
            $r = $this->get('vps/' . $domain . '/use?type=' . $type)->send();
        } catch (\Exception $e) {
            throw new VpsException($e->getMessage(), $e->getCode(),$e);
        }
        return $r->getBody(true);
    }
public function getCurrentMonitoring($domain, $type)
    {
        $type = strtolower($type);
        if (!$domain)
            throw new BadMethodCallException('Parameter $domain is missing.');
        if (!in_array($type, array('cpu:max', 'cpu:used', 'mem:max', 'mem:used', 'net:rx', 'net:tx')))
            throw new BadMethodCallException('Parameter $type must be "cpu:max" or "cpu:used" or "mem:max" or "mem:used" or "net:rx" or "net:tx". "' . $type . '" given.');
        try {
            $r = $this->get('vps/' . $domain . '/use?type=' . $type)->send();
        } catch (\Exception $e) {
            throw new VpsException($e->getMessage(), $e->getCode(),$e);
        }
        return $r->getBody(true);
    }
Get current monitoring

@param string $domain
@param string $type "cpu:max" or "cpu:used" or "mem:max" or "mem:used" or "net:rx" or "net:tx"
@return string json encoded
@throws \Ovh\Common\Exception\BadMethodCallException
@throws Exception\VpsException