kb-cloud-client-typescript 2.3.0-alpha.220 → 2.3.0-alpha.221
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/dist/adminapi/apis/diagnostics-api.d.ts +216 -0
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +237 -0
- package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +7 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +7 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/kingbase-diagnostic-source-status.d.ts +25 -0
- package/dist/adminapi/models/kingbase-diagnostic-source-status.d.ts.map +1 -0
- package/dist/adminapi/models/kingbase-diagnostic-source-status.js +29 -0
- package/dist/adminapi/models/kingbase-diagnostic-source-status.js.map +1 -0
- package/dist/adminapi/models/kingbase-diagnostic-source.d.ts +44 -0
- package/dist/adminapi/models/kingbase-diagnostic-source.d.ts.map +1 -0
- package/dist/adminapi/models/kingbase-diagnostic-source.js +16 -0
- package/dist/adminapi/models/kingbase-diagnostic-source.js.map +1 -0
- package/dist/adminapi/models/kingbase-lock-analysis.d.ts +58 -0
- package/dist/adminapi/models/kingbase-lock-analysis.d.ts.map +1 -0
- package/dist/adminapi/models/kingbase-lock-analysis.js +16 -0
- package/dist/adminapi/models/kingbase-lock-analysis.js.map +1 -0
- package/dist/adminapi/models/kingbase-lock-row.d.ts +109 -0
- package/dist/adminapi/models/kingbase-lock-row.d.ts.map +1 -0
- package/dist/adminapi/models/kingbase-lock-row.js +16 -0
- package/dist/adminapi/models/kingbase-lock-row.js.map +1 -0
- package/dist/adminapi/models/kingbase-session-detail.d.ts +45 -0
- package/dist/adminapi/models/kingbase-session-detail.d.ts.map +1 -0
- package/dist/adminapi/models/kingbase-session-detail.js +16 -0
- package/dist/adminapi/models/kingbase-session-detail.js.map +1 -0
- package/dist/adminapi/models/kingbase-session-list.d.ts +51 -0
- package/dist/adminapi/models/kingbase-session-list.d.ts.map +1 -0
- package/dist/adminapi/models/kingbase-session-list.js +16 -0
- package/dist/adminapi/models/kingbase-session-list.js.map +1 -0
- package/dist/adminapi/models/kingbase-session.d.ts +121 -0
- package/dist/adminapi/models/kingbase-session.d.ts.map +1 -0
- package/dist/adminapi/models/kingbase-session.js +16 -0
- package/dist/adminapi/models/kingbase-session.js.map +1 -0
- package/dist/openapi/apis/diagnostics-api.d.ts +216 -0
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +237 -0
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/models/index.d.ts +7 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +7 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/kingbase-diagnostic-source-status.d.ts +25 -0
- package/dist/openapi/models/kingbase-diagnostic-source-status.d.ts.map +1 -0
- package/dist/openapi/models/kingbase-diagnostic-source-status.js +29 -0
- package/dist/openapi/models/kingbase-diagnostic-source-status.js.map +1 -0
- package/dist/openapi/models/kingbase-diagnostic-source.d.ts +44 -0
- package/dist/openapi/models/kingbase-diagnostic-source.d.ts.map +1 -0
- package/dist/openapi/models/kingbase-diagnostic-source.js +16 -0
- package/dist/openapi/models/kingbase-diagnostic-source.js.map +1 -0
- package/dist/openapi/models/kingbase-lock-analysis.d.ts +58 -0
- package/dist/openapi/models/kingbase-lock-analysis.d.ts.map +1 -0
- package/dist/openapi/models/kingbase-lock-analysis.js +16 -0
- package/dist/openapi/models/kingbase-lock-analysis.js.map +1 -0
- package/dist/openapi/models/kingbase-lock-row.d.ts +109 -0
- package/dist/openapi/models/kingbase-lock-row.d.ts.map +1 -0
- package/dist/openapi/models/kingbase-lock-row.js +16 -0
- package/dist/openapi/models/kingbase-lock-row.js.map +1 -0
- package/dist/openapi/models/kingbase-session-detail.d.ts +45 -0
- package/dist/openapi/models/kingbase-session-detail.d.ts.map +1 -0
- package/dist/openapi/models/kingbase-session-detail.js +16 -0
- package/dist/openapi/models/kingbase-session-detail.js.map +1 -0
- package/dist/openapi/models/kingbase-session-list.d.ts +51 -0
- package/dist/openapi/models/kingbase-session-list.d.ts.map +1 -0
- package/dist/openapi/models/kingbase-session-list.js +16 -0
- package/dist/openapi/models/kingbase-session-list.js.map +1 -0
- package/dist/openapi/models/kingbase-session.d.ts +121 -0
- package/dist/openapi/models/kingbase-session.d.ts.map +1 -0
- package/dist/openapi/models/kingbase-session.js +16 -0
- package/dist/openapi/models/kingbase-session.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +7 -0
- package/src/adminapi/apis/diagnostics-api.ts +379 -0
- package/src/adminapi/models/index.ts +7 -0
- package/src/adminapi/models/kingbase-diagnostic-source-status.ts +34 -0
- package/src/adminapi/models/kingbase-diagnostic-source.ts +53 -0
- package/src/adminapi/models/kingbase-lock-analysis.ts +69 -0
- package/src/adminapi/models/kingbase-lock-row.ts +114 -0
- package/src/adminapi/models/kingbase-session-detail.ts +54 -0
- package/src/adminapi/models/kingbase-session-list.ts +60 -0
- package/src/adminapi/models/kingbase-session.ts +126 -0
- package/src/adminapi.yaml +304 -0
- package/src/openapi/.openapi-generator/FILES +7 -0
- package/src/openapi/apis/diagnostics-api.ts +379 -0
- package/src/openapi/models/index.ts +7 -0
- package/src/openapi/models/kingbase-diagnostic-source-status.ts +34 -0
- package/src/openapi/models/kingbase-diagnostic-source.ts +53 -0
- package/src/openapi/models/kingbase-lock-analysis.ts +69 -0
- package/src/openapi/models/kingbase-lock-row.ts +114 -0
- package/src/openapi/models/kingbase-session-detail.ts +54 -0
- package/src/openapi/models/kingbase-session-list.ts +60 -0
- package/src/openapi/models/kingbase-session.ts +126 -0
- package/src/openapi.yaml +304 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KubeBlocks Cloud API
|
|
3
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: support@apecloud.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface KingbaseSession
|
|
16
|
+
*/
|
|
17
|
+
export interface KingbaseSession {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof KingbaseSession
|
|
22
|
+
*/
|
|
23
|
+
'pid': number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof KingbaseSession
|
|
28
|
+
*/
|
|
29
|
+
'user'?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof KingbaseSession
|
|
34
|
+
*/
|
|
35
|
+
'database'?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof KingbaseSession
|
|
40
|
+
*/
|
|
41
|
+
'applicationName'?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof KingbaseSession
|
|
46
|
+
*/
|
|
47
|
+
'clientAddr'?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof KingbaseSession
|
|
52
|
+
*/
|
|
53
|
+
'clientPort'?: number;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof KingbaseSession
|
|
58
|
+
*/
|
|
59
|
+
'state': string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof KingbaseSession
|
|
64
|
+
*/
|
|
65
|
+
'waitEventType'?: string;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof KingbaseSession
|
|
70
|
+
*/
|
|
71
|
+
'waitEvent'?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof KingbaseSession
|
|
76
|
+
*/
|
|
77
|
+
'backendStart'?: string;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof KingbaseSession
|
|
82
|
+
*/
|
|
83
|
+
'queryStart'?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof KingbaseSession
|
|
88
|
+
*/
|
|
89
|
+
'xactStart'?: string;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof KingbaseSession
|
|
94
|
+
*/
|
|
95
|
+
'durationSeconds'?: number;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof KingbaseSession
|
|
100
|
+
*/
|
|
101
|
+
'xactDurationSeconds'?: number;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof KingbaseSession
|
|
106
|
+
*/
|
|
107
|
+
'queryDigest': string;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof KingbaseSession
|
|
112
|
+
*/
|
|
113
|
+
'querySummary': string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof KingbaseSession
|
|
118
|
+
*/
|
|
119
|
+
'backendType'?: string;
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=kingbase-session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kingbase-session.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/kingbase-session.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* KubeBlocks Cloud API
|
|
6
|
+
* KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: support@apecloud.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
//# sourceMappingURL=kingbase-session.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kingbase-session.js","sourceRoot":"","sources":["../../../src/openapi/models/kingbase-session.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
|
package/package.json
CHANGED
|
@@ -608,6 +608,13 @@ models/key-backup.ts
|
|
|
608
608
|
models/key-cluster.ts
|
|
609
609
|
models/key-list.ts
|
|
610
610
|
models/key.ts
|
|
611
|
+
models/kingbase-diagnostic-source-status.ts
|
|
612
|
+
models/kingbase-diagnostic-source.ts
|
|
613
|
+
models/kingbase-lock-analysis.ts
|
|
614
|
+
models/kingbase-lock-row.ts
|
|
615
|
+
models/kingbase-session-detail.ts
|
|
616
|
+
models/kingbase-session-list.ts
|
|
617
|
+
models/kingbase-session.ts
|
|
611
618
|
models/koordinator-node-reservation.ts
|
|
612
619
|
models/koordinator-reservation-allocate-policy.ts
|
|
613
620
|
models/koordinator-reservation-resource-class.ts
|
|
@@ -34,6 +34,12 @@ import type { DamengSessionListItem } from '../models';
|
|
|
34
34
|
// @ts-ignore
|
|
35
35
|
import type { DamengSpaceAnalysis } from '../models';
|
|
36
36
|
// @ts-ignore
|
|
37
|
+
import type { KingbaseLockAnalysis } from '../models';
|
|
38
|
+
// @ts-ignore
|
|
39
|
+
import type { KingbaseSessionDetail } from '../models';
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
import type { KingbaseSessionList } from '../models';
|
|
42
|
+
// @ts-ignore
|
|
37
43
|
import type { MysqlSQLAnalysis } from '../models';
|
|
38
44
|
// @ts-ignore
|
|
39
45
|
import type { MysqlSpaceAnalysis } from '../models';
|
|
@@ -257,6 +263,104 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
257
263
|
|
|
258
264
|
|
|
259
265
|
|
|
266
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
267
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
268
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
269
|
+
|
|
270
|
+
return {
|
|
271
|
+
url: toPathString(localVarUrlObj),
|
|
272
|
+
options: localVarRequestOptions,
|
|
273
|
+
};
|
|
274
|
+
},
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @summary Get Kingbase session diagnostics
|
|
278
|
+
* @param {string} orgName
|
|
279
|
+
* @param {string} clusterName
|
|
280
|
+
* @param {number} pid
|
|
281
|
+
* @param {*} [options] Override http request option.
|
|
282
|
+
* @throws {RequiredError}
|
|
283
|
+
*/
|
|
284
|
+
getDiagnosticsKingbaseSession: async (orgName: string, clusterName: string, pid: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
285
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
286
|
+
assertParamExists('getDiagnosticsKingbaseSession', 'orgName', orgName)
|
|
287
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
288
|
+
assertParamExists('getDiagnosticsKingbaseSession', 'clusterName', clusterName)
|
|
289
|
+
// verify required parameter 'pid' is not null or undefined
|
|
290
|
+
assertParamExists('getDiagnosticsKingbaseSession', 'pid', pid)
|
|
291
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/kingbase/sessions/{pid}`
|
|
292
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
293
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
294
|
+
.replace(`{${"pid"}}`, encodeURIComponent(String(pid)));
|
|
295
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
296
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
297
|
+
let baseOptions;
|
|
298
|
+
if (configuration) {
|
|
299
|
+
baseOptions = configuration.baseOptions;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
303
|
+
const localVarHeaderParameter = {} as any;
|
|
304
|
+
const localVarQueryParameter = {} as any;
|
|
305
|
+
|
|
306
|
+
// authentication BearerToken required
|
|
307
|
+
// http bearer authentication required
|
|
308
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
309
|
+
|
|
310
|
+
// authentication DigestAuth required
|
|
311
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
316
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
317
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
318
|
+
|
|
319
|
+
return {
|
|
320
|
+
url: toPathString(localVarUrlObj),
|
|
321
|
+
options: localVarRequestOptions,
|
|
322
|
+
};
|
|
323
|
+
},
|
|
324
|
+
/**
|
|
325
|
+
* Returns the selected session and its direct lock rows from the current snapshot.
|
|
326
|
+
* @summary Get Kingbase session lock analysis
|
|
327
|
+
* @param {string} orgName
|
|
328
|
+
* @param {string} clusterName
|
|
329
|
+
* @param {number} pid
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
getDiagnosticsKingbaseSessionLockAnalysis: async (orgName: string, clusterName: string, pid: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
334
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
335
|
+
assertParamExists('getDiagnosticsKingbaseSessionLockAnalysis', 'orgName', orgName)
|
|
336
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
337
|
+
assertParamExists('getDiagnosticsKingbaseSessionLockAnalysis', 'clusterName', clusterName)
|
|
338
|
+
// verify required parameter 'pid' is not null or undefined
|
|
339
|
+
assertParamExists('getDiagnosticsKingbaseSessionLockAnalysis', 'pid', pid)
|
|
340
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/kingbase/sessions/{pid}/lockAnalysis`
|
|
341
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
342
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
343
|
+
.replace(`{${"pid"}}`, encodeURIComponent(String(pid)));
|
|
344
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
345
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
346
|
+
let baseOptions;
|
|
347
|
+
if (configuration) {
|
|
348
|
+
baseOptions = configuration.baseOptions;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
352
|
+
const localVarHeaderParameter = {} as any;
|
|
353
|
+
const localVarQueryParameter = {} as any;
|
|
354
|
+
|
|
355
|
+
// authentication BearerToken required
|
|
356
|
+
// http bearer authentication required
|
|
357
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
358
|
+
|
|
359
|
+
// authentication DigestAuth required
|
|
360
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
260
364
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
261
365
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
262
366
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -730,6 +834,56 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
730
834
|
|
|
731
835
|
|
|
732
836
|
|
|
837
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
838
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
839
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
840
|
+
|
|
841
|
+
return {
|
|
842
|
+
url: toPathString(localVarUrlObj),
|
|
843
|
+
options: localVarRequestOptions,
|
|
844
|
+
};
|
|
845
|
+
},
|
|
846
|
+
/**
|
|
847
|
+
*
|
|
848
|
+
* @summary List Kingbase session diagnostics
|
|
849
|
+
* @param {string} orgName
|
|
850
|
+
* @param {string} clusterName
|
|
851
|
+
* @param {number} [limit] Maximum number of sessions to return. Defaults to 200.
|
|
852
|
+
* @param {*} [options] Override http request option.
|
|
853
|
+
* @throws {RequiredError}
|
|
854
|
+
*/
|
|
855
|
+
listDiagnosticsKingbaseSessions: async (orgName: string, clusterName: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
856
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
857
|
+
assertParamExists('listDiagnosticsKingbaseSessions', 'orgName', orgName)
|
|
858
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
859
|
+
assertParamExists('listDiagnosticsKingbaseSessions', 'clusterName', clusterName)
|
|
860
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/kingbase/sessions`
|
|
861
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
862
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
863
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
864
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
865
|
+
let baseOptions;
|
|
866
|
+
if (configuration) {
|
|
867
|
+
baseOptions = configuration.baseOptions;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
871
|
+
const localVarHeaderParameter = {} as any;
|
|
872
|
+
const localVarQueryParameter = {} as any;
|
|
873
|
+
|
|
874
|
+
// authentication BearerToken required
|
|
875
|
+
// http bearer authentication required
|
|
876
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
877
|
+
|
|
878
|
+
// authentication DigestAuth required
|
|
879
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
880
|
+
|
|
881
|
+
if (limit !== undefined) {
|
|
882
|
+
localVarQueryParameter['limit'] = limit;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
|
|
733
887
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
734
888
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
735
889
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -862,6 +1016,36 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
|
|
|
862
1016
|
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsDamengSpaceAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
863
1017
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
864
1018
|
},
|
|
1019
|
+
/**
|
|
1020
|
+
*
|
|
1021
|
+
* @summary Get Kingbase session diagnostics
|
|
1022
|
+
* @param {string} orgName
|
|
1023
|
+
* @param {string} clusterName
|
|
1024
|
+
* @param {number} pid
|
|
1025
|
+
* @param {*} [options] Override http request option.
|
|
1026
|
+
* @throws {RequiredError}
|
|
1027
|
+
*/
|
|
1028
|
+
async getDiagnosticsKingbaseSession(orgName: string, clusterName: string, pid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KingbaseSessionDetail>> {
|
|
1029
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsKingbaseSession(orgName, clusterName, pid, options);
|
|
1030
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1031
|
+
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsKingbaseSession']?.[localVarOperationServerIndex]?.url;
|
|
1032
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1033
|
+
},
|
|
1034
|
+
/**
|
|
1035
|
+
* Returns the selected session and its direct lock rows from the current snapshot.
|
|
1036
|
+
* @summary Get Kingbase session lock analysis
|
|
1037
|
+
* @param {string} orgName
|
|
1038
|
+
* @param {string} clusterName
|
|
1039
|
+
* @param {number} pid
|
|
1040
|
+
* @param {*} [options] Override http request option.
|
|
1041
|
+
* @throws {RequiredError}
|
|
1042
|
+
*/
|
|
1043
|
+
async getDiagnosticsKingbaseSessionLockAnalysis(orgName: string, clusterName: string, pid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KingbaseLockAnalysis>> {
|
|
1044
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsKingbaseSessionLockAnalysis(orgName, clusterName, pid, options);
|
|
1045
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1046
|
+
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsKingbaseSessionLockAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
1047
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1048
|
+
},
|
|
865
1049
|
/**
|
|
866
1050
|
* Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials.
|
|
867
1051
|
* @summary Get MySQL performance trends
|
|
@@ -1002,6 +1186,21 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
|
|
|
1002
1186
|
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsDamengSessions']?.[localVarOperationServerIndex]?.url;
|
|
1003
1187
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1004
1188
|
},
|
|
1189
|
+
/**
|
|
1190
|
+
*
|
|
1191
|
+
* @summary List Kingbase session diagnostics
|
|
1192
|
+
* @param {string} orgName
|
|
1193
|
+
* @param {string} clusterName
|
|
1194
|
+
* @param {number} [limit] Maximum number of sessions to return. Defaults to 200.
|
|
1195
|
+
* @param {*} [options] Override http request option.
|
|
1196
|
+
* @throws {RequiredError}
|
|
1197
|
+
*/
|
|
1198
|
+
async listDiagnosticsKingbaseSessions(orgName: string, clusterName: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<KingbaseSessionList>> {
|
|
1199
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDiagnosticsKingbaseSessions(orgName, clusterName, limit, options);
|
|
1200
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1201
|
+
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsKingbaseSessions']?.[localVarOperationServerIndex]?.url;
|
|
1202
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1203
|
+
},
|
|
1005
1204
|
/**
|
|
1006
1205
|
* List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
1007
1206
|
* @summary List PostgreSQL session basic diagnostics
|
|
@@ -1067,6 +1266,26 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
|
|
|
1067
1266
|
getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSpaceAnalysis> {
|
|
1068
1267
|
return localVarFp.getDiagnosticsDamengSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.tableLimit, requestParameters.indexLimit, requestParameters.schema, requestParameters.skipBasic, options).then((request) => request(axios, basePath));
|
|
1069
1268
|
},
|
|
1269
|
+
/**
|
|
1270
|
+
*
|
|
1271
|
+
* @summary Get Kingbase session diagnostics
|
|
1272
|
+
* @param {DiagnosticsApiGetDiagnosticsKingbaseSessionRequest} requestParameters Request parameters.
|
|
1273
|
+
* @param {*} [options] Override http request option.
|
|
1274
|
+
* @throws {RequiredError}
|
|
1275
|
+
*/
|
|
1276
|
+
getDiagnosticsKingbaseSession(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<KingbaseSessionDetail> {
|
|
1277
|
+
return localVarFp.getDiagnosticsKingbaseSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
|
|
1278
|
+
},
|
|
1279
|
+
/**
|
|
1280
|
+
* Returns the selected session and its direct lock rows from the current snapshot.
|
|
1281
|
+
* @summary Get Kingbase session lock analysis
|
|
1282
|
+
* @param {DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest} requestParameters Request parameters.
|
|
1283
|
+
* @param {*} [options] Override http request option.
|
|
1284
|
+
* @throws {RequiredError}
|
|
1285
|
+
*/
|
|
1286
|
+
getDiagnosticsKingbaseSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<KingbaseLockAnalysis> {
|
|
1287
|
+
return localVarFp.getDiagnosticsKingbaseSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
|
|
1288
|
+
},
|
|
1070
1289
|
/**
|
|
1071
1290
|
* Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials.
|
|
1072
1291
|
* @summary Get MySQL performance trends
|
|
@@ -1157,6 +1376,16 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
|
|
|
1157
1376
|
listDiagnosticsDamengSessions(requestParameters: DiagnosticsApiListDiagnosticsDamengSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DamengSessionListItem>> {
|
|
1158
1377
|
return localVarFp.listDiagnosticsDamengSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.state, options).then((request) => request(axios, basePath));
|
|
1159
1378
|
},
|
|
1379
|
+
/**
|
|
1380
|
+
*
|
|
1381
|
+
* @summary List Kingbase session diagnostics
|
|
1382
|
+
* @param {DiagnosticsApiListDiagnosticsKingbaseSessionsRequest} requestParameters Request parameters.
|
|
1383
|
+
* @param {*} [options] Override http request option.
|
|
1384
|
+
* @throws {RequiredError}
|
|
1385
|
+
*/
|
|
1386
|
+
listDiagnosticsKingbaseSessions(requestParameters: DiagnosticsApiListDiagnosticsKingbaseSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<KingbaseSessionList> {
|
|
1387
|
+
return localVarFp.listDiagnosticsKingbaseSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
1388
|
+
},
|
|
1160
1389
|
/**
|
|
1161
1390
|
* List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
1162
1391
|
* @summary List PostgreSQL session basic diagnostics
|
|
@@ -1216,6 +1445,26 @@ export interface DiagnosticsApiInterface {
|
|
|
1216
1445
|
*/
|
|
1217
1446
|
getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSpaceAnalysis>;
|
|
1218
1447
|
|
|
1448
|
+
/**
|
|
1449
|
+
*
|
|
1450
|
+
* @summary Get Kingbase session diagnostics
|
|
1451
|
+
* @param {DiagnosticsApiGetDiagnosticsKingbaseSessionRequest} requestParameters Request parameters.
|
|
1452
|
+
* @param {*} [options] Override http request option.
|
|
1453
|
+
* @throws {RequiredError}
|
|
1454
|
+
* @memberof DiagnosticsApiInterface
|
|
1455
|
+
*/
|
|
1456
|
+
getDiagnosticsKingbaseSession(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<KingbaseSessionDetail>;
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* Returns the selected session and its direct lock rows from the current snapshot.
|
|
1460
|
+
* @summary Get Kingbase session lock analysis
|
|
1461
|
+
* @param {DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest} requestParameters Request parameters.
|
|
1462
|
+
* @param {*} [options] Override http request option.
|
|
1463
|
+
* @throws {RequiredError}
|
|
1464
|
+
* @memberof DiagnosticsApiInterface
|
|
1465
|
+
*/
|
|
1466
|
+
getDiagnosticsKingbaseSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<KingbaseLockAnalysis>;
|
|
1467
|
+
|
|
1219
1468
|
/**
|
|
1220
1469
|
* Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials.
|
|
1221
1470
|
* @summary Get MySQL performance trends
|
|
@@ -1306,6 +1555,16 @@ export interface DiagnosticsApiInterface {
|
|
|
1306
1555
|
*/
|
|
1307
1556
|
listDiagnosticsDamengSessions(requestParameters: DiagnosticsApiListDiagnosticsDamengSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DamengSessionListItem>>;
|
|
1308
1557
|
|
|
1558
|
+
/**
|
|
1559
|
+
*
|
|
1560
|
+
* @summary List Kingbase session diagnostics
|
|
1561
|
+
* @param {DiagnosticsApiListDiagnosticsKingbaseSessionsRequest} requestParameters Request parameters.
|
|
1562
|
+
* @param {*} [options] Override http request option.
|
|
1563
|
+
* @throws {RequiredError}
|
|
1564
|
+
* @memberof DiagnosticsApiInterface
|
|
1565
|
+
*/
|
|
1566
|
+
listDiagnosticsKingbaseSessions(requestParameters: DiagnosticsApiListDiagnosticsKingbaseSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<KingbaseSessionList>;
|
|
1567
|
+
|
|
1309
1568
|
/**
|
|
1310
1569
|
* List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
1311
1570
|
* @summary List PostgreSQL session basic diagnostics
|
|
@@ -1451,6 +1710,62 @@ export interface DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest {
|
|
|
1451
1710
|
readonly skipBasic?: boolean
|
|
1452
1711
|
}
|
|
1453
1712
|
|
|
1713
|
+
/**
|
|
1714
|
+
* Request parameters for getDiagnosticsKingbaseSession operation in DiagnosticsApi.
|
|
1715
|
+
* @export
|
|
1716
|
+
* @interface DiagnosticsApiGetDiagnosticsKingbaseSessionRequest
|
|
1717
|
+
*/
|
|
1718
|
+
export interface DiagnosticsApiGetDiagnosticsKingbaseSessionRequest {
|
|
1719
|
+
/**
|
|
1720
|
+
*
|
|
1721
|
+
* @type {string}
|
|
1722
|
+
* @memberof DiagnosticsApiGetDiagnosticsKingbaseSession
|
|
1723
|
+
*/
|
|
1724
|
+
readonly orgName: string
|
|
1725
|
+
|
|
1726
|
+
/**
|
|
1727
|
+
*
|
|
1728
|
+
* @type {string}
|
|
1729
|
+
* @memberof DiagnosticsApiGetDiagnosticsKingbaseSession
|
|
1730
|
+
*/
|
|
1731
|
+
readonly clusterName: string
|
|
1732
|
+
|
|
1733
|
+
/**
|
|
1734
|
+
*
|
|
1735
|
+
* @type {number}
|
|
1736
|
+
* @memberof DiagnosticsApiGetDiagnosticsKingbaseSession
|
|
1737
|
+
*/
|
|
1738
|
+
readonly pid: number
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
/**
|
|
1742
|
+
* Request parameters for getDiagnosticsKingbaseSessionLockAnalysis operation in DiagnosticsApi.
|
|
1743
|
+
* @export
|
|
1744
|
+
* @interface DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest
|
|
1745
|
+
*/
|
|
1746
|
+
export interface DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest {
|
|
1747
|
+
/**
|
|
1748
|
+
*
|
|
1749
|
+
* @type {string}
|
|
1750
|
+
* @memberof DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysis
|
|
1751
|
+
*/
|
|
1752
|
+
readonly orgName: string
|
|
1753
|
+
|
|
1754
|
+
/**
|
|
1755
|
+
*
|
|
1756
|
+
* @type {string}
|
|
1757
|
+
* @memberof DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysis
|
|
1758
|
+
*/
|
|
1759
|
+
readonly clusterName: string
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
*
|
|
1763
|
+
* @type {number}
|
|
1764
|
+
* @memberof DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysis
|
|
1765
|
+
*/
|
|
1766
|
+
readonly pid: number
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1454
1769
|
/**
|
|
1455
1770
|
* Request parameters for getDiagnosticsMysqlPerformanceTrends operation in DiagnosticsApi.
|
|
1456
1771
|
* @export
|
|
@@ -1738,6 +2053,34 @@ export interface DiagnosticsApiListDiagnosticsDamengSessionsRequest {
|
|
|
1738
2053
|
readonly state?: string
|
|
1739
2054
|
}
|
|
1740
2055
|
|
|
2056
|
+
/**
|
|
2057
|
+
* Request parameters for listDiagnosticsKingbaseSessions operation in DiagnosticsApi.
|
|
2058
|
+
* @export
|
|
2059
|
+
* @interface DiagnosticsApiListDiagnosticsKingbaseSessionsRequest
|
|
2060
|
+
*/
|
|
2061
|
+
export interface DiagnosticsApiListDiagnosticsKingbaseSessionsRequest {
|
|
2062
|
+
/**
|
|
2063
|
+
*
|
|
2064
|
+
* @type {string}
|
|
2065
|
+
* @memberof DiagnosticsApiListDiagnosticsKingbaseSessions
|
|
2066
|
+
*/
|
|
2067
|
+
readonly orgName: string
|
|
2068
|
+
|
|
2069
|
+
/**
|
|
2070
|
+
*
|
|
2071
|
+
* @type {string}
|
|
2072
|
+
* @memberof DiagnosticsApiListDiagnosticsKingbaseSessions
|
|
2073
|
+
*/
|
|
2074
|
+
readonly clusterName: string
|
|
2075
|
+
|
|
2076
|
+
/**
|
|
2077
|
+
* Maximum number of sessions to return. Defaults to 200.
|
|
2078
|
+
* @type {number}
|
|
2079
|
+
* @memberof DiagnosticsApiListDiagnosticsKingbaseSessions
|
|
2080
|
+
*/
|
|
2081
|
+
readonly limit?: number
|
|
2082
|
+
}
|
|
2083
|
+
|
|
1741
2084
|
/**
|
|
1742
2085
|
* Request parameters for listDiagnosticsPostgresqlSessions operation in DiagnosticsApi.
|
|
1743
2086
|
* @export
|
|
@@ -1821,6 +2164,30 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
|
|
|
1821
2164
|
return DiagnosticsApiFp(this.configuration).getDiagnosticsDamengSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.tableLimit, requestParameters.indexLimit, requestParameters.schema, requestParameters.skipBasic, options).then((request) => request(this.axios, this.basePath));
|
|
1822
2165
|
}
|
|
1823
2166
|
|
|
2167
|
+
/**
|
|
2168
|
+
*
|
|
2169
|
+
* @summary Get Kingbase session diagnostics
|
|
2170
|
+
* @param {DiagnosticsApiGetDiagnosticsKingbaseSessionRequest} requestParameters Request parameters.
|
|
2171
|
+
* @param {*} [options] Override http request option.
|
|
2172
|
+
* @throws {RequiredError}
|
|
2173
|
+
* @memberof DiagnosticsApi
|
|
2174
|
+
*/
|
|
2175
|
+
public getDiagnosticsKingbaseSession(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionRequest, options?: RawAxiosRequestConfig) {
|
|
2176
|
+
return DiagnosticsApiFp(this.configuration).getDiagnosticsKingbaseSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath));
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2179
|
+
/**
|
|
2180
|
+
* Returns the selected session and its direct lock rows from the current snapshot.
|
|
2181
|
+
* @summary Get Kingbase session lock analysis
|
|
2182
|
+
* @param {DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest} requestParameters Request parameters.
|
|
2183
|
+
* @param {*} [options] Override http request option.
|
|
2184
|
+
* @throws {RequiredError}
|
|
2185
|
+
* @memberof DiagnosticsApi
|
|
2186
|
+
*/
|
|
2187
|
+
public getDiagnosticsKingbaseSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest, options?: RawAxiosRequestConfig) {
|
|
2188
|
+
return DiagnosticsApiFp(this.configuration).getDiagnosticsKingbaseSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath));
|
|
2189
|
+
}
|
|
2190
|
+
|
|
1824
2191
|
/**
|
|
1825
2192
|
* Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials.
|
|
1826
2193
|
* @summary Get MySQL performance trends
|
|
@@ -1929,6 +2296,18 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
|
|
|
1929
2296
|
return DiagnosticsApiFp(this.configuration).listDiagnosticsDamengSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
|
|
1930
2297
|
}
|
|
1931
2298
|
|
|
2299
|
+
/**
|
|
2300
|
+
*
|
|
2301
|
+
* @summary List Kingbase session diagnostics
|
|
2302
|
+
* @param {DiagnosticsApiListDiagnosticsKingbaseSessionsRequest} requestParameters Request parameters.
|
|
2303
|
+
* @param {*} [options] Override http request option.
|
|
2304
|
+
* @throws {RequiredError}
|
|
2305
|
+
* @memberof DiagnosticsApi
|
|
2306
|
+
*/
|
|
2307
|
+
public listDiagnosticsKingbaseSessions(requestParameters: DiagnosticsApiListDiagnosticsKingbaseSessionsRequest, options?: RawAxiosRequestConfig) {
|
|
2308
|
+
return DiagnosticsApiFp(this.configuration).listDiagnosticsKingbaseSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
2309
|
+
}
|
|
2310
|
+
|
|
1932
2311
|
/**
|
|
1933
2312
|
* List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
1934
2313
|
* @summary List PostgreSQL session basic diagnostics
|
|
@@ -507,6 +507,13 @@ export * from './key';
|
|
|
507
507
|
export * from './key-backup';
|
|
508
508
|
export * from './key-cluster';
|
|
509
509
|
export * from './key-list';
|
|
510
|
+
export * from './kingbase-diagnostic-source';
|
|
511
|
+
export * from './kingbase-diagnostic-source-status';
|
|
512
|
+
export * from './kingbase-lock-analysis';
|
|
513
|
+
export * from './kingbase-lock-row';
|
|
514
|
+
export * from './kingbase-session';
|
|
515
|
+
export * from './kingbase-session-detail';
|
|
516
|
+
export * from './kingbase-session-list';
|
|
510
517
|
export * from './koordinator-node-reservation';
|
|
511
518
|
export * from './koordinator-reservation-allocate-policy';
|
|
512
519
|
export * from './koordinator-reservation-resource-class';
|