Telemetry (#4564)
This commit is contained in:
parent
df9a7f71f9
commit
ee033d6d08
5 changed files with 255 additions and 2 deletions
|
@ -14,10 +14,10 @@ class DaemonConfigurationRepository extends DaemonRepository
|
|||
*
|
||||
* @throws \Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException
|
||||
*/
|
||||
public function getSystemInformation(): array
|
||||
public function getSystemInformation(?int $version = null): array
|
||||
{
|
||||
try {
|
||||
$response = $this->getHttpClient()->get('/api/system');
|
||||
$response = $this->getHttpClient()->get('/api/system' . (!is_null($version) ? '?v=' . $version : ''));
|
||||
} catch (TransferException $exception) {
|
||||
throw new DaemonConnectionException($exception);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue