diff --git a/service/alerting/destination.go b/service/alerting/destination.go index 7639e31c..9adc2ba5 100644 --- a/service/alerting/destination.go +++ b/service/alerting/destination.go @@ -5,6 +5,7 @@ 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" @@ -318,7 +319,7 @@ func DeleteDestination(w http.ResponseWriter, req *http.Request, ps httprouter.P } -func getDefaultConfig() *elastic.ElasticsearchConfig{ +func getDefaultConfig() *model.ElasticsearchConfig{ return elastic.GetConfig("default") }