Files
pterodactyl-panel/app/Console/Commands/TelemetryCommand.php
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

27 lines
811 B
PHP

<?php
declare(strict_types=1);
namespace Pterodactyl\Console\Commands;
use Illuminate\Console\Attributes\Description;
use Illuminate\Console\Attributes\Signature;
use Illuminate\Console\Command;
use Pterodactyl\Services\Telemetry\TelemetryCollectionService;
use Symfony\Component\VarDumper\VarDumper;
#[Description('Displays all the data that would be sent to the Pterodactyl Telemetry Service if telemetry collection is enabled.')]
#[Signature('p:telemetry')]
class TelemetryCommand extends Command
{
/**
* Handle execution of command.
*/
public function handle(TelemetryCollectionService $telemetryCollectionService): void
{
$this->output->info('Collecting telemetry data, this may take a while...');
VarDumper::dump($telemetryCollectionService->collect());
}
}