@daocloud-proto/mcamel-postgresql 0.0.2-15 → 0.0.2-151
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 +32 -0
- package/common.pb.ts +5 -0
- package/insight.pb.ts +8 -12
- package/package.json +1 -1
- package/postgresql.pb.ts +4 -0
package/cluster.pb.ts
CHANGED
|
@@ -33,6 +33,14 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
|
33
33
|
Install = "Install",
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
export type GetAllEventKindsListResp = {
|
|
37
|
+
data?: string[]
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type GetAllEventKindsListReq = {
|
|
41
|
+
cluster?: string
|
|
42
|
+
}
|
|
43
|
+
|
|
36
44
|
export type GetAllEventListReq = {
|
|
37
45
|
page?: number
|
|
38
46
|
pageSize?: number
|
|
@@ -43,6 +51,7 @@ export type GetAllEventListReq = {
|
|
|
43
51
|
namespace?: string
|
|
44
52
|
name?: string
|
|
45
53
|
eventType?: EventType
|
|
54
|
+
kindName?: string
|
|
46
55
|
}
|
|
47
56
|
|
|
48
57
|
export type GetAllEventListRespItemsSource = {
|
|
@@ -102,6 +111,23 @@ export type GetClusterNodeLabelListResp = {
|
|
|
102
111
|
pagination?: CommonCommon.Pagination
|
|
103
112
|
}
|
|
104
113
|
|
|
114
|
+
export type GetClusterPodLabelListReq = {
|
|
115
|
+
page?: number
|
|
116
|
+
pageSize?: number
|
|
117
|
+
searchKey?: string
|
|
118
|
+
cluster?: string
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type GetClusterPodLabelListRespLabel = {
|
|
122
|
+
key?: string
|
|
123
|
+
value?: string[]
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type GetClusterPodLabelListResp = {
|
|
127
|
+
items?: GetClusterPodLabelListRespLabel[]
|
|
128
|
+
pagination?: CommonCommon.Pagination
|
|
129
|
+
}
|
|
130
|
+
|
|
105
131
|
export type GetClusterNodePortListReq = {
|
|
106
132
|
cluster?: string
|
|
107
133
|
}
|
|
@@ -221,6 +247,9 @@ export class Cluster {
|
|
|
221
247
|
static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
|
|
222
248
|
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
223
249
|
}
|
|
250
|
+
static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
|
|
251
|
+
return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
252
|
+
}
|
|
224
253
|
static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
|
|
225
254
|
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/postgresql/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
226
255
|
}
|
|
@@ -233,6 +262,9 @@ export class Cluster {
|
|
|
233
262
|
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
234
263
|
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
235
264
|
}
|
|
265
|
+
static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
|
|
266
|
+
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
267
|
+
}
|
|
236
268
|
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
237
269
|
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
238
270
|
}
|
package/common.pb.ts
CHANGED
|
@@ -145,6 +145,8 @@ export type PodCommon = {
|
|
|
145
145
|
cpuLimit?: number
|
|
146
146
|
memoryUsage?: number
|
|
147
147
|
memoryLimit?: number
|
|
148
|
+
pvUsedInGb?: number
|
|
149
|
+
pvAllocatedInGb?: number
|
|
148
150
|
conditions?: PodCommonCondition[]
|
|
149
151
|
containersName?: string[]
|
|
150
152
|
ownerReference?: OwnerReference[]
|
|
@@ -162,4 +164,7 @@ export type CommonItemStatus = {
|
|
|
162
164
|
serviceAddresses?: string[]
|
|
163
165
|
webManagerAddress?: string
|
|
164
166
|
webLogAddress?: string
|
|
167
|
+
isHwameistorSc?: boolean
|
|
168
|
+
avgPvAllocatedInGb?: number
|
|
169
|
+
avgPvUsedInGb?: number
|
|
165
170
|
}
|
package/insight.pb.ts
CHANGED
|
@@ -20,27 +20,23 @@ export enum TargetType {
|
|
|
20
20
|
DEPLOYMENT = "DEPLOYMENT",
|
|
21
21
|
STATEFULSET = "STATEFULSET",
|
|
22
22
|
DAEMONSET = "DAEMONSET",
|
|
23
|
-
CRONJOB = "CRONJOB",
|
|
24
23
|
POD = "POD",
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
export enum AlertStatus {
|
|
28
|
-
ALERT_STATUS_UNSPECIFIED = "ALERT_STATUS_UNSPECIFIED",
|
|
29
|
-
ALERT_STATUS_FIRING = "ALERT_STATUS_FIRING",
|
|
30
|
-
ALERT_STATUS_RESOLVED = "ALERT_STATUS_RESOLVED",
|
|
31
|
-
}
|
|
32
|
-
|
|
33
26
|
export type AlertSummary = {
|
|
34
|
-
|
|
27
|
+
id?: string
|
|
28
|
+
groupName?: string
|
|
29
|
+
groupId?: string
|
|
35
30
|
ruleName?: string
|
|
36
|
-
|
|
31
|
+
ruleId?: string
|
|
37
32
|
clusterName?: string
|
|
38
33
|
namespace?: string
|
|
39
34
|
targetType?: TargetType
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
target?: string
|
|
36
|
+
severity?: Severity
|
|
37
|
+
value?: string
|
|
38
|
+
notifyResponse?: string
|
|
42
39
|
description?: string
|
|
43
40
|
startAt?: string
|
|
44
41
|
updateAt?: string
|
|
45
|
-
notifyResponse?: string
|
|
46
42
|
}
|
package/package.json
CHANGED
package/postgresql.pb.ts
CHANGED
|
@@ -89,6 +89,8 @@ export type GetPostgresqlListReq = {
|
|
|
89
89
|
sortBy?: string
|
|
90
90
|
searchKey?: string
|
|
91
91
|
workspaceId?: number
|
|
92
|
+
filterCluster?: string
|
|
93
|
+
filterNamespace?: string
|
|
92
94
|
}
|
|
93
95
|
|
|
94
96
|
export type GetPostgresqlConfReq = {
|
|
@@ -288,6 +290,8 @@ export type GetPostgresqlGrafanaAddrReq = {
|
|
|
288
290
|
cluster?: string
|
|
289
291
|
namespace?: string
|
|
290
292
|
name?: string
|
|
293
|
+
from?: string
|
|
294
|
+
to?: string
|
|
291
295
|
}
|
|
292
296
|
|
|
293
297
|
export type GetPostgresqlGrafanaAddrResp = {
|