flower
/

review · segments

Create storage/network health checks for Laravel app

claude 51 events 1 segments dap-ops-health

segment 1 of 1

Create storage/network health-check classes for Laravel app

Done

The assistant read the harness contracts (HealthCheck interface, HealthResult, HealthStatus, HealthGroup, AbstractCheck, Tcp support class), then read config files (filesystems, database, XmlDelivery Writer). It verified Flysystem SFTP adapter capabilities, then created 5 files: AbstractStorageDiskCheck, ScannerStorageCheck, DropboxStorageServerCheck, LabworksMountCheck, VpnReachabilityCheck. All passed PHP syntax check.

outcome

Five health-check PHP classes created under app/Health/Checks/.

next steps

key decisions

  • Used directoryExists('') as primary SFTP probe with method_exists guard for adapters that lack it
  • Used Tcp::probe for VPN reachability check against labworks SQL Server host:port
  • Used Writer::isMountHealthy for Labworks mount check, flagging down only when a sentinel-backed target is unhealthy
  • Port fallback to 1433 for labworks connection when no port configured
  • All checks use named arguments for HealthResult helpers to match the differing argument order

open questions

2 weeks ago 2 weeks ago