Path: blob/1.0-develop/app/Console/Commands/TelemetryCommand.php
7460 views
<?php12namespace Pterodactyl\Console\Commands;34use Illuminate\Console\Command;5use Symfony\Component\VarDumper\VarDumper;6use Pterodactyl\Services\Telemetry\TelemetryCollectionService;78class TelemetryCommand extends Command9{10protected $description = 'Displays all the data that would be sent to the Pterodactyl Telemetry Service if telemetry collection is enabled.';1112protected $signature = 'p:telemetry';1314/**15* TelemetryCommand constructor.16*/17public function __construct(private TelemetryCollectionService $telemetryCollectionService)18{19parent::__construct();20}2122/**23* Handle execution of command.24*25* @throws \Pterodactyl\Exceptions\Model\DataValidationException26*/27public function handle()28{29$this->output->info('Collecting telemetry data, this may take a while...');3031VarDumper::dump($this->telemetryCollectionService->collect());32}33}343536