类 WebApiPerfMonitor
- java.lang.Object
-
- tech.testnx.cah.common.monitors.WebApiPerfMonitor
-
public class WebApiPerfMonitor extends Object
- 作者:
- Yun
-
-
字段概要
字段 修饰符和类型 字段 说明 static WebApiPerfMonitorINSTANCE
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddWebApiPerfRowData(String httpMethod, String httpPath, boolean isSuccessful, int httpResponseStatus, long httpResponseTime)List<WebApiPerf>getPerfDataStore()Get Perf Data StorebooleanisEnable()Monitoring only if enable = trueWebApiPerfMonitorsetEnable(boolean enable)Monitoring only if enable = true
-
-
-
字段详细资料
-
INSTANCE
public static final WebApiPerfMonitor INSTANCE
-
-
方法详细资料
-
addWebApiPerfRowData
public void addWebApiPerfRowData(String httpMethod, String httpPath, boolean isSuccessful, int httpResponseStatus, long httpResponseTime)
- 参数:
httpMethod-httpPath-isSuccessful-httpResponseStatus-httpResponseTime- (millisecond)
-
isEnable
public boolean isEnable()
Monitoring only if enable = true
-
setEnable
public WebApiPerfMonitor setEnable(boolean enable)
Monitoring only if enable = true
-
getPerfDataStore
public List<WebApiPerf> getPerfDataStore()
Get Perf Data Store
-
-