signoz/frontend/src/utils/services.ts
Yunus M 2e0fdbb498
feat: show rate limit warning in services page when total RPS > 100 (#4266)
* feat: show rate limit warning in services page when total rps > 100

* feat: update message

* feat: rate limit message should be shown only to cloud users on trail

---------

Co-authored-by: Vishal Sharma <makeavish786@gmail.com>
2023-12-22 00:51:37 +05:30

5 lines
206 B
TypeScript

import { ServicesList } from 'types/api/metrics/getService';
export const getTotalRPS = (services: ServicesList[]): number =>
services.reduce((accumulator, service) => accumulator + service.callRate, 0);