@extends('layouts.app') @section('content')

{{ $agent->name }} - Performance Alerts

Model: {{ $agent->model_type }} | Created: {{ $agent->created_at->format('M d, Y') }}

Current Alerts
{{ $currentAlerts['status'] }}
@if($currentAlerts['alert_count'] > 0)
@foreach($currentAlerts['alerts'] as $alert) @endforeach
Type Severity Current Value Threshold Message
{{ ucfirst(str_replace('_', ' ', $alert['type'])) }} {{ ucfirst($alert['severity']) }} {{ is_numeric($alert['current_value']) && !is_int($alert['current_value']) ? number_format($alert['current_value'], 2) : $alert['current_value'] }} {{ is_numeric($alert['threshold']) && !is_int($alert['threshold']) ? number_format($alert['threshold'], 2) : $alert['threshold'] }} {{ $alert['message'] }}
@else
No active alerts at this time. All metrics are within normal ranges.
@endif
Alert Thresholds Configuration
@csrf
%
Alert when error rate exceeds this percentage (0-100%) @error('thresholds.error_rate') {{ $message }} @enderror
ms
Alert when average response time exceeds this value @error('thresholds.response_time') {{ $message }} @enderror
Alert when daily token usage exceeds this value @error('thresholds.token_usage') {{ $message }} @enderror
$
Alert when daily cost estimate exceeds this value @error('thresholds.cost_limit') {{ $message }} @enderror
%
Alert when CPU usage exceeds this percentage @error('thresholds.cpu_utilization') {{ $message }} @enderror
%
Alert when memory usage exceeds this percentage @error('thresholds.memory_utilization') {{ $message }} @enderror
%
Alert when GPU usage exceeds this percentage @error('thresholds.gpu_utilization') {{ $message }} @enderror
Back to Dashboard
@endsection @section('scripts') @endsection