Skip to content

Commit 1bbd424

Browse files
committed
feat: splitting host metrics query
1 parent e5dbe31 commit 1bbd424

File tree

3 files changed

+137
-109
lines changed

3 files changed

+137
-109
lines changed

main.go

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import (
3131
"infini.sh/console/plugin/api/email"
3232
"infini.sh/console/plugin/audit_log"
3333
"infini.sh/framework/core/api"
34+
"infini.sh/framework/core/host"
3435
model2 "infini.sh/framework/core/model"
3536
elastic2 "infini.sh/framework/modules/elastic"
3637
_ "time/tzdata"
@@ -156,6 +157,7 @@ func main() {
156157
orm.RegisterSchemaWithIndexName(model2.Instance{}, "instance")
157158
orm.RegisterSchemaWithIndexName(api3.RemoteConfig{}, "configs")
158159
orm.RegisterSchemaWithIndexName(model.AuditLog{}, "audit-logs")
160+
orm.RegisterSchemaWithIndexName(host.HostInfo{}, "host")
159161

160162
module.Start()
161163

0 commit comments

Comments
 (0)