@daocloud-proto/mcamel-postgresql 0.0.2-1 → 0.0.2-100
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 +12 -0
- package/common.pb.ts +5 -0
- package/insight.pb.ts +8 -12
- package/package.json +1 -1
- package/postgresql.pb.ts +10 -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 = {
|
|
@@ -233,6 +242,9 @@ export class Cluster {
|
|
|
233
242
|
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
234
243
|
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
244
|
}
|
|
245
|
+
static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
|
|
246
|
+
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
247
|
+
}
|
|
236
248
|
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
237
249
|
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
238
250
|
}
|
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
|
@@ -57,6 +57,12 @@ export enum GetPostgresqlPodListRespPodType {
|
|
|
57
57
|
PgAdmin = "PgAdmin",
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
export enum GetPostgresqlPodListRespHealthStatus {
|
|
61
|
+
HealthStatusUnknown = "HealthStatusUnknown",
|
|
62
|
+
HealthStatusHealthy = "HealthStatusHealthy",
|
|
63
|
+
HealthStatusUnhealthy = "HealthStatusUnhealthy",
|
|
64
|
+
}
|
|
65
|
+
|
|
60
66
|
export enum GetPostgresqlConfRespItemsParamType {
|
|
61
67
|
conf = "conf",
|
|
62
68
|
}
|
|
@@ -83,6 +89,8 @@ export type GetPostgresqlListReq = {
|
|
|
83
89
|
sortBy?: string
|
|
84
90
|
searchKey?: string
|
|
85
91
|
workspaceId?: number
|
|
92
|
+
filterCluster?: string
|
|
93
|
+
filterNamespace?: string
|
|
86
94
|
}
|
|
87
95
|
|
|
88
96
|
export type GetPostgresqlConfReq = {
|
|
@@ -269,6 +277,7 @@ export type GetPostgresqlPodListRespData = {
|
|
|
269
277
|
createTimestamp?: string
|
|
270
278
|
podType?: GetPostgresqlPodListRespPodType
|
|
271
279
|
replicationLagInBytes?: string
|
|
280
|
+
healthStatus?: GetPostgresqlPodListRespHealthStatus
|
|
272
281
|
common?: CommonCommon.PodCommon
|
|
273
282
|
}
|
|
274
283
|
|
|
@@ -318,6 +327,7 @@ export type PostgresqlItemStatus = {
|
|
|
318
327
|
status?: Status
|
|
319
328
|
podsAreReadyNum?: number
|
|
320
329
|
clusterIPs?: string[]
|
|
330
|
+
avgReplicationLagInBytes?: string
|
|
321
331
|
common?: CommonCommon.CommonItemStatus
|
|
322
332
|
}
|
|
323
333
|
|