Loading...
Loading...
Compare original and translation side by side
npm testnpm testundefinedundefinedundefinedundefined| Alert | Condition | Severity |
|---|---|---|
| API Down | 5xx errors > 10/min | P1 |
| High Latency | p99 > 5000ms | P2 |
| Rate Limited | 429 errors > 5/min | P2 |
| Auth Failures | 401/403 errors > 0 | P1 |
| 告警 | 触发条件 | 级别 |
|---|---|---|
| API服务不可用 | 5xx错误 > 10次/分钟 | P1 |
| 高延迟 | P99延迟 > 5000毫秒 | P2 |
| 请求受限 | 429错误 > 5次/分钟 | P2 |
| 认证失败 | 401/403错误 > 0 | P1 |
async function healthCheck(): Promise<{ status: string; clay: any }> {
const start = Date.now();
try {
await clayClient.ping();
return { status: 'healthy', clay: { connected: true, latencyMs: Date.now() - start } };
} catch (error) {
return { status: 'degraded', clay: { connected: false, latencyMs: Date.now() - start } };
}
}async function healthCheck(): Promise<{ status: string; clay: any }> {
const start = Date.now();
try {
await clayClient.ping();
return { status: 'healthy', clay: { connected: true, latencyMs: Date.now() - start } };
} catch (error) {
return { status: 'degraded', clay: { connected: false, latencyMs: Date.now() - start } };
}
}kubectl rollout undo deployment/clay-integration
kubectl rollout status deployment/clay-integrationkubectl rollout undo deployment/clay-integration
kubectl rollout status deployment/clay-integrationclay-upgrade-migrationclay-upgrade-migration