Skip to content

feat: 支持配置运维健康评分阈值#2201

Open
Clarence12138 wants to merge 3 commits intoWei-Shaw:mainfrom
Clarence12138:feat/configurable-ops-health-score-thresholds
Open

feat: 支持配置运维健康评分阈值#2201
Clarence12138 wants to merge 3 commits intoWei-Shaw:mainfrom
Clarence12138:feat/configurable-ops-health-score-thresholds

Conversation

@Clarence12138
Copy link
Copy Markdown

变更说明

  • ops_metric_thresholds 增加业务健康评分专用阈值:错误率满分/零分点、TTFT P99 满分/零分点
  • 后端健康分计算改为读取配置,默认值保持现有硬编码行为不变
  • 前端两个运维阈值设置入口补齐新增字段、默认值和校验文案
  • 旧配置缺失新增字段时会自动补默认值,避免升级后健康分突变

验证

  • ./node_modules/.bin/vue-tsc --noEmit
  • ./node_modules/.bin/vitest run src/views/admin/ops src/components/admin/monitor src/components/common/__tests__ --passWithNoTests

说明:当前本地环境没有可用的 go/gofmt 工具链,后端单测未能在本机执行;已补充对应 unit test 用例。

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 5, 2026

All contributors have signed the CLA. ✅
Posted by the CLA Assistant Lite bot.

@Clarence12138
Copy link
Copy Markdown
Author

Clarence12138 commented May 5, 2026 via email

@Clarence12138
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant