mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-01 03:07:51 +08:00
[ADD] "/v2/events" to region_api_class
This commit is contained in:
parent
8abd08ef89
commit
6c342f332a
10
api/db/db.go
10
api/db/db.go
@ -22,18 +22,17 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"time"
|
"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/cmd/api/option"
|
||||||
"github.com/goodrain/rainbond/db"
|
"github.com/goodrain/rainbond/db"
|
||||||
"github.com/goodrain/rainbond/db/config"
|
"github.com/goodrain/rainbond/db/config"
|
||||||
|
dbModel "github.com/goodrain/rainbond/db/model"
|
||||||
"github.com/goodrain/rainbond/event"
|
"github.com/goodrain/rainbond/event"
|
||||||
"github.com/goodrain/rainbond/mq/api/grpc/pb"
|
"github.com/goodrain/rainbond/mq/api/grpc/pb"
|
||||||
"github.com/goodrain/rainbond/mq/client"
|
"github.com/goodrain/rainbond/mq/client"
|
||||||
"github.com/goodrain/rainbond/worker/discover/model"
|
"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"
|
"github.com/jinzhu/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -176,6 +175,7 @@ func dbInit() error {
|
|||||||
"/v2/app": "server_source",
|
"/v2/app": "server_source",
|
||||||
"/v2/port": "server_source",
|
"/v2/port": "server_source",
|
||||||
"/api/v1": "server_source",
|
"/api/v1": "server_source",
|
||||||
|
"/v2/events": "server_source",
|
||||||
"/v2/nodes": "node_manager",
|
"/v2/nodes": "node_manager",
|
||||||
"/v2/job": "node_manager",
|
"/v2/job": "node_manager",
|
||||||
"/v2/tasks": "node_manager",
|
"/v2/tasks": "node_manager",
|
||||||
|
Loading…
Reference in New Issue
Block a user