|
@@ -117,6 +117,20 @@ func postRefreshEdbData(param map[string]interface{}, urlStr string) (resp *mode
|
|
|
return resp, nil
|
|
|
}
|
|
|
|
|
|
+// SetEdbSourceStat 指标终端更新情况定时汇总
|
|
|
+func SetEdbSourceStat() (resp *models.BaseResponse, err error) {
|
|
|
+ postUrl := utils.EDB_LIB_URL + "edb_stat/source_update"
|
|
|
+ result, err := HttpPost(postUrl, "", "application/json")
|
|
|
+ if err != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ err = json.Unmarshal(result, &resp)
|
|
|
+ if err != nil {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ return resp, nil
|
|
|
+}
|
|
|
+
|
|
|
func HttpPost(url, postData string, params ...string) ([]byte, error) {
|
|
|
body := ioutil.NopCloser(strings.NewReader(postData))
|
|
|
client := &http.Client{}
|