@if (! $this->type) @endif @if ($this->usage === 'slow_requests' && is_array($slowRequestsConfig['threshold'])) @php $message = 'You have per-route thresholds configured.'; @endphp @endif @if ($userRequestCounts->isEmpty()) @else
@php $sampleRate = match($this->usage) { 'requests' => $userRequestsConfig['sample_rate'], 'slow_requests' => $slowRequestsConfig['sample_rate'], 'jobs' => $jobsConfig['sample_rate'], }; @endphp @foreach ($userRequestCounts as $userRequestCount) @if ($sampleRate < 1) ~{{ number_format($userRequestCount->count * (1 / $sampleRate)) }} @else {{ number_format($userRequestCount->count) }} @endif @endforeach
@endif