@daocloud-proto/mcamel-rabbitmq 0.4.0-16 → 0.4.0-23
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 +9 -6
package/package.json
CHANGED
package/rabbitmq.pb.ts
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../../v1alpha1/ts_out/api"
|
|
8
8
|
|
|
9
|
+
export enum Status {
|
|
10
|
+
Failed = "Failed",
|
|
11
|
+
Running = "Running",
|
|
12
|
+
Creating = "Creating",
|
|
13
|
+
}
|
|
14
|
+
|
|
9
15
|
export enum CreateRabbitMqReqServiceType {
|
|
10
16
|
ClusterIP = "ClusterIP",
|
|
11
17
|
NodePort = "NodePort",
|
|
@@ -132,7 +138,7 @@ export type GetRabbitMqNodeListReq = {
|
|
|
132
138
|
|
|
133
139
|
export type GetRabbitMqNodeListRespData = {
|
|
134
140
|
podName?: string
|
|
135
|
-
status?:
|
|
141
|
+
status?: Status
|
|
136
142
|
nodeName?: string
|
|
137
143
|
ip?: string
|
|
138
144
|
restart?: number
|
|
@@ -146,9 +152,6 @@ export type GetRabbitMqNodeListResp = {
|
|
|
146
152
|
}
|
|
147
153
|
|
|
148
154
|
export type GetRabbitMqGrafanaAddrReq = {
|
|
149
|
-
cluster?: string
|
|
150
|
-
namespace?: string
|
|
151
|
-
name?: string
|
|
152
155
|
}
|
|
153
156
|
|
|
154
157
|
export type GetRabbitMqGrafanaAddrResp = {
|
|
@@ -170,7 +173,7 @@ export type GetRabbitMqListResp = {
|
|
|
170
173
|
}
|
|
171
174
|
|
|
172
175
|
export type RabbitmqClusterItemExtend = {
|
|
173
|
-
|
|
176
|
+
status?: Status
|
|
174
177
|
podsAreReadyNum?: number
|
|
175
178
|
webManagerAddr?: string
|
|
176
179
|
clusterIPs?: string[]
|
|
@@ -317,7 +320,7 @@ export class RabbitMq {
|
|
|
317
320
|
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"})
|
|
318
321
|
}
|
|
319
322
|
static GetRabbitMqGrafanaAddr(req: GetRabbitMqGrafanaAddrReq, initReq?: fm.InitReq): Promise<GetRabbitMqGrafanaAddrResp> {
|
|
320
|
-
return fm.fetchReq<GetRabbitMqGrafanaAddrReq, GetRabbitMqGrafanaAddrResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/grafana
|
|
323
|
+
return fm.fetchReq<GetRabbitMqGrafanaAddrReq, GetRabbitMqGrafanaAddrResp>(`/apis/mcamel.io/v1alpha1/rabbitmq/grafana?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
321
324
|
}
|
|
322
325
|
static CreateRabbitMq(req: CreateRabbitMqReq, initReq?: fm.InitReq): Promise<CreateRabbitMqResp> {
|
|
323
326
|
return fm.fetchReq<CreateRabbitMqReq, CreateRabbitMqResp>(`/apis/mcamel.io/v1alpha1/rabbitmq`, {...initReq, method: "POST", body: JSON.stringify(req)})
|