diff --git a/service/alerting/destination.go b/service/alerting/destination.go index 74c8d0b0..08040a7d 100644 --- a/service/alerting/destination.go +++ b/service/alerting/destination.go @@ -5,7 +5,6 @@ import ( "fmt" httprouter "infini.sh/framework/core/api/router" "infini.sh/framework/core/elastic" - "infini.sh/framework/core/elastic/model" "infini.sh/framework/core/orm" "infini.sh/framework/core/util" "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") } diff --git a/service/alerting/event.go b/service/alerting/event.go index cfcac62c..e0386f50 100644 --- a/service/alerting/event.go +++ b/service/alerting/event.go @@ -1,7 +1,7 @@ package alerting import ( - "src/github.com/buger/jsonparser" + "github.com/buger/jsonparser" "strconv" "strings" ) diff --git a/service/alerting/schedule_test.go b/service/alerting/schedule_test.go index 2a9dd4c1..6e3e7751 100644 --- a/service/alerting/schedule_test.go +++ b/service/alerting/schedule_test.go @@ -5,7 +5,7 @@ import ( "fmt" "infini.sh/framework/core/conditions" "infini.sh/framework/core/util" - "src/github.com/elastic/go-ucfg/yaml" + "github.com/elastic/go-ucfg/yaml" "testing" )