...
|
...
|
@@ -3,6 +3,7 @@ package com.yoho.opsmanager.common.util; |
|
|
import com.fasterxml.jackson.core.type.TypeReference;
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.yoho.opsmanager.common.model.ClientReport.ClientReportErrorModel;
|
|
|
import net.sf.json.JSON;
|
|
|
import net.sf.json.JSONArray;
|
|
|
import net.sf.json.JSONObject;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
...
|
...
|
@@ -218,22 +219,23 @@ public class ClientReportUtil { |
|
|
|
|
|
} else {
|
|
|
clientReportErrorModel.setEi(String.valueOf(paramMap.get("ei")));
|
|
|
for (String key : paramMap.keySet()) {
|
|
|
switch (key) {
|
|
|
case "body":
|
|
|
String bodyvalue = String.valueOf(paramMap.get(key));
|
|
|
clientReportErrorModel.setBody(bodyvalue);
|
|
|
break;
|
|
|
case "ei":
|
|
|
String eivalue = String.valueOf(paramMap.get(key));
|
|
|
clientReportErrorModel.setEi(eivalue);
|
|
|
break;
|
|
|
case "response":
|
|
|
String response = String.valueOf(paramMap.get(key));
|
|
|
clientReportErrorModel.setResponse(response);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
clientReportErrorModel.setParam(JSONObject.fromObject(paramMap).toString());
|
|
|
// for (String key : paramMap.keySet()) {
|
|
|
// switch (key) {
|
|
|
// case "body":
|
|
|
// String bodyvalue = String.valueOf(paramMap.get(key));
|
|
|
// clientReportErrorModel.setBody(bodyvalue);
|
|
|
// break;
|
|
|
// case "ei":
|
|
|
// String eivalue = String.valueOf(paramMap.get(key));
|
|
|
// clientReportErrorModel.setEi(eivalue);
|
|
|
// break;
|
|
|
// case "response":
|
|
|
// String response = String.valueOf(paramMap.get(key));
|
|
|
// clientReportErrorModel.setResponse(response);
|
|
|
// break;
|
|
|
// }
|
|
|
// }
|
|
|
clientReportErrorModel.setExceptionType(base64Encode(et));
|
|
|
}
|
|
|
list.add(clientReportErrorModel);
|
...
|
...
|
|