|
@@ -125,9 +125,11 @@ public class ApiStatusEndpoint {
|
|
MeterInfo apiErrMeterInfo = apiErrMeterInfoMap.get(mapping);
|
|
MeterInfo apiErrMeterInfo = apiErrMeterInfoMap.get(mapping);
|
|
if (null == apiErrMeterInfo) {
|
|
if (null == apiErrMeterInfo) {
|
|
apiStatusInfo.setErrorCount(0L);
|
|
apiStatusInfo.setErrorCount(0L);
|
|
|
|
+ apiStatusInfo.setErrorMeanRate(0L);
|
|
apiStatusInfo.setErrorPercent(0D);
|
|
apiStatusInfo.setErrorPercent(0D);
|
|
} else {
|
|
} else {
|
|
apiStatusInfo.setErrorCount(apiErrMeterInfo.getCount());
|
|
apiStatusInfo.setErrorCount(apiErrMeterInfo.getCount());
|
|
|
|
+ apiStatusInfo.setErrorMeanRate(apiErrMeterInfo.getMeanRate());
|
|
apiStatusInfo.setErrorPercent(
|
|
apiStatusInfo.setErrorPercent(
|
|
getPercent(apiErrMeterInfo.getMeanRate(), cur.getMeanRate()));
|
|
getPercent(apiErrMeterInfo.getMeanRate(), cur.getMeanRate()));
|
|
}
|
|
}
|