Add all assessment files
هذا الالتزام موجود في:
13
q1-deploy-monitor/health-check.sh
Normal file
13
q1-deploy-monitor/health-check.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
URL="http://localhost:5000/health"
|
||||
|
||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$URL")
|
||||
|
||||
if [ "$STATUS" -eq 200 ]; then
|
||||
echo "Healthy"
|
||||
exit 0
|
||||
else
|
||||
echo "Unhealthy"
|
||||
exit 1
|
||||
fi
|
||||
المرجع في مشكلة جديدة
حظر مستخدم