@daocloud-proto/mcamel-postgresql 0.0.2-13 → 0.0.2-130

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 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
- alertId?: string
27
+ id?: string
28
+ groupName?: string
29
+ groupId?: string
35
30
  ruleName?: string
36
- severity?: Severity
31
+ ruleId?: string
37
32
  clusterName?: string
38
33
  namespace?: string
39
34
  targetType?: TargetType
40
- targetName?: string
41
- status?: AlertStatus
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-postgresql",
3
- "version":"0.0.2-13",
3
+ "version":"0.0.2-130",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
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 = {