跳至主要內容
kitlocal.dev

健康檢查建構器

本機執行

100% 在你的瀏覽器中處理。輸入與輸出絕不會離開你的裝置。

產生用於應用程式監控的 /health 端點範本。

健康檢查參數
依賴服務整合
模擬 /health JSON 回應
{
  "status": "OK",
  "service": "KitLocal Core Service",
  "version": "1.0.0",
  "timestamp": "1970-01-01T00:00:00.000Z",
  "uptimeSeconds": 3600,
  "dependencies": {
    "database": {
      "status": "up",
      "latencyMs": 12
    },
    "cache_redis": {
      "status": "up",
      "latencyMs": 2
    }
  },
  "system": {
    "cpuPercent": 45,
    "memoryUsedMb": 256
  }
}
相容於 Kubernetes readiness/liveness HTTP 探針(HTTP 200 OK 與 503 Service Unavailable)。