平台管理 - 接口插件 - 新增HTTP接口:

/plugin/api/report/refresh

importPackage(java.lang);
importPackage(org.apache.commons.lang3.time);
importPackage(org.apache.commons.lang3);
importPackage(com.alibaba.fastjson);

var reportService = beanService.getBean("reportServiceImpl");
var reportId = request.getParameter("reportId");
try{
    reportService.refreshMetadata(reportId);
    result.setSuccess(true);
}catch(e){
    result.setSuccess(false);
    result.setMessage(e.getMessage());
}

http://x.x.x.x:端口/plugin/api/report/refresh.do?reportId=xxxxxx