<?php

require __DIR__ . '/../vendor/autoload.php';
$app = require __DIR__ . '/../bootstrap/app.php';
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();

$agentId = '019f100e-bdfd-712c-9e1c-2f6d37461ced';
$events = ['disconnect.unauthorized', 'disconnect.authorized', 'disconnect.completed', 'disconnect.secret_generated'];

foreach ($events as $event) {
    $count = \App\Features\Monitoring\Models\AuditLog::where('agent_id', $agentId)->where('event', $event)->count();
    echo "{$event}: {$count}\n";
}
