mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-15 19:01:28 +08:00

* 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>
5 lines
206 B
TypeScript
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);
|