EsApi.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
EsApi.go
@@ -622,9 +622,9 @@ return total,nil } //实时报警任务比率 func RealTimeAlarmTaskRate(serverIp string, serverPort string) (sources []map[string]interface{},err error){ func RealTimeAlarmTaskRate(serverIp string, serverPort string, indexName string) (sources []map[string]interface{},err error){ url := "http://" + serverIp + ":" + serverPort + "/videopersons,personaction/_search" "/"+indexName+"/_search" DSLJson := `{ "size":0, "query":{