> 10) {
$data['warnings'][] = sprintf("错误率过高: %.2f%%", $errorRate);
$data['status'✓' : ($data['status'] === 'warning' ?(int)$matches[1] : 0;
// 判断健康状态
$status = 'healthy';
$warnings = [];错误率 > 10%
状态变化:
- 正常:status = 'healthy'
- 触发告警:status = 'warning'
---
performHealthCheck(">
<div class="status-indicator">
<div class="status-dot" id="statusDot