@extends('layouts.app') @section('title', 'Health Check - ' . $healthCheck->endpoint . ' - ' . $site->name) @section('content')

{{ $healthCheck->endpoint }}

Edit
@csrf @method('DELETE')
@if(session('success'))
{{ session('success') }}
@endif
Health Check Details
Site
{{ $site->name }}
{{ $site->url }}
Endpoint URL
{{ $healthCheck->full_url }}
Status
{{ $healthCheck->status_text }}
Monitoring
@if($healthCheck->is_active) Active @else Inactive @endif
Last Checked
@if($healthCheck->last_checked_at) {{ $healthCheck->last_checked_at->format('Y-m-d H:i:s') }}
{{ $healthCheck->last_checked_at->diffForHumans() }} @else Never @endif
@if($healthCheck->status_code)
Status Code
{{ $healthCheck->status_code }}
@endif @if($healthCheck->response_time_ms)
Response Time
{{ $healthCheck->response_time_ms }}ms
@endif
Expected Keys
@if($healthCheck->expected_json_keys && count($healthCheck->expected_json_keys) > 0) @foreach($healthCheck->expected_json_keys as $key) {{ $key }} @endforeach @else None specified @endif
Performance Threshold
@if($healthCheck->performance_threshold) {{ $healthCheck->performance_threshold }}ms @if($healthCheck->response_time_ms && $healthCheck->response_time_ms > $healthCheck->performance_threshold)
Currently exceeding threshold @endif @else Not set @endif
Created
{{ $healthCheck->created_at->format('Y-m-d H:i:s') }}
{{ $healthCheck->created_at->diffForHumans() }}
@if($healthCheck->response_data)
Latest Response Data
@if(isset($healthCheck->response_data['error']))
Error: {{ $healthCheck->response_data['error'] }}
@else
{{ json_encode($healthCheck->response_data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) }}
@endif
@endif
Current Status
{{ $healthCheck->status_text }}
@if($healthCheck->is_healthy === true)

All checks passed

@elseif($healthCheck->is_healthy === false)

Health check failed

@else

Not yet checked

@endif
Monitoring Info

Check Frequency: Every 5 minutes

Requirements:

  • 2xx HTTP status code
  • Valid JSON response
  • @if($healthCheck->expected_json_keys && count($healthCheck->expected_json_keys) > 0)
  • Contains required keys: {{ implode(', ', $healthCheck->expected_json_keys) }}
  • @endif @if($healthCheck->performance_threshold)
  • Performance alert if exceeds {{ $healthCheck->performance_threshold }}ms
  • @endif
@endsection