Skip to content

<fix>[zwatch]: VPC Router CPU alarm use external monitoring#3292

Open
zstack-robot-2 wants to merge 1 commit into5.5.6from
sync/lin.ma/ZSTAC-81171@@2
Open

<fix>[zwatch]: VPC Router CPU alarm use external monitoring#3292
zstack-robot-2 wants to merge 1 commit into5.5.6from
sync/lin.ma/ZSTAC-81171@@2

Conversation

@zstack-robot-2
Copy link
Collaborator

Resolves: ZSTAC-81171

Change-Id: I$(uuidgen | tr -d '-' | head -c 40 | tr '[:upper:]' '[:lower:]')

sync from gitlab !9113

Resolves: ZSTAC-81171

Change-Id: I$(uuidgen | tr -d '-' | head -c 40 | tr '[:upper:]' '[:lower:]')
@coderabbitai
Copy link

coderabbitai bot commented Feb 4, 2026

概览

本次更改包含数据库升级脚本,对特定模板UUID及其关联告警的指标名称进行两个UPDATE操作。将VRouterCPUAverageUsedUtilization更改为CPUUsedUtilization,涉及ActiveAlarmTemplateVO和AlarmVO两个表的更新。

变更内容

队列 / 文件 摘要
数据库schema升级
conf/db/upgrade/V5.5.12__schema.sql
新增两条UPDATE语句,将指定模板UUID的ActiveAlarmTemplateVO表中的metricName字段从VRouterCPUAverageUsedUtilization更新为CPUUsedUtilization,并通过ActiveAlarmVO关联关系级联更新相应AlarmVO表中的metricName字段。

代码审查工作量估算

🎯 1 (轻微) | ⏱️ ~3 分钟

诗句

🐰 SQL脚本更新指标名,
两张表格齐改善,
CPU利用率化繁简,
数据库的小优化,
效能提升在眼前。

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed 标题遵循 [scope]: 格式且长度59字符,符合72字符以内的要求。标题清晰描述了主要变更:将VPC路由器CPU告警改为使用外部监控。
Description check ✅ Passed 描述信息与代码变更相关联,提及了JIRA问题号ZSTAC-81171,与SQL更新修改metricName的目的保持一致。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch sync/lin.ma/ZSTAC-81171@@2

Comment @coderabbitai help to get the list of available commands and usage tips.

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