@daocloud-proto/mcamel-mysql 0.5.0-883 → 0.5.0-885
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/mysql.pb.ts +16 -1
- package/package.json +1 -1
package/mysql.pb.ts
CHANGED
|
@@ -161,6 +161,18 @@ export enum MysqlClusterItemStatusRestoreInitialStatus {
|
|
|
161
161
|
Succeeded = "Succeeded",
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
export type UpdateSlowlogStatusReq = {
|
|
165
|
+
cluster?: string
|
|
166
|
+
namespace?: string
|
|
167
|
+
name?: string
|
|
168
|
+
instanceType?: InstanceType
|
|
169
|
+
enable?: boolean
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type UpdateSlowlogStatusResp = {
|
|
173
|
+
message?: string
|
|
174
|
+
}
|
|
175
|
+
|
|
164
176
|
export type GetSlowlogConfReq = {
|
|
165
177
|
cluster?: string
|
|
166
178
|
namespace?: string
|
|
@@ -170,6 +182,7 @@ export type GetSlowlogConfReq = {
|
|
|
170
182
|
|
|
171
183
|
export type GetSlowlogConfResp = {
|
|
172
184
|
longQueryTime?: string
|
|
185
|
+
slowQueryLog?: boolean
|
|
173
186
|
}
|
|
174
187
|
|
|
175
188
|
export type DeleteSlowlogReq = {
|
|
@@ -568,7 +581,6 @@ export type CreateMysqlReq = {
|
|
|
568
581
|
affinity?: CommonCommon.Affinity
|
|
569
582
|
serviceMonitorInterval?: string
|
|
570
583
|
accessWhitelist?: CommonCommon.AccessWhitelist
|
|
571
|
-
enableSlowQueryLog?: boolean
|
|
572
584
|
externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
|
|
573
585
|
lbTyp?: CommonCommon.LBTyp
|
|
574
586
|
lbPoolName?: string
|
|
@@ -858,4 +870,7 @@ export class MysqlMgr {
|
|
|
858
870
|
static GetSlowlogConf(req: GetSlowlogConfReq, initReq?: fm.InitReq): Promise<GetSlowlogConfResp> {
|
|
859
871
|
return fm.fetchReq<GetSlowlogConfReq, GetSlowlogConfResp>(`/apis/mcamel.io/mysql/v1alpha2/${req["cluster"]}/${req["namespace"]}/${req["name"]}/${req["instanceType"]}/slowlog/conf?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name", "instanceType"])}`, {...initReq, method: "GET"})
|
|
860
872
|
}
|
|
873
|
+
static UpdateSlowlogStatus(req: UpdateSlowlogStatusReq, initReq?: fm.InitReq): Promise<UpdateSlowlogStatusResp> {
|
|
874
|
+
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
|
+
}
|
|
861
876
|
}
|