@daocloud-proto/mcamel-rabbitmq 0.4.0-12 → 0.4.0-15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rabbitmq.pb.ts +19 -0
package/package.json
CHANGED
package/rabbitmq.pb.ts
CHANGED
|
@@ -17,6 +17,11 @@ export enum GetRabbitMqParamRespSelectSelectType {
|
|
|
17
17
|
Multiple = "Multiple",
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
export enum GetRabbitMqGrafanaAddrReqGrafanaName {
|
|
21
|
+
Cluster = "Cluster",
|
|
22
|
+
Node = "Node",
|
|
23
|
+
}
|
|
24
|
+
|
|
20
25
|
export type GetRabbitMqListReq = {
|
|
21
26
|
page?: number
|
|
22
27
|
size?: number
|
|
@@ -145,6 +150,17 @@ export type GetRabbitMqNodeListResp = {
|
|
|
145
150
|
data?: GetRabbitMqNodeListRespData[]
|
|
146
151
|
}
|
|
147
152
|
|
|
153
|
+
export type GetRabbitMqGrafanaAddrReq = {
|
|
154
|
+
cluster?: string
|
|
155
|
+
namespace?: string
|
|
156
|
+
name?: string
|
|
157
|
+
grafanaName?: GetRabbitMqGrafanaAddrReqGrafanaName
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type GetRabbitMqGrafanaAddrResp = {
|
|
161
|
+
data?: string
|
|
162
|
+
}
|
|
163
|
+
|
|
148
164
|
export type GetRabbitMqReq = {
|
|
149
165
|
cluster?: string
|
|
150
166
|
namespace?: string
|
|
@@ -306,6 +322,9 @@ export class RabbitMq {
|
|
|
306
322
|
static GetRabbitMqNodeList(req: GetRabbitMqNodeListReq, initReq?: fm.InitReq): Promise<GetRabbitMqNodeListResp> {
|
|
307
323
|
return fm.fetchReq<GetRabbitMqNodeListReq, GetRabbitMqNodeListResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/nodes/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
308
324
|
}
|
|
325
|
+
static GetRabbitMqGrafanaAddr(req: GetRabbitMqGrafanaAddrReq, initReq?: fm.InitReq): Promise<GetRabbitMqGrafanaAddrResp> {
|
|
326
|
+
return fm.fetchReq<GetRabbitMqGrafanaAddrReq, GetRabbitMqGrafanaAddrResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/grafana/${req["cluster"]}/${req["namespace"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
327
|
+
}
|
|
309
328
|
static CreateRabbitMq(req: CreateRabbitMqReq, initReq?: fm.InitReq): Promise<CreateRabbitMqResp> {
|
|
310
329
|
return fm.fetchReq<CreateRabbitMqReq, CreateRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
311
330
|
}
|