...
|
...
|
@@ -8,6 +8,8 @@ import com.ui.http.HttpRestClient; |
|
|
import com.ui.model.BaseResponse;
|
|
|
import com.ui.model.MonitAlarmInfo;
|
|
|
import com.ui.model.WebHooksReleaseBO;
|
|
|
import com.ui.model.alarm.CommonAlarmData;
|
|
|
import com.ui.model.alarm.CommonData;
|
|
|
import org.apache.commons.io.IOUtils;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.apache.commons.lang.math.NumberUtils;
|
...
|
...
|
@@ -39,6 +41,17 @@ public class OuterIntfCtrl { |
|
|
private HttpRestClient httpClient;
|
|
|
|
|
|
/**
|
|
|
* 对外接口,通用指标上报
|
|
|
*/
|
|
|
@RequestMapping("/commonAlarmDataUpLoad")
|
|
|
@ResponseBody
|
|
|
public void commonAlarmDataUpLoad(@RequestBody CommonData<CommonAlarmData> data){
|
|
|
BaseResponse baseResponse=httpClient.defaultPost("/commonAlarmData/upLoadData",data,BaseResponse.class);
|
|
|
System.out.println(baseResponse);
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 对外接口,提供报警
|
|
|
* @param info
|
|
|
* @return
|
...
|
...
|
|