update elastic domain

This commit is contained in:
medcl 2021-09-26 13:15:53 +08:00
parent 01a3e99102
commit abf140b41b
3 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,6 @@ import (
"fmt" "fmt"
httprouter "infini.sh/framework/core/api/router" httprouter "infini.sh/framework/core/api/router"
"infini.sh/framework/core/elastic" "infini.sh/framework/core/elastic"
"infini.sh/framework/core/elastic/model"
"infini.sh/framework/core/orm" "infini.sh/framework/core/orm"
"infini.sh/framework/core/util" "infini.sh/framework/core/util"
"infini.sh/search-center/model/alerting" "infini.sh/search-center/model/alerting"
@ -315,7 +314,7 @@ func DeleteDestination(w http.ResponseWriter, req *http.Request, ps httprouter.P
} }
func getDefaultConfig() *model.ElasticsearchConfig{ func getDefaultConfig() *elastic.ElasticsearchConfig {
return elastic.GetConfig("default") return elastic.GetConfig("default")
} }

View File

@ -1,7 +1,7 @@
package alerting package alerting
import ( import (
"src/github.com/buger/jsonparser" "github.com/buger/jsonparser"
"strconv" "strconv"
"strings" "strings"
) )

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"infini.sh/framework/core/conditions" "infini.sh/framework/core/conditions"
"infini.sh/framework/core/util" "infini.sh/framework/core/util"
"src/github.com/elastic/go-ucfg/yaml" "github.com/elastic/go-ucfg/yaml"
"testing" "testing"
) )