@daocloud-proto/mcamel-mysql 0.2.5 → 0.2.6-1
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 +17 -0
- package/mysql.pb.ts +8 -0
- package/package.json +1 -1
package/cluster.pb.ts
CHANGED
|
@@ -12,6 +12,11 @@ export enum GetWorkspaceListReqSortDir {
|
|
|
12
12
|
DESC = "DESC",
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
16
|
+
NotInstall = "NotInstall",
|
|
17
|
+
Install = "Install",
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
export type GetWorkspaceListReq = {
|
|
16
21
|
page?: number
|
|
17
22
|
pageSize?: number
|
|
@@ -49,6 +54,15 @@ export type GetClusterNamespaceListResp = {
|
|
|
49
54
|
pagination?: CommonCommon.Pagination
|
|
50
55
|
}
|
|
51
56
|
|
|
57
|
+
export type GetInsightAgentStatusReq = {
|
|
58
|
+
cluster?: string
|
|
59
|
+
mcamelType?: string
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type GetInsightAgentStatusResp = {
|
|
63
|
+
status?: GetInsightAgentStatusRespInsightAgentStatus
|
|
64
|
+
}
|
|
65
|
+
|
|
52
66
|
export class Cluster {
|
|
53
67
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
54
68
|
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
@@ -59,4 +73,7 @@ export class Cluster {
|
|
|
59
73
|
static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
|
|
60
74
|
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mysql/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
61
75
|
}
|
|
76
|
+
static GetInsightAgentStatus(req: GetInsightAgentStatusReq, initReq?: fm.InitReq): Promise<GetInsightAgentStatusResp> {
|
|
77
|
+
return fm.fetchReq<GetInsightAgentStatusReq, GetInsightAgentStatusResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/insight/status?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
78
|
+
}
|
|
62
79
|
}
|
package/mysql.pb.ts
CHANGED
|
@@ -83,6 +83,12 @@ export enum GetMysqlNodeListRespPodStatus {
|
|
|
83
83
|
Failed = "Failed",
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
export enum GetMysqlNodeListRespHealthStatus {
|
|
87
|
+
HealthStatusUnknown = "HealthStatusUnknown",
|
|
88
|
+
HealthStatusHealthy = "HealthStatusHealthy",
|
|
89
|
+
HealthStatusUnhealthy = "HealthStatusUnhealthy",
|
|
90
|
+
}
|
|
91
|
+
|
|
86
92
|
export enum GetMysqlConfRespItemsParamType {
|
|
87
93
|
conf = "conf",
|
|
88
94
|
}
|
|
@@ -441,6 +447,7 @@ export type GetMysqlNodeListRespData = {
|
|
|
441
447
|
memoryLimit?: number
|
|
442
448
|
createTimestamp?: string
|
|
443
449
|
nodeType?: string
|
|
450
|
+
healthStatus?: GetMysqlNodeListRespHealthStatus
|
|
444
451
|
}
|
|
445
452
|
|
|
446
453
|
export type GetMysqlNodeListResp = {
|
|
@@ -491,6 +498,7 @@ export type MysqlClusterItemStatus = {
|
|
|
491
498
|
webManagerAddr?: string
|
|
492
499
|
clusterIPs?: string[]
|
|
493
500
|
isAutoBackupEnabled?: boolean
|
|
501
|
+
serviceAddr?: string
|
|
494
502
|
}
|
|
495
503
|
|
|
496
504
|
export type MysqlClusterItemMetadata = {
|