yyqdbngt opened a new pull request, #3905:
URL: https://github.com/apache/rocketmq-dashboard/pull/3905

   ### Motivation
   
   The alert notification template tests covered unknown-placeholder retention, 
the default format, and value-injected syntax, but left ratio scaling, 
non-ratio values, instance/time/level rendering, and template trimming 
unasserted. This PR grows the suite from 3 to 7 cases.
   
   ### Changes
   
   - Ratio metrics with a `%` threshold unit scale the current value into a 
percent (0.754 → `75.4`).
   - Non-ratio metrics keep the raw current value.
   - `${level}`, `${instanceId}`, and `${time}` render, and a null rule leaves 
`${ruleName}`, `${metric}`, and `${threshold}` blank.
   - Whitespace around a configured template is trimmed before rendering.
   
   ### Verification
   
   - `mvn -B test -Dtest=AlertNotificationTemplateTest`: 7/7 passed, BUILD 
SUCCESS


-- 
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]

Reply via email to