yyqdbngt opened a new pull request, #3495: URL: https://github.com/apache/rocketmq-dashboard/pull/3495
### Summary `alertRulePayload` maps legacy Chinese metric/duration labels to backend keys and attaches threshold units. It had no tests. ### Changes - `normalizeMetric` maps the legacy labels and passes unknown values through - `normalizeDuration` maps Chinese durations to PromQL form - `attachThresholdUnit` normalizes both and adds the unit for known metrics, keeping it empty otherwise ### Testing `vitest run src/pages/ops/alertRulePayload.test.ts` passes: 5 tests, 0 failures (first coverage for this module). `tsc --noEmit` and `eslint` are clean. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
