From 6c342f332adf18447719bfb5b586e4b14962258f Mon Sep 17 00:00:00 2001 From: GLYASAI Date: Wed, 4 Sep 2019 14:00:52 +0800 Subject: [PATCH] [ADD] "/v2/events" to region_api_class --- api/db/db.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/db/db.go b/api/db/db.go index 985b1fcf9..c04b35dfe 100644 --- a/api/db/db.go +++ b/api/db/db.go @@ -22,18 +22,17 @@ import ( "encoding/json" "time" + "github.com/Sirupsen/logrus" + tsdbClient "github.com/bluebreezecf/opentsdb-goclient/client" + tsdbConfig "github.com/bluebreezecf/opentsdb-goclient/config" "github.com/goodrain/rainbond/cmd/api/option" "github.com/goodrain/rainbond/db" "github.com/goodrain/rainbond/db/config" + dbModel "github.com/goodrain/rainbond/db/model" "github.com/goodrain/rainbond/event" "github.com/goodrain/rainbond/mq/api/grpc/pb" "github.com/goodrain/rainbond/mq/client" "github.com/goodrain/rainbond/worker/discover/model" - - "github.com/Sirupsen/logrus" - tsdbClient "github.com/bluebreezecf/opentsdb-goclient/client" - tsdbConfig "github.com/bluebreezecf/opentsdb-goclient/config" - dbModel "github.com/goodrain/rainbond/db/model" "github.com/jinzhu/gorm" ) @@ -176,6 +175,7 @@ func dbInit() error { "/v2/app": "server_source", "/v2/port": "server_source", "/api/v1": "server_source", + "/v2/events": "server_source", "/v2/nodes": "node_manager", "/v2/job": "node_manager", "/v2/tasks": "node_manager",