Updating Scripts and CI Workflow
نجحت جميع الفحوصات
CI - Fruit API / build-and-test (push) Successful in 41s
نجحت جميع الفحوصات
CI - Fruit API / build-and-test (push) Successful in 41s
هذا الالتزام موجود في:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/bash
|
||||
LOG_FILE="fruit_api.log"
|
||||
# ALERT_URL="https://gahymah.systems.com"
|
||||
ALERT_URL=" " # Here Any Endpoint
|
||||
|
||||
tail -Fn0 "$LOG_FILE" | while read line; do
|
||||
if echo "$line" | grep -qiE "STATUS:(4[0-9]{2}|5[0-9]{2})|failed|timeout|error|exception"; then
|
||||
@@ -15,7 +15,7 @@ tail -Fn0 "$LOG_FILE" | while read line; do
|
||||
{
|
||||
"error": "$line",
|
||||
"timestamp": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")",
|
||||
"message": "Error detected in Fruit API logs",
|
||||
"message": "Error detected in Ahmed Gamal's Fruit API logs",
|
||||
"server_metrics": {
|
||||
"ip": "$IP",
|
||||
"cpu_usage": "$CPU",
|
||||
|
المرجع في مشكلة جديدة
حظر مستخدم