sunty
2019-09-28 ec7a13fdca41ebe7d3f8e4968841d053975bf05e
EsApi.go
@@ -6,6 +6,8 @@
    "fmt"
    "strconv"
    "strings"
   "sync"
   "time"
    "basic.com/pubsub/protomsg.git"
        )
@@ -622,9 +624,9 @@
   return total,nil
}
//实时报警任务比率
func RealTimeAlarmTaskRate(serverIp string, serverPort string) (sources map[string]int,err error){
func RealTimeAlarmTaskRate(serverIp string, serverPort string,indexName string) (sources map[string]int,err error){
   url := "http://" + serverIp + ":" + serverPort +
      "/videopersons,personaction/_search"
      "/"+indexName+"/_search"
   DSLJson := `{
   "size":0,
   "query":{