I am just trying to get the latency count of API by taking the AVG responsetime of the API and using the avg as threshold, for example:
api totalCount AvgRespTime latencyCount
XXX1 250 5sec it should be the count of the API XXX1 which exceeds the AvgRespTime of XXX1
XXX2 300 8sec it should be the count of the API XXX2 which exceeds the AvgRespTime of XXX2.
I am trying the stats command as:
| stats count(Api) as totalcount avg(time) as AvgRespTime count(eval(time>avg(time))) by latencycount by Api
Please help me how to get the latencycount by each Api using stats.
... View more