refactor: reorganize directory structure to match exam submission spec

هذا الالتزام موجود في:
mac
2026-07-27 14:14:17 +03:00
الأصل 5419a51265
التزام 23a5119c9d
25 ملفات معدلة مع 34 إضافات و193 حذوفات

عرض الملف

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
LOG_FILE="/Users/mac/a1/monitor/monitor.log"
# Ensure log file exists
mkdir -p "$(dirname "$LOG_FILE")"
: > "$LOG_FILE"
while true; do
TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
RESPONSE=$(curl -s -o /dev/null -w "%{http_code} %{time_total}" http://localhost:8080/health)
echo "$TIMESTAMP $RESPONSE" >> "$LOG_FILE"
sleep 30
done