+7
-6
.github/workflows/deploy.yaml
+7
-6
.github/workflows/deploy.yaml
···
46
46
BODY=$(echo "$RESPONSE" | sed '$d')
47
47
48
48
if [ "$HTTP_CODE" = "200" ]; then
49
-
echo "✅ Service is healthy!"
50
-
echo "$BODY" | jq '.'
49
+
STATUS=$(echo "$BODY" | jq -r '.status // "unknown"')
51
50
52
-
# Check if status is actually healthy
53
-
STATUS=$(echo "$BODY" | jq -r '.status // "unknown"')
54
51
if [ "$STATUS" = "healthy" ]; then
55
-
echo "✅ Deployment successful - service is healthy"
52
+
echo "✅ Service is healthy"
53
+
echo "$BODY" | jq '.'
56
54
exit 0
57
55
elif [ "$STATUS" = "degraded" ]; then
58
56
echo "⚠️ Service is degraded but responding"
59
-
echo "$BODY" | jq '.checks'
57
+
echo "$BODY" | jq '.'
60
58
exit 0
59
+
else
60
+
echo "⚠️ Service returned HTTP 200 but status is: $STATUS"
61
+
echo "$BODY" | jq '.'
61
62
fi
62
63
fi
63
64
+11
src/routes/api-routes.ts
+11
src/routes/api-routes.ts
···
79
79
heapUsed: { type: "number", description: "MB" },
80
80
heapTotal: { type: "number", description: "MB" },
81
81
percentage: { type: "number" },
82
+
details: {
83
+
type: "object",
84
+
properties: {
85
+
heapUsedMiB: { type: "number", description: "Precise heap used in MiB" },
86
+
heapTotalMiB: { type: "number", description: "Precise heap total in MiB" },
87
+
heapPercent: { type: "number", description: "Precise heap percentage" },
88
+
rssMiB: { type: "number", description: "Resident Set Size in MiB" },
89
+
externalMiB: { type: "number", description: "External memory in MiB" },
90
+
arrayBuffersMiB: { type: "number", description: "Array buffers in MiB" },
91
+
},
92
+
},
82
93
},
83
94
},
84
95
},