{{ __('Loading…') }}
@if(! $latest)
{{ __('No snapshots captured yet for this connection.') }}
@else @php $usage = (float) $latest->connection_usage_pct; $usageClass = $usage >= 90 ? 'text-danger' : ($usage >= 75 ? 'text-warning' : 'text-success'); $longRunningClass = $latest->active_over_60s > 0 ? 'text-danger' : ($latest->active_over_10s > 0 ? 'text-warning' : 'text-success'); @endphp
{{ __('Connections') }}

{{ $latest->current_connections }} / {{ $latest->max_connections }}

{{ $latest->connection_usage_pct }}%
{{ __('Active > 10s') }}

{{ $latest->active_over_10s }}

{{ __('Active > 60s') }}

{{ $latest->active_over_60s }}

{{ __('Last snapshot') }}: {{ $latest->server_time }}

{{ __('History') }}
@foreach($history as $snapshot) @endforeach
{{ __('Server time') }} {{ __('Connections') }} {{ __('Usage %') }} {{ __('Active > 10s') }} {{ __('Active > 60s') }}
{{ $snapshot->server_time }} {{ $snapshot->current_connections }} / {{ $snapshot->max_connections }} {{ $snapshot->connection_usage_pct }}% {{ $snapshot->active_over_10s }} {{ $snapshot->active_over_60s }}
@endif