kb-cloud-client-typescript 2.3.0-alpha.194 → 2.3.0-alpha.196
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 +80 -0
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +84 -0
- package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
- package/dist/adminapi/models/environment-module.d.ts +6 -0
- package/dist/adminapi/models/environment-module.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +2 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +2 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/mysql-sqlanalysis.d.ts +98 -0
- package/dist/adminapi/models/mysql-sqlanalysis.d.ts.map +1 -0
- package/dist/adminapi/models/mysql-sqlanalysis.js +16 -0
- package/dist/adminapi/models/mysql-sqlanalysis.js.map +1 -0
- package/dist/adminapi/models/mysql-sqlfingerprint.d.ts +145 -0
- package/dist/adminapi/models/mysql-sqlfingerprint.d.ts.map +1 -0
- package/dist/adminapi/models/mysql-sqlfingerprint.js +16 -0
- package/dist/adminapi/models/mysql-sqlfingerprint.js.map +1 -0
- package/dist/openapi/apis/diagnostics-api.d.ts +80 -0
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +84 -0
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/models/environment-module.d.ts +6 -0
- package/dist/openapi/models/environment-module.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +2 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +2 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/mysql-sqlanalysis.d.ts +98 -0
- package/dist/openapi/models/mysql-sqlanalysis.d.ts.map +1 -0
- package/dist/openapi/models/mysql-sqlanalysis.js +16 -0
- package/dist/openapi/models/mysql-sqlanalysis.js.map +1 -0
- package/dist/openapi/models/mysql-sqlfingerprint.d.ts +145 -0
- package/dist/openapi/models/mysql-sqlfingerprint.d.ts.map +1 -0
- package/dist/openapi/models/mysql-sqlfingerprint.js +16 -0
- package/dist/openapi/models/mysql-sqlfingerprint.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +2 -0
- package/src/adminapi/apis/diagnostics-api.ts +140 -0
- package/src/adminapi/models/environment-module.ts +6 -0
- package/src/adminapi/models/index.ts +2 -0
- package/src/adminapi/models/mysql-sqlanalysis.ts +105 -0
- package/src/adminapi/models/mysql-sqlfingerprint.ts +150 -0
- package/src/adminapi.yaml +212 -0
- package/src/openapi/.openapi-generator/FILES +2 -0
- package/src/openapi/apis/diagnostics-api.ts +140 -0
- package/src/openapi/models/environment-module.ts +6 -0
- package/src/openapi/models/index.ts +2 -0
- package/src/openapi/models/mysql-sqlanalysis.ts +105 -0
- package/src/openapi/models/mysql-sqlfingerprint.ts +150 -0
- package/src/openapi.yaml +212 -0
|
@@ -679,6 +679,8 @@ models/monitor-data-sink-create.ts
|
|
|
679
679
|
models/monitor-data-sink-list.ts
|
|
680
680
|
models/monitor-data-sink-update.ts
|
|
681
681
|
models/monitor-data-sink.ts
|
|
682
|
+
models/mysql-sqlanalysis.ts
|
|
683
|
+
models/mysql-sqlfingerprint.ts
|
|
682
684
|
models/network-config.ts
|
|
683
685
|
models/network-mode-option-inner.ts
|
|
684
686
|
models/network-mode.ts
|
|
@@ -34,6 +34,8 @@ import type { DamengSessionListItem } from '../models';
|
|
|
34
34
|
// @ts-ignore
|
|
35
35
|
import type { DamengSpaceAnalysis } from '../models';
|
|
36
36
|
// @ts-ignore
|
|
37
|
+
import type { MysqlSQLAnalysis } from '../models';
|
|
38
|
+
// @ts-ignore
|
|
37
39
|
import type { PerformanceTrends } from '../models';
|
|
38
40
|
// @ts-ignore
|
|
39
41
|
import type { PostgresqlLockAnalysis } from '../models';
|
|
@@ -253,6 +255,61 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
253
255
|
|
|
254
256
|
|
|
255
257
|
|
|
258
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
259
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
260
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
261
|
+
|
|
262
|
+
return {
|
|
263
|
+
url: toPathString(localVarUrlObj),
|
|
264
|
+
options: localVarRequestOptions,
|
|
265
|
+
};
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
|
|
269
|
+
* @summary Get MySQL SQL analysis
|
|
270
|
+
* @param {string} orgName Organization name
|
|
271
|
+
* @param {string} clusterName Cluster name
|
|
272
|
+
* @param {number} [limit] Maximum number of SQL fingerprints to return. The backend applies its own upper bound.
|
|
273
|
+
* @param {string} [orderBy] Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime.
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
getDiagnosticsMysqlSQLAnalysis: async (orgName: string, clusterName: string, limit?: number, orderBy?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
278
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
279
|
+
assertParamExists('getDiagnosticsMysqlSQLAnalysis', 'orgName', orgName)
|
|
280
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
281
|
+
assertParamExists('getDiagnosticsMysqlSQLAnalysis', 'clusterName', clusterName)
|
|
282
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mysql/sqlAnalysis`
|
|
283
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
284
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
285
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
286
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
287
|
+
let baseOptions;
|
|
288
|
+
if (configuration) {
|
|
289
|
+
baseOptions = configuration.baseOptions;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
293
|
+
const localVarHeaderParameter = {} as any;
|
|
294
|
+
const localVarQueryParameter = {} as any;
|
|
295
|
+
|
|
296
|
+
// authentication BearerToken required
|
|
297
|
+
// http bearer authentication required
|
|
298
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
299
|
+
|
|
300
|
+
// authentication DigestAuth required
|
|
301
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
302
|
+
|
|
303
|
+
if (limit !== undefined) {
|
|
304
|
+
localVarQueryParameter['limit'] = limit;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
if (orderBy !== undefined) {
|
|
308
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
256
313
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
257
314
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
258
315
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -698,6 +755,22 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
|
|
|
698
755
|
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsDamengSpaceAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
699
756
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
700
757
|
},
|
|
758
|
+
/**
|
|
759
|
+
* Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
|
|
760
|
+
* @summary Get MySQL SQL analysis
|
|
761
|
+
* @param {string} orgName Organization name
|
|
762
|
+
* @param {string} clusterName Cluster name
|
|
763
|
+
* @param {number} [limit] Maximum number of SQL fingerprints to return. The backend applies its own upper bound.
|
|
764
|
+
* @param {string} [orderBy] Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime.
|
|
765
|
+
* @param {*} [options] Override http request option.
|
|
766
|
+
* @throws {RequiredError}
|
|
767
|
+
*/
|
|
768
|
+
async getDiagnosticsMysqlSQLAnalysis(orgName: string, clusterName: string, limit?: number, orderBy?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MysqlSQLAnalysis>> {
|
|
769
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMysqlSQLAnalysis(orgName, clusterName, limit, orderBy, options);
|
|
770
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
771
|
+
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMysqlSQLAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
772
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
773
|
+
},
|
|
701
774
|
/**
|
|
702
775
|
* Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
|
|
703
776
|
* @summary Get PostgreSQL performance trends
|
|
@@ -856,6 +929,16 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
|
|
|
856
929
|
getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSpaceAnalysis> {
|
|
857
930
|
return localVarFp.getDiagnosticsDamengSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.tableLimit, requestParameters.indexLimit, requestParameters.schema, requestParameters.skipBasic, options).then((request) => request(axios, basePath));
|
|
858
931
|
},
|
|
932
|
+
/**
|
|
933
|
+
* Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
|
|
934
|
+
* @summary Get MySQL SQL analysis
|
|
935
|
+
* @param {DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest} requestParameters Request parameters.
|
|
936
|
+
* @param {*} [options] Override http request option.
|
|
937
|
+
* @throws {RequiredError}
|
|
938
|
+
*/
|
|
939
|
+
getDiagnosticsMysqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<MysqlSQLAnalysis> {
|
|
940
|
+
return localVarFp.getDiagnosticsMysqlSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(axios, basePath));
|
|
941
|
+
},
|
|
859
942
|
/**
|
|
860
943
|
* Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
|
|
861
944
|
* @summary Get PostgreSQL performance trends
|
|
@@ -975,6 +1058,16 @@ export interface DiagnosticsApiInterface {
|
|
|
975
1058
|
*/
|
|
976
1059
|
getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSpaceAnalysis>;
|
|
977
1060
|
|
|
1061
|
+
/**
|
|
1062
|
+
* Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
|
|
1063
|
+
* @summary Get MySQL SQL analysis
|
|
1064
|
+
* @param {DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest} requestParameters Request parameters.
|
|
1065
|
+
* @param {*} [options] Override http request option.
|
|
1066
|
+
* @throws {RequiredError}
|
|
1067
|
+
* @memberof DiagnosticsApiInterface
|
|
1068
|
+
*/
|
|
1069
|
+
getDiagnosticsMysqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<MysqlSQLAnalysis>;
|
|
1070
|
+
|
|
978
1071
|
/**
|
|
979
1072
|
* Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
|
|
980
1073
|
* @summary Get PostgreSQL performance trends
|
|
@@ -1180,6 +1273,41 @@ export interface DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest {
|
|
|
1180
1273
|
readonly skipBasic?: boolean
|
|
1181
1274
|
}
|
|
1182
1275
|
|
|
1276
|
+
/**
|
|
1277
|
+
* Request parameters for getDiagnosticsMysqlSQLAnalysis operation in DiagnosticsApi.
|
|
1278
|
+
* @export
|
|
1279
|
+
* @interface DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest
|
|
1280
|
+
*/
|
|
1281
|
+
export interface DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest {
|
|
1282
|
+
/**
|
|
1283
|
+
* Organization name
|
|
1284
|
+
* @type {string}
|
|
1285
|
+
* @memberof DiagnosticsApiGetDiagnosticsMysqlSQLAnalysis
|
|
1286
|
+
*/
|
|
1287
|
+
readonly orgName: string
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* Cluster name
|
|
1291
|
+
* @type {string}
|
|
1292
|
+
* @memberof DiagnosticsApiGetDiagnosticsMysqlSQLAnalysis
|
|
1293
|
+
*/
|
|
1294
|
+
readonly clusterName: string
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* Maximum number of SQL fingerprints to return. The backend applies its own upper bound.
|
|
1298
|
+
* @type {number}
|
|
1299
|
+
* @memberof DiagnosticsApiGetDiagnosticsMysqlSQLAnalysis
|
|
1300
|
+
*/
|
|
1301
|
+
readonly limit?: number
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime.
|
|
1305
|
+
* @type {string}
|
|
1306
|
+
* @memberof DiagnosticsApiGetDiagnosticsMysqlSQLAnalysis
|
|
1307
|
+
*/
|
|
1308
|
+
readonly orderBy?: string
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1183
1311
|
/**
|
|
1184
1312
|
* Request parameters for getDiagnosticsPostgresqlPerformanceTrends operation in DiagnosticsApi.
|
|
1185
1313
|
* @export
|
|
@@ -1452,6 +1580,18 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
|
|
|
1452
1580
|
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));
|
|
1453
1581
|
}
|
|
1454
1582
|
|
|
1583
|
+
/**
|
|
1584
|
+
* Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
|
|
1585
|
+
* @summary Get MySQL SQL analysis
|
|
1586
|
+
* @param {DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest} requestParameters Request parameters.
|
|
1587
|
+
* @param {*} [options] Override http request option.
|
|
1588
|
+
* @throws {RequiredError}
|
|
1589
|
+
* @memberof DiagnosticsApi
|
|
1590
|
+
*/
|
|
1591
|
+
public getDiagnosticsMysqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest, options?: RawAxiosRequestConfig) {
|
|
1592
|
+
return DiagnosticsApiFp(this.configuration).getDiagnosticsMysqlSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath));
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1455
1595
|
/**
|
|
1456
1596
|
* Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
|
|
1457
1597
|
* @summary Get PostgreSQL performance trends
|
|
@@ -59,6 +59,12 @@ export interface EnvironmentModule {
|
|
|
59
59
|
* @memberof EnvironmentModule
|
|
60
60
|
*/
|
|
61
61
|
'location'?: string;
|
|
62
|
+
/**
|
|
63
|
+
* ID of the asynchronous task associated with the module\'s current operation state. It is omitted when the current state is not associated with a task.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof EnvironmentModule
|
|
66
|
+
*/
|
|
67
|
+
'operationTaskId'?: string;
|
|
62
68
|
/**
|
|
63
69
|
*
|
|
64
70
|
* @type {ClusterInfo}
|
|
@@ -579,6 +579,8 @@ export * from './monitor-data-sink';
|
|
|
579
579
|
export * from './monitor-data-sink-create';
|
|
580
580
|
export * from './monitor-data-sink-list';
|
|
581
581
|
export * from './monitor-data-sink-update';
|
|
582
|
+
export * from './mysql-sqlanalysis';
|
|
583
|
+
export * from './mysql-sqlfingerprint';
|
|
582
584
|
export * from './network-config';
|
|
583
585
|
export * from './network-mode';
|
|
584
586
|
export * from './network-mode-option-inner';
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { MysqlSQLFingerprint } from './mysql-sqlfingerprint';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface MysqlSQLAnalysis
|
|
24
|
+
*/
|
|
25
|
+
export interface MysqlSQLAnalysis {
|
|
26
|
+
/**
|
|
27
|
+
* Data source. M1 uses performance_schema.events_statements_summary_by_digest.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof MysqlSQLAnalysis
|
|
30
|
+
*/
|
|
31
|
+
'source': string;
|
|
32
|
+
/**
|
|
33
|
+
* Source status. Expected values are available or unavailable.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof MysqlSQLAnalysis
|
|
36
|
+
*/
|
|
37
|
+
'status': string;
|
|
38
|
+
/**
|
|
39
|
+
* Reason when status is unavailable, such as performance_schema_disabled, digest_consumer_disabled, permission_denied, or query_failed.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof MysqlSQLAnalysis
|
|
42
|
+
*/
|
|
43
|
+
'unavailableReason'?: string;
|
|
44
|
+
/**
|
|
45
|
+
* User-facing recovery guidance when SQL analysis is unavailable.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof MysqlSQLAnalysis
|
|
48
|
+
*/
|
|
49
|
+
'message'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Backend collection timestamp in UTC. It is not a sampling-window end time.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof MysqlSQLAnalysis
|
|
54
|
+
*/
|
|
55
|
+
'collectedAt': string;
|
|
56
|
+
/**
|
|
57
|
+
* Earliest FIRST_SEEN timestamp across currently visible digest rows, when available.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof MysqlSQLAnalysis
|
|
60
|
+
*/
|
|
61
|
+
'firstSeen'?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Latest LAST_SEEN timestamp across currently visible digest rows, when available.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof MysqlSQLAnalysis
|
|
66
|
+
*/
|
|
67
|
+
'lastSeen'?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Effective row limit after backend normalization.
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof MysqlSQLAnalysis
|
|
72
|
+
*/
|
|
73
|
+
'limit': number;
|
|
74
|
+
/**
|
|
75
|
+
* Effective sort key. Expected values are totalTime, meanTime, maxTime, or calls.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof MysqlSQLAnalysis
|
|
78
|
+
*/
|
|
79
|
+
'orderBy': string;
|
|
80
|
+
/**
|
|
81
|
+
* Total execution time in milliseconds across all visible digest rows, not limited to the returned top-N items.
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof MysqlSQLAnalysis
|
|
84
|
+
*/
|
|
85
|
+
'totalTimeMsAll'?: number | null;
|
|
86
|
+
/**
|
|
87
|
+
* Total execution count across all visible digest rows, not limited to the returned top-N items.
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof MysqlSQLAnalysis
|
|
90
|
+
*/
|
|
91
|
+
'callsAll'?: number | null;
|
|
92
|
+
/**
|
|
93
|
+
* Number of statement digests not recorded because the digest table was full, when exposed by the server.
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof MysqlSQLAnalysis
|
|
96
|
+
*/
|
|
97
|
+
'digestLost'?: number | null;
|
|
98
|
+
/**
|
|
99
|
+
* SQL fingerprint ranking rows from Performance Schema. The list may be empty when no statement statistics exist.
|
|
100
|
+
* @type {Array<MysqlSQLFingerprint>}
|
|
101
|
+
* @memberof MysqlSQLAnalysis
|
|
102
|
+
*/
|
|
103
|
+
'items': Array<MysqlSQLFingerprint>;
|
|
104
|
+
}
|
|
105
|
+
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface MysqlSQLFingerprint
|
|
21
|
+
*/
|
|
22
|
+
export interface MysqlSQLFingerprint {
|
|
23
|
+
/**
|
|
24
|
+
* MySQL Performance Schema DIGEST value.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof MysqlSQLFingerprint
|
|
27
|
+
*/
|
|
28
|
+
'queryID': string;
|
|
29
|
+
/**
|
|
30
|
+
* Stable SQL fingerprint identifier. M1 uses DIGEST.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof MysqlSQLFingerprint
|
|
33
|
+
*/
|
|
34
|
+
'fingerprint': string;
|
|
35
|
+
/**
|
|
36
|
+
* Normalized DIGEST_TEXT. Raw SQL text is intentionally not returned.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof MysqlSQLFingerprint
|
|
39
|
+
*/
|
|
40
|
+
'querySummary': string;
|
|
41
|
+
/**
|
|
42
|
+
* Number of executions accumulated in the current digest row.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof MysqlSQLFingerprint
|
|
45
|
+
*/
|
|
46
|
+
'calls': number;
|
|
47
|
+
/**
|
|
48
|
+
* Total statement wait time in milliseconds.
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof MysqlSQLFingerprint
|
|
51
|
+
*/
|
|
52
|
+
'totalTimeMs': number;
|
|
53
|
+
/**
|
|
54
|
+
* Mean statement wait time in milliseconds.
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof MysqlSQLFingerprint
|
|
57
|
+
*/
|
|
58
|
+
'meanTimeMs': number;
|
|
59
|
+
/**
|
|
60
|
+
* Maximum statement wait time in milliseconds.
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof MysqlSQLFingerprint
|
|
63
|
+
*/
|
|
64
|
+
'maxTimeMs': number;
|
|
65
|
+
/**
|
|
66
|
+
* Sum of rows sent and rows affected.
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof MysqlSQLFingerprint
|
|
69
|
+
*/
|
|
70
|
+
'rows': number;
|
|
71
|
+
/**
|
|
72
|
+
* Total rows sent to clients.
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof MysqlSQLFingerprint
|
|
75
|
+
*/
|
|
76
|
+
'rowsSent': number;
|
|
77
|
+
/**
|
|
78
|
+
* Total rows affected by statements.
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof MysqlSQLFingerprint
|
|
81
|
+
*/
|
|
82
|
+
'rowsAffected': number;
|
|
83
|
+
/**
|
|
84
|
+
* Total rows examined by statements.
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof MysqlSQLFingerprint
|
|
87
|
+
*/
|
|
88
|
+
'rowsExamined': number;
|
|
89
|
+
/**
|
|
90
|
+
* Total statement lock time in milliseconds.
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof MysqlSQLFingerprint
|
|
93
|
+
*/
|
|
94
|
+
'lockTimeMs': number;
|
|
95
|
+
/**
|
|
96
|
+
* Total statement errors.
|
|
97
|
+
* @type {number}
|
|
98
|
+
* @memberof MysqlSQLFingerprint
|
|
99
|
+
*/
|
|
100
|
+
'errors': number;
|
|
101
|
+
/**
|
|
102
|
+
* Total statement warnings.
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @memberof MysqlSQLFingerprint
|
|
105
|
+
*/
|
|
106
|
+
'warnings': number;
|
|
107
|
+
/**
|
|
108
|
+
* Total internal temporary tables created.
|
|
109
|
+
* @type {number}
|
|
110
|
+
* @memberof MysqlSQLFingerprint
|
|
111
|
+
*/
|
|
112
|
+
'tmpTables': number;
|
|
113
|
+
/**
|
|
114
|
+
* Total internal on-disk temporary tables created.
|
|
115
|
+
* @type {number}
|
|
116
|
+
* @memberof MysqlSQLFingerprint
|
|
117
|
+
*/
|
|
118
|
+
'tmpDiskTables': number;
|
|
119
|
+
/**
|
|
120
|
+
* Executions that used no index.
|
|
121
|
+
* @type {number}
|
|
122
|
+
* @memberof MysqlSQLFingerprint
|
|
123
|
+
*/
|
|
124
|
+
'noIndexUsed': number;
|
|
125
|
+
/**
|
|
126
|
+
* Executions for which no good index was found.
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @memberof MysqlSQLFingerprint
|
|
129
|
+
*/
|
|
130
|
+
'noGoodIndexUsed': number;
|
|
131
|
+
/**
|
|
132
|
+
* Default schema name associated with the digest row.
|
|
133
|
+
* @type {string}
|
|
134
|
+
* @memberof MysqlSQLFingerprint
|
|
135
|
+
*/
|
|
136
|
+
'database': string;
|
|
137
|
+
/**
|
|
138
|
+
* UTC timestamp when the digest was first observed.
|
|
139
|
+
* @type {string}
|
|
140
|
+
* @memberof MysqlSQLFingerprint
|
|
141
|
+
*/
|
|
142
|
+
'firstSeen'?: string;
|
|
143
|
+
/**
|
|
144
|
+
* UTC timestamp when the digest was most recently observed.
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof MysqlSQLFingerprint
|
|
147
|
+
*/
|
|
148
|
+
'lastSeen'?: string;
|
|
149
|
+
}
|
|
150
|
+
|