update elastic domain
This commit is contained in:
parent
01a3e99102
commit
abf140b41b
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package alerting
|
package alerting
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"src/github.com/buger/jsonparser"
|
"github.com/buger/jsonparser"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue