健康检查构建器
生成用于应用监控的 /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 就绪/存活 HTTP 探针(HTTP 200 OK 对比 503 Service Unavailable)。