@daocloud-proto/mcamel-rabbitmq 0.22.0-rc1-2 → 0.23.0-rc1-4
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/cluster.pb.ts +47 -1
- package/common.pb.ts +1 -0
- package/metric.pb.ts +2 -1
- package/package.json +1 -1
- package/rabbitmq.pb.ts +1 -0
package/cluster.pb.ts
CHANGED
|
@@ -66,11 +66,37 @@ export enum ClusterItemNetworkMode {
|
|
|
66
66
|
Calico = "Calico",
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
+
export enum ClusterSettingPluginPluginName {
|
|
70
|
+
PLUGIN_NAME_UNSPECIFIED = "PLUGIN_NAME_UNSPECIFIED",
|
|
71
|
+
HPA = "HPA",
|
|
72
|
+
Insight = "Insight",
|
|
73
|
+
GPU = "GPU",
|
|
74
|
+
METALLB = "METALLB",
|
|
75
|
+
Spiderpool = "Spiderpool",
|
|
76
|
+
CustomMetrics = "CustomMetrics",
|
|
77
|
+
CronHPA = "CronHPA",
|
|
78
|
+
VPA = "VPA",
|
|
79
|
+
Hwameistor = "Hwameistor",
|
|
80
|
+
Flannel = "Flannel",
|
|
81
|
+
KubeOvn = "KubeOvn",
|
|
82
|
+
OLM = "OLM",
|
|
83
|
+
EgressGateway = "EgressGateway",
|
|
84
|
+
}
|
|
85
|
+
|
|
69
86
|
export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
70
87
|
NotInstall = "NotInstall",
|
|
71
88
|
Install = "Install",
|
|
72
89
|
}
|
|
73
90
|
|
|
91
|
+
export type GetClusterReq = {
|
|
92
|
+
workspaceId?: number
|
|
93
|
+
name?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type GetClusterResp = {
|
|
97
|
+
cluster?: ClusterItem
|
|
98
|
+
}
|
|
99
|
+
|
|
74
100
|
export type InstallFileReq = {
|
|
75
101
|
cluster?: string
|
|
76
102
|
path?: string
|
|
@@ -166,6 +192,7 @@ export type GetAllEventListReq = {
|
|
|
166
192
|
name?: string
|
|
167
193
|
eventType?: EventType
|
|
168
194
|
kindName?: string
|
|
195
|
+
workspaceId?: number
|
|
169
196
|
}
|
|
170
197
|
|
|
171
198
|
export type GetAllEventListRespItemsSource = {
|
|
@@ -355,6 +382,8 @@ export type ClusterItemMetadata = {
|
|
|
355
382
|
|
|
356
383
|
export type ClusterItemStatus = {
|
|
357
384
|
networkMode?: ClusterItemNetworkMode[]
|
|
385
|
+
setting?: ClusterSetting
|
|
386
|
+
clusterStatus?: CommonCommon.ClusterStatus
|
|
358
387
|
}
|
|
359
388
|
|
|
360
389
|
export type ClusterItem = {
|
|
@@ -362,6 +391,20 @@ export type ClusterItem = {
|
|
|
362
391
|
status?: ClusterItemStatus
|
|
363
392
|
}
|
|
364
393
|
|
|
394
|
+
export type ClusterSettingPlugin = {
|
|
395
|
+
name?: ClusterSettingPluginPluginName
|
|
396
|
+
enabled?: boolean
|
|
397
|
+
intelligentDetection?: boolean
|
|
398
|
+
externalAddress?: string
|
|
399
|
+
setting?: string
|
|
400
|
+
healthy?: boolean
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export type ClusterSetting = {
|
|
404
|
+
plugins?: ClusterSettingPlugin[]
|
|
405
|
+
network?: ClusterSettingPlugin[]
|
|
406
|
+
}
|
|
407
|
+
|
|
365
408
|
export type GetClusterNamespaceListReq = {
|
|
366
409
|
workspaceId?: number
|
|
367
410
|
cluster?: string
|
|
@@ -416,6 +459,9 @@ export class Cluster {
|
|
|
416
459
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
417
460
|
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/rabbitmq/v1alpha2/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
418
461
|
}
|
|
462
|
+
static GetCluster(req: GetClusterReq, initReq?: fm.InitReq): Promise<GetClusterResp> {
|
|
463
|
+
return fm.fetchReq<GetClusterReq, GetClusterResp>(`/apis/mcamel.io/rabbitmq/v1alpha2/${req["workspaceId"]}/clusters/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
|
|
464
|
+
}
|
|
419
465
|
static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
|
|
420
466
|
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/rabbitmq/v1alpha2/${req["workspaceId"]}/hostnetwork-ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
421
467
|
}
|
|
@@ -441,7 +487,7 @@ export class Cluster {
|
|
|
441
487
|
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/rabbitmq/v1alpha2/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
442
488
|
}
|
|
443
489
|
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
444
|
-
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/rabbitmq/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
490
|
+
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/rabbitmq/v1alpha2/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
445
491
|
}
|
|
446
492
|
static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
|
|
447
493
|
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/rabbitmq/v1alpha2/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
package/common.pb.ts
CHANGED
package/metric.pb.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type GetAlertsListReq = {
|
|
|
22
22
|
cluster?: string
|
|
23
23
|
namespace?: string
|
|
24
24
|
name?: string
|
|
25
|
+
workspaceId?: number
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
export type GetAlertsListResp = {
|
|
@@ -31,6 +32,6 @@ export type GetAlertsListResp = {
|
|
|
31
32
|
|
|
32
33
|
export class Metric {
|
|
33
34
|
static GetAlertsList(req: GetAlertsListReq, initReq?: fm.InitReq): Promise<GetAlertsListResp> {
|
|
34
|
-
return fm.fetchReq<GetAlertsListReq, GetAlertsListResp>(`/apis/mcamel.io/rabbitmq/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/alerts?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
35
|
+
return fm.fetchReq<GetAlertsListReq, GetAlertsListResp>(`/apis/mcamel.io/rabbitmq/v1alpha2/${req["workspaceId"]}/${req["cluster"]}/${req["namespace"]}/${req["name"]}/alerts?${fm.renderURLSearchParams(req, ["workspaceId", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
35
36
|
}
|
|
36
37
|
}
|
package/package.json
CHANGED