@daocloud-proto/mcamel-mysql 0.5.0-896 → 0.5.0-898

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.
Files changed (2) hide show
  1. package/mysql.pb.ts +28 -0
  2. package/package.json +1 -1
package/mysql.pb.ts CHANGED
@@ -56,6 +56,14 @@ export enum Status {
56
56
  MgrUnknown = "MgrUnknown",
57
57
  }
58
58
 
59
+ export enum GetSlowlogPodListRespItemNodeType {
60
+ Master = "Master",
61
+ Replica = "Replica",
62
+ PhpAdmin = "PhpAdmin",
63
+ PRIMARY = "PRIMARY",
64
+ SECONDARY = "SECONDARY",
65
+ }
66
+
59
67
  export enum GetSlowlogListReqSortDir {
60
68
  ASC = "ASC",
61
69
  DESC = "DESC",
@@ -161,6 +169,23 @@ export enum MysqlClusterItemStatusRestoreInitialStatus {
161
169
  Succeeded = "Succeeded",
162
170
  }
163
171
 
172
+ export type GetSlowlogPodListReq = {
173
+ cluster?: string
174
+ namespace?: string
175
+ name?: string
176
+ instanceType?: InstanceType
177
+ }
178
+
179
+ export type GetSlowlogPodListRespItem = {
180
+ podName?: string
181
+ slowLogCount?: number
182
+ nodeType?: GetSlowlogPodListRespItemNodeType
183
+ }
184
+
185
+ export type GetSlowlogPodListResp = {
186
+ items?: GetSlowlogPodListRespItem[]
187
+ }
188
+
164
189
  export type UpdateSlowlogStatusReq = {
165
190
  cluster?: string
166
191
  namespace?: string
@@ -873,4 +898,7 @@ export class MysqlMgr {
873
898
  static UpdateSlowlogStatus(req: UpdateSlowlogStatusReq, initReq?: fm.InitReq): Promise<UpdateSlowlogStatusResp> {
874
899
  return fm.fetchReq<UpdateSlowlogStatusReq, UpdateSlowlogStatusResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/slowlog/toggle`, {...initReq, method: "PUT", body: JSON.stringify(req)})
875
900
  }
901
+ static GetSlowlogPodList(req: GetSlowlogPodListReq, initReq?: fm.InitReq): Promise<GetSlowlogPodListResp> {
902
+ return fm.fetchReq<GetSlowlogPodListReq, GetSlowlogPodListResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/slowlog/pods?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name", "instanceType"])}`, {...initReq, method: "GET"})
903
+ }
876
904
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mysql",
3
- "version":"0.5.0-896",
3
+ "version":"0.5.0-898",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {