@extends('layouts.app') @php $pageTitle = 'Device Errors'; $pageHeading = 'Device Bug Notices'; $pageDescription = 'Notifikasi otomatis ketika endpoint device (/iclock/*) mengalami error 500 agar mudah ditindaklanjuti saat development.'; @endphp @section('content')

Bug notice untuk integrasi device.

Halaman ini menampilkan error 500 yang terjadi saat device memanggil endpoint /iclock/*. Tujuannya supaya kamu cepat tahu ada BUG program ketika ada firmware yang kirim payload berbeda dari asumsi.

@if (session('status'))
Info
{{ session('status') }}
@endif @if ($errors->any())
Ada error
@endif

Pengaturan Bug Notice & Raw Logs

Supaya hemat storage, kamu bisa matikan pencatatan raw log ke storage/logs/*raw-*.txt dan/atau matikan Bug Notice.
@csrf
Ringkasan Storage Raw Logs
Total: {{ number_format((int) ($rawLogStats['total_files'] ?? 0)) }} file, {{ number_format(((int) ($rawLogStats['total_bytes'] ?? 0)) / 1024 / 1024, 2) }} MB.
@foreach (($rawLogStats['by_prefix'] ?? []) as $prefix => $row)
{{ $prefix }} {{ number_format((int) ($row['files'] ?? 0)) }} file ยท {{ number_format(((int) ($row['bytes'] ?? 0)) / 1024 / 1024, 2) }} MB
@endforeach

@csrf
Reset

Device Error Notices

@forelse ($rows as $row) @empty @endforelse
Last Seen SN Endpoint Status Occurrences Message Source Action
{{ $row->last_seen_at ?: '-' }}
First: {{ $row->first_seen_at ?: '-' }}
{{ $row->sn ?: '-' }}
{{ $row->method }} {{ $row->path }}
HTTP {{ $row->status_code }}
@if ($row->resolved_at) Resolved
{{ $row->resolved_at }}
@else Open @endif
{{ number_format((int) ($row->occurrences ?? 0)) }}
{{ $row->exception_class }}
{{ \Illuminate\Support\Str::limit((string) $row->message, 220) }}
{{ $row->file }}:{{ $row->line }}
@if (! $row->resolved_at)
@csrf
@else - @endif
Belum ada device error notice.
{{ $rows->links() }}
@endsection