mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
27 lines
811 B
PHP
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());
|
|
}
|
|
}
|