tju-yxq opened a new issue, #3556:
URL: https://github.com/apache/rocketmq-dashboard/issues/3556

   ## Problem\n\nThe alert rule page shows three counters in its header:\n\n- 
Total Rules\n- Enabled on page\n- Triggered in 24h on page\n\nTotal Rules comes 
from the backend page result and reflects the full filtered result set. The 
other two values are computed from the rows loaded for the current page. When a 
filter returns more rows than the current page size, the counters describe 
different scopes and can make alert coverage or recent activity look different 
from reality.\n\n## Current behavior\n\nweb/src/pages/ops/alerts.tsx computes 
both values from the current page only:\n\n`  s\nconst enabledCount = 
rules.filter((r) => r.enabled).length;\nconst triggered24h = rules.filter(/* 
lastTriggered within 24h */).length;\n`\n\nwhile   otalRules is the backend 
total for the same filter.\n\n## Expected behavior\n\n- All counters should 
describe the same scope.\n- The backend should return a summary for the current 
filter with total, enabled, and recently triggered counts.\n- The dashboard
  should render the summary values instead of deriving two counters from the 
current page.\n\n## Why this matters\n\nOperators use these counters to assess 
alert coverage and recent activity. Mixing result-set-wide and page-local 
values is misleading when the rule list spans multiple pages.


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