{{-- Cabecera --}}

API Logs

Monitorización y diagnóstico de peticiones a la API (POST /api/v1/).

{{-- Filtros + rango temporal --}}

Filtros @php $counts = $this->appliedFiltersCounts; @endphp @if($counts['total'] > 0) {{ $counts['total'] }} @endif

@if($rangePreset === 'custom') hasta @endif
{{-- Cliente y entorno --}}

Cliente y entorno @if($counts['cliente_entorno'] > 0) {{ $counts['cliente_entorno'] }} @endif

@if($host)
Filtro por host (no reconocido): {{ Str::limit($host, 40) }}
@endif
{{-- Petición y respuesta --}}

Petición y respuesta @if($counts['peticion_respuesta'] > 0) {{ $counts['peticion_respuesta'] }} @endif

@foreach([200,400,401,403,404,422,429,500] as $status) @endforeach
{{-- Filtros avanzados --}}

Filtros avanzados @if($counts['avanzados'] > 0) {{ $counts['avanzados'] }} @endif

{{-- KPIs --}}
Requests {{ number_format($total) }} @if($prevTotal !== null) Anterior: {{ number_format($prevTotal) }} @endif
% errores {{ $errorPct }}% 4xx: {{ $count4xx }} · 5xx: {{ $count5xx }} @if($prevErrorPct !== null) Anterior: {{ $prevErrorPct }}% @endif
P50 (ms) {{ $p50 !== null ? number_format($p50) : '—' }} @if($prevP50 !== null) Anterior: {{ number_format($prevP50) }} @endif
P95 (ms) {{ $p95 !== null ? number_format($p95) : '—' }} @if($prevP95 !== null) Anterior: {{ number_format($prevP95) }} @endif
Top actions
    @forelse($topActions as $row)
  • {{ $row->action }}{{ $row->c }}
  • @empty
  • @endforelse
Top clientes
    @forelse($topClients as $row)
  • {{ $row->client->name ?? 'ID '.$row->client_id }}{{ $row->c }}
  • @empty
  • @endforelse
{{-- Sitios con mayor tasa de error --}}

Sitios con mayor tasa de error

    @forelse($sitesErrorRate as $row)
  • {{ $row->environment->name ?? $row->host ?? 'ID '.$row->environment_id }} {{ $row->error_pct }}% {{ $row->errors }}/{{ $row->total }}
  • @empty
  • Ningún sitio con errores en el rango
  • @endforelse
{{-- Tabla --}}

Registros

@forelse($logs as $log) @empty @endforelse
Fecha Cliente Sitio Action HTTP Duración Acciones
{{ $log->started_at?->format('d/m/Y H:i:s') }} {{ $log->client?->name ?? '—' }} {{ $log->site?->name ?? $log->host ?? '—' }} {{ $log->action ?? '—' }} error_code || $log->error) title="{{ ($log->error_code ? $log->error_code . ' – ' : '') . ($log->error ?? '') }}" @endif> {{ $log->http_status }} {{ $log->duration_ms }} ms
@if($log->environment_id || $log->host) @endif
No hay registros en el rango seleccionado.
{{ $logs->links('livewire.components.table-pagination') }}
@script @endscript