- 稳定性
- 稳定
- 作用域
- 全局
- 边界
- packages/platform/health
healthpackages/platform/health
基础层
运行时栈5 layers
- edge
- gateway
- services
- platform当前层
- storage
可用性
99.50%
解析后的配置health.config
可用性
99.50%
+0.03%
p99 延迟
25 ms
-4%
活跃连接
3,897
活跃租户
161
+6%
packages/platform/healthplatform · 最低共享层 · 与应用零耦合
使用方式health.ts
typescripthealth.ts
1import { healthCheck } from "@nebutra/health";
2
3export const GET = healthCheck({
4 checks: {
5 db: () => prisma.$queryRaw`SELECT 1`,
6 redis: () => redis.ping(),
7 queue: () => queue.ping(),
8 },
9});