kb-cloud-client-typescript 2.4.0-alpha.42 → 2.4.0-alpha.44
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 +104 -0
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +105 -0
- package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
- package/dist/adminapi/models/dms-execution-plan-planning-mode.d.ts +22 -0
- package/dist/adminapi/models/dms-execution-plan-planning-mode.d.ts.map +1 -0
- package/dist/adminapi/models/dms-execution-plan-planning-mode.js +26 -0
- package/dist/adminapi/models/dms-execution-plan-planning-mode.js.map +1 -0
- package/dist/adminapi/models/dms-execution-plan-result.d.ts +19 -0
- package/dist/adminapi/models/dms-execution-plan-result.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/postgresql-sqlfingerprint-explain-response.d.ts +87 -0
- package/dist/adminapi/models/postgresql-sqlfingerprint-explain-response.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-sqlfingerprint-explain-response.js +16 -0
- package/dist/adminapi/models/postgresql-sqlfingerprint-explain-response.js.map +1 -0
- package/dist/adminapi/models/postgresql-sqlfingerprint.d.ts +6 -0
- package/dist/adminapi/models/postgresql-sqlfingerprint.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.d.ts +104 -0
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +105 -0
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/models/dms-execution-plan-planning-mode.d.ts +22 -0
- package/dist/openapi/models/dms-execution-plan-planning-mode.d.ts.map +1 -0
- package/dist/openapi/models/dms-execution-plan-planning-mode.js +26 -0
- package/dist/openapi/models/dms-execution-plan-planning-mode.js.map +1 -0
- package/dist/openapi/models/dms-execution-plan-result.d.ts +19 -0
- package/dist/openapi/models/dms-execution-plan-result.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/postgresql-sqlfingerprint-explain-response.d.ts +87 -0
- package/dist/openapi/models/postgresql-sqlfingerprint-explain-response.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-sqlfingerprint-explain-response.js +16 -0
- package/dist/openapi/models/postgresql-sqlfingerprint-explain-response.js.map +1 -0
- package/dist/openapi/models/postgresql-sqlfingerprint.d.ts +6 -0
- package/dist/openapi/models/postgresql-sqlfingerprint.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +2 -0
- package/src/adminapi/apis/diagnostics-api.ts +184 -0
- package/src/adminapi/models/dms-execution-plan-planning-mode.ts +31 -0
- package/src/adminapi/models/dms-execution-plan-result.ts +21 -0
- package/src/adminapi/models/index.ts +2 -0
- package/src/adminapi/models/postgresql-sqlfingerprint-explain-response.ts +98 -0
- package/src/adminapi/models/postgresql-sqlfingerprint.ts +6 -0
- package/src/adminapi.yaml +145 -0
- package/src/openapi/.openapi-generator/FILES +2 -0
- package/src/openapi/apis/diagnostics-api.ts +184 -0
- package/src/openapi/models/dms-execution-plan-planning-mode.ts +31 -0
- package/src/openapi/models/dms-execution-plan-result.ts +21 -0
- package/src/openapi/models/index.ts +2 -0
- package/src/openapi/models/postgresql-sqlfingerprint-explain-response.ts +98 -0
- package/src/openapi/models/postgresql-sqlfingerprint.ts +6 -0
- package/src/openapi.yaml +3764 -3619
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
import type { DmsExecutionPlanPlanningMode } from './dms-execution-plan-planning-mode';
|
|
13
|
+
import type { DmsExecutionPlanResult } from './dms-execution-plan-result';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PostgresqlSQLFingerprintExplainResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PostgresqlSQLFingerprintExplainResponse {
|
|
20
|
+
/**
|
|
21
|
+
* PostgreSQL pg_stat_statements queryid represented as a string.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
24
|
+
*/
|
|
25
|
+
'queryID': string;
|
|
26
|
+
/**
|
|
27
|
+
* Stable SQL fingerprint identifier for UI grouping. Currently aligned with PostgreSQL pg_stat_statements queryid.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
30
|
+
*/
|
|
31
|
+
'fingerprint': string;
|
|
32
|
+
/**
|
|
33
|
+
* Database name from the requested SQL fingerprint identity.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
36
|
+
*/
|
|
37
|
+
'database': string;
|
|
38
|
+
/**
|
|
39
|
+
* Database user from the requested SQL fingerprint identity.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
42
|
+
*/
|
|
43
|
+
'user': string;
|
|
44
|
+
/**
|
|
45
|
+
* Top-level flag from the requested SQL fingerprint identity.
|
|
46
|
+
* @type {boolean}
|
|
47
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
48
|
+
*/
|
|
49
|
+
'topLevel': boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Server-side source used to resolve the parameterized SQL statement. Raw SQL is not returned.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
54
|
+
*/
|
|
55
|
+
'statementSource'?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Timestamp when the parameterized SQL statement was resolved.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
60
|
+
*/
|
|
61
|
+
'statementResolvedAt'?: string;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {DmsExecutionPlanPlanningMode}
|
|
65
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
66
|
+
*/
|
|
67
|
+
'planMode': DmsExecutionPlanPlanningMode;
|
|
68
|
+
/**
|
|
69
|
+
* Whether generic parameterized planning was used (planMode is generic). False means standard planning, not that historical parameter values were used. This endpoint never retrieves historical parameter values.
|
|
70
|
+
* @type {boolean}
|
|
71
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
72
|
+
*/
|
|
73
|
+
'parameterized': boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Number of parameters when DMS can determine it. It may be omitted for PostgreSQL generic-plan paths that do not expose the count.
|
|
76
|
+
* @type {number}
|
|
77
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
78
|
+
*/
|
|
79
|
+
'parameterCount'?: number | null;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {DmsExecutionPlanResult}
|
|
83
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
84
|
+
*/
|
|
85
|
+
'explainResult': DmsExecutionPlanResult;
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=postgresql-sqlfingerprint-explain-response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgresql-sqlfingerprint-explain-response.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/postgresql-sqlfingerprint-explain-response.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAGvF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAE1E;;;;GAIG;AACH,MAAM,WAAW,uCAAuC;IACpD;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,UAAU,EAAE,4BAA4B,CAAC;IACzC;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC;;;;OAIG;IACH,eAAe,EAAE,sBAAsB,CAAC;CAC3C"}
|
|
@@ -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=postgresql-sqlfingerprint-explain-response.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgresql-sqlfingerprint-explain-response.js","sourceRoot":"","sources":["../../../src/openapi/models/postgresql-sqlfingerprint-explain-response.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG"}
|
|
@@ -75,5 +75,11 @@ export interface PostgresqlSQLFingerprint {
|
|
|
75
75
|
* @memberof PostgresqlSQLFingerprint
|
|
76
76
|
*/
|
|
77
77
|
'user': string;
|
|
78
|
+
/**
|
|
79
|
+
* Whether pg_stat_statements recorded the statement as top-level. Legacy PostgreSQL versions without the toplevel column report true.
|
|
80
|
+
* @type {boolean}
|
|
81
|
+
* @memberof PostgresqlSQLFingerprint
|
|
82
|
+
*/
|
|
83
|
+
'topLevel': boolean;
|
|
78
84
|
}
|
|
79
85
|
//# sourceMappingURL=postgresql-sqlfingerprint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"postgresql-sqlfingerprint.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/postgresql-sqlfingerprint.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"postgresql-sqlfingerprint.d.ts","sourceRoot":"","sources":["../../../src/openapi/models/postgresql-sqlfingerprint.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,UAAU,EAAE,OAAO,CAAC;CACvB"}
|
package/package.json
CHANGED
|
@@ -393,6 +393,7 @@ models/dms-execution-plan-node-cost.ts
|
|
|
393
393
|
models/dms-execution-plan-node-rows.ts
|
|
394
394
|
models/dms-execution-plan-node-timing.ts
|
|
395
395
|
models/dms-execution-plan-node.ts
|
|
396
|
+
models/dms-execution-plan-planning-mode.ts
|
|
396
397
|
models/dms-execution-plan-raw-format.ts
|
|
397
398
|
models/dms-execution-plan-result.ts
|
|
398
399
|
models/dms-execution-plan-summary.ts
|
|
@@ -881,6 +882,7 @@ models/postgresql-space-analysis.ts
|
|
|
881
882
|
models/postgresql-space-source.ts
|
|
882
883
|
models/postgresql-space-summary.ts
|
|
883
884
|
models/postgresql-sqlanalysis.ts
|
|
885
|
+
models/postgresql-sqlfingerprint-explain-response.ts
|
|
884
886
|
models/postgresql-sqlfingerprint.ts
|
|
885
887
|
models/postgresql-storage-instance-usage.ts
|
|
886
888
|
models/postgresql-storage-overview.ts
|
|
@@ -68,6 +68,8 @@ import type { PostgresqlLockAnalysis } from '../models';
|
|
|
68
68
|
// @ts-ignore
|
|
69
69
|
import type { PostgresqlSQLAnalysis } from '../models';
|
|
70
70
|
// @ts-ignore
|
|
71
|
+
import type { PostgresqlSQLFingerprintExplainResponse } from '../models';
|
|
72
|
+
// @ts-ignore
|
|
71
73
|
import type { PostgresqlSession } from '../models';
|
|
72
74
|
// @ts-ignore
|
|
73
75
|
import type { PostgresqlSpaceAnalysis } from '../models';
|
|
@@ -139,6 +141,81 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
139
141
|
|
|
140
142
|
|
|
141
143
|
|
|
144
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
145
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
146
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
147
|
+
|
|
148
|
+
return {
|
|
149
|
+
url: toPathString(localVarUrlObj),
|
|
150
|
+
options: localVarRequestOptions,
|
|
151
|
+
};
|
|
152
|
+
},
|
|
153
|
+
/**
|
|
154
|
+
* Explicitly trigger a safe PostgreSQL EXPLAIN for one SQL fingerprint. The request does not accept raw SQL. DMS resolves the exact server-side parameterized SELECT statement identity independently of the ranking window, produces an estimated standard or generic plan without parameter sample values, rejects multiple statements, and never runs EXPLAIN ANALYZE or the original SQL. The plan uses current catalog statistics and the DMS connection context; it does not reconstruct the original role, search_path, session settings, parameter values, or historical actual plan.
|
|
155
|
+
* @summary Explain PostgreSQL SQL fingerprint
|
|
156
|
+
* @param {string} orgName Organization name
|
|
157
|
+
* @param {string} clusterName Cluster name
|
|
158
|
+
* @param {string} queryID PostgreSQL pg_stat_statements queryid represented as a string.
|
|
159
|
+
* @param {string} database Database name from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement.
|
|
160
|
+
* @param {string} user Database user from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement.
|
|
161
|
+
* @param {boolean} topLevel Top-level identity from the ranking row. Required to disambiguate the queryID on PostgreSQL versions that expose pg_stat_statements.toplevel.
|
|
162
|
+
* @param {string} [fingerprint] Optional fingerprint consistency guard. Currently aligned with PostgreSQL pg_stat_statements queryid.
|
|
163
|
+
* @param {*} [options] Override http request option.
|
|
164
|
+
* @throws {RequiredError}
|
|
165
|
+
*/
|
|
166
|
+
explainDiagnosticsPostgresqlSQLFingerprint: async (orgName: string, clusterName: string, queryID: string, database: string, user: string, topLevel: boolean, fingerprint?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
167
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
168
|
+
assertParamExists('explainDiagnosticsPostgresqlSQLFingerprint', 'orgName', orgName)
|
|
169
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
170
|
+
assertParamExists('explainDiagnosticsPostgresqlSQLFingerprint', 'clusterName', clusterName)
|
|
171
|
+
// verify required parameter 'queryID' is not null or undefined
|
|
172
|
+
assertParamExists('explainDiagnosticsPostgresqlSQLFingerprint', 'queryID', queryID)
|
|
173
|
+
// verify required parameter 'database' is not null or undefined
|
|
174
|
+
assertParamExists('explainDiagnosticsPostgresqlSQLFingerprint', 'database', database)
|
|
175
|
+
// verify required parameter 'user' is not null or undefined
|
|
176
|
+
assertParamExists('explainDiagnosticsPostgresqlSQLFingerprint', 'user', user)
|
|
177
|
+
// verify required parameter 'topLevel' is not null or undefined
|
|
178
|
+
assertParamExists('explainDiagnosticsPostgresqlSQLFingerprint', 'topLevel', topLevel)
|
|
179
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sqlAnalysis/queries/{queryID}/explain`
|
|
180
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
181
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
182
|
+
.replace(`{${"queryID"}}`, encodeURIComponent(String(queryID)));
|
|
183
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
184
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
185
|
+
let baseOptions;
|
|
186
|
+
if (configuration) {
|
|
187
|
+
baseOptions = configuration.baseOptions;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
191
|
+
const localVarHeaderParameter = {} as any;
|
|
192
|
+
const localVarQueryParameter = {} as any;
|
|
193
|
+
|
|
194
|
+
// authentication BearerToken required
|
|
195
|
+
// http bearer authentication required
|
|
196
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
197
|
+
|
|
198
|
+
// authentication DigestAuth required
|
|
199
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
200
|
+
|
|
201
|
+
if (database !== undefined) {
|
|
202
|
+
localVarQueryParameter['database'] = database;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
if (user !== undefined) {
|
|
206
|
+
localVarQueryParameter['user'] = user;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
if (topLevel !== undefined) {
|
|
210
|
+
localVarQueryParameter['topLevel'] = topLevel;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
if (fingerprint !== undefined) {
|
|
214
|
+
localVarQueryParameter['fingerprint'] = fingerprint;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
142
219
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
143
220
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
221
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1305,6 +1382,25 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
|
|
|
1305
1382
|
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.explainDiagnosticsElasticsearchAllocation']?.[localVarOperationServerIndex]?.url;
|
|
1306
1383
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1307
1384
|
},
|
|
1385
|
+
/**
|
|
1386
|
+
* Explicitly trigger a safe PostgreSQL EXPLAIN for one SQL fingerprint. The request does not accept raw SQL. DMS resolves the exact server-side parameterized SELECT statement identity independently of the ranking window, produces an estimated standard or generic plan without parameter sample values, rejects multiple statements, and never runs EXPLAIN ANALYZE or the original SQL. The plan uses current catalog statistics and the DMS connection context; it does not reconstruct the original role, search_path, session settings, parameter values, or historical actual plan.
|
|
1387
|
+
* @summary Explain PostgreSQL SQL fingerprint
|
|
1388
|
+
* @param {string} orgName Organization name
|
|
1389
|
+
* @param {string} clusterName Cluster name
|
|
1390
|
+
* @param {string} queryID PostgreSQL pg_stat_statements queryid represented as a string.
|
|
1391
|
+
* @param {string} database Database name from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement.
|
|
1392
|
+
* @param {string} user Database user from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement.
|
|
1393
|
+
* @param {boolean} topLevel Top-level identity from the ranking row. Required to disambiguate the queryID on PostgreSQL versions that expose pg_stat_statements.toplevel.
|
|
1394
|
+
* @param {string} [fingerprint] Optional fingerprint consistency guard. Currently aligned with PostgreSQL pg_stat_statements queryid.
|
|
1395
|
+
* @param {*} [options] Override http request option.
|
|
1396
|
+
* @throws {RequiredError}
|
|
1397
|
+
*/
|
|
1398
|
+
async explainDiagnosticsPostgresqlSQLFingerprint(orgName: string, clusterName: string, queryID: string, database: string, user: string, topLevel: boolean, fingerprint?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostgresqlSQLFingerprintExplainResponse>> {
|
|
1399
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.explainDiagnosticsPostgresqlSQLFingerprint(orgName, clusterName, queryID, database, user, topLevel, fingerprint, options);
|
|
1400
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1401
|
+
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.explainDiagnosticsPostgresqlSQLFingerprint']?.[localVarOperationServerIndex]?.url;
|
|
1402
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1403
|
+
},
|
|
1308
1404
|
/**
|
|
1309
1405
|
* Get a read-only Dameng SQL analysis snapshot from V$SYSTEM_LONG_EXEC_SQLS (long-running SQL) and V$SYSTEM_LARGE_MEM_SQLS (high-memory SQL). The response does not expose execution plans or remediation actions.
|
|
1310
1406
|
* @summary Get Dameng SQL analysis
|
|
@@ -1657,6 +1753,16 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
|
|
|
1657
1753
|
explainDiagnosticsElasticsearchAllocation(requestParameters: DiagnosticsApiExplainDiagnosticsElasticsearchAllocationRequest, options?: RawAxiosRequestConfig): AxiosPromise<ElasticsearchAllocationExplanation> {
|
|
1658
1754
|
return localVarFp.explainDiagnosticsElasticsearchAllocation(requestParameters.orgName, requestParameters.clusterName, requestParameters.index, requestParameters.shard, requestParameters.primary, requestParameters.currentNode, options).then((request) => request(axios, basePath));
|
|
1659
1755
|
},
|
|
1756
|
+
/**
|
|
1757
|
+
* Explicitly trigger a safe PostgreSQL EXPLAIN for one SQL fingerprint. The request does not accept raw SQL. DMS resolves the exact server-side parameterized SELECT statement identity independently of the ranking window, produces an estimated standard or generic plan without parameter sample values, rejects multiple statements, and never runs EXPLAIN ANALYZE or the original SQL. The plan uses current catalog statistics and the DMS connection context; it does not reconstruct the original role, search_path, session settings, parameter values, or historical actual plan.
|
|
1758
|
+
* @summary Explain PostgreSQL SQL fingerprint
|
|
1759
|
+
* @param {DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest} requestParameters Request parameters.
|
|
1760
|
+
* @param {*} [options] Override http request option.
|
|
1761
|
+
* @throws {RequiredError}
|
|
1762
|
+
*/
|
|
1763
|
+
explainDiagnosticsPostgresqlSQLFingerprint(requestParameters: DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSQLFingerprintExplainResponse> {
|
|
1764
|
+
return localVarFp.explainDiagnosticsPostgresqlSQLFingerprint(requestParameters.orgName, requestParameters.clusterName, requestParameters.queryID, requestParameters.database, requestParameters.user, requestParameters.topLevel, requestParameters.fingerprint, options).then((request) => request(axios, basePath));
|
|
1765
|
+
},
|
|
1660
1766
|
/**
|
|
1661
1767
|
* Get a read-only Dameng SQL analysis snapshot from V$SYSTEM_LONG_EXEC_SQLS (long-running SQL) and V$SYSTEM_LARGE_MEM_SQLS (high-memory SQL). The response does not expose execution plans or remediation actions.
|
|
1662
1768
|
* @summary Get Dameng SQL analysis
|
|
@@ -1886,6 +1992,16 @@ export interface DiagnosticsApiInterface {
|
|
|
1886
1992
|
*/
|
|
1887
1993
|
explainDiagnosticsElasticsearchAllocation(requestParameters: DiagnosticsApiExplainDiagnosticsElasticsearchAllocationRequest, options?: RawAxiosRequestConfig): AxiosPromise<ElasticsearchAllocationExplanation>;
|
|
1888
1994
|
|
|
1995
|
+
/**
|
|
1996
|
+
* Explicitly trigger a safe PostgreSQL EXPLAIN for one SQL fingerprint. The request does not accept raw SQL. DMS resolves the exact server-side parameterized SELECT statement identity independently of the ranking window, produces an estimated standard or generic plan without parameter sample values, rejects multiple statements, and never runs EXPLAIN ANALYZE or the original SQL. The plan uses current catalog statistics and the DMS connection context; it does not reconstruct the original role, search_path, session settings, parameter values, or historical actual plan.
|
|
1997
|
+
* @summary Explain PostgreSQL SQL fingerprint
|
|
1998
|
+
* @param {DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest} requestParameters Request parameters.
|
|
1999
|
+
* @param {*} [options] Override http request option.
|
|
2000
|
+
* @throws {RequiredError}
|
|
2001
|
+
* @memberof DiagnosticsApiInterface
|
|
2002
|
+
*/
|
|
2003
|
+
explainDiagnosticsPostgresqlSQLFingerprint(requestParameters: DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSQLFingerprintExplainResponse>;
|
|
2004
|
+
|
|
1889
2005
|
/**
|
|
1890
2006
|
* Get a read-only Dameng SQL analysis snapshot from V$SYSTEM_LONG_EXEC_SQLS (long-running SQL) and V$SYSTEM_LARGE_MEM_SQLS (high-memory SQL). The response does not expose execution plans or remediation actions.
|
|
1891
2007
|
* @summary Get Dameng SQL analysis
|
|
@@ -2147,6 +2263,62 @@ export interface DiagnosticsApiExplainDiagnosticsElasticsearchAllocationRequest
|
|
|
2147
2263
|
readonly currentNode?: string
|
|
2148
2264
|
}
|
|
2149
2265
|
|
|
2266
|
+
/**
|
|
2267
|
+
* Request parameters for explainDiagnosticsPostgresqlSQLFingerprint operation in DiagnosticsApi.
|
|
2268
|
+
* @export
|
|
2269
|
+
* @interface DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest
|
|
2270
|
+
*/
|
|
2271
|
+
export interface DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest {
|
|
2272
|
+
/**
|
|
2273
|
+
* Organization name
|
|
2274
|
+
* @type {string}
|
|
2275
|
+
* @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint
|
|
2276
|
+
*/
|
|
2277
|
+
readonly orgName: string
|
|
2278
|
+
|
|
2279
|
+
/**
|
|
2280
|
+
* Cluster name
|
|
2281
|
+
* @type {string}
|
|
2282
|
+
* @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint
|
|
2283
|
+
*/
|
|
2284
|
+
readonly clusterName: string
|
|
2285
|
+
|
|
2286
|
+
/**
|
|
2287
|
+
* PostgreSQL pg_stat_statements queryid represented as a string.
|
|
2288
|
+
* @type {string}
|
|
2289
|
+
* @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint
|
|
2290
|
+
*/
|
|
2291
|
+
readonly queryID: string
|
|
2292
|
+
|
|
2293
|
+
/**
|
|
2294
|
+
* Database name from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement.
|
|
2295
|
+
* @type {string}
|
|
2296
|
+
* @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint
|
|
2297
|
+
*/
|
|
2298
|
+
readonly database: string
|
|
2299
|
+
|
|
2300
|
+
/**
|
|
2301
|
+
* Database user from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement.
|
|
2302
|
+
* @type {string}
|
|
2303
|
+
* @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint
|
|
2304
|
+
*/
|
|
2305
|
+
readonly user: string
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* Top-level identity from the ranking row. Required to disambiguate the queryID on PostgreSQL versions that expose pg_stat_statements.toplevel.
|
|
2309
|
+
* @type {boolean}
|
|
2310
|
+
* @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint
|
|
2311
|
+
*/
|
|
2312
|
+
readonly topLevel: boolean
|
|
2313
|
+
|
|
2314
|
+
/**
|
|
2315
|
+
* Optional fingerprint consistency guard. Currently aligned with PostgreSQL pg_stat_statements queryid.
|
|
2316
|
+
* @type {string}
|
|
2317
|
+
* @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint
|
|
2318
|
+
*/
|
|
2319
|
+
readonly fingerprint?: string
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2150
2322
|
/**
|
|
2151
2323
|
* Request parameters for getDiagnosticsDamengSQLAnalysis operation in DiagnosticsApi.
|
|
2152
2324
|
* @export
|
|
@@ -2873,6 +3045,18 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
|
|
|
2873
3045
|
return DiagnosticsApiFp(this.configuration).explainDiagnosticsElasticsearchAllocation(requestParameters.orgName, requestParameters.clusterName, requestParameters.index, requestParameters.shard, requestParameters.primary, requestParameters.currentNode, options).then((request) => request(this.axios, this.basePath));
|
|
2874
3046
|
}
|
|
2875
3047
|
|
|
3048
|
+
/**
|
|
3049
|
+
* Explicitly trigger a safe PostgreSQL EXPLAIN for one SQL fingerprint. The request does not accept raw SQL. DMS resolves the exact server-side parameterized SELECT statement identity independently of the ranking window, produces an estimated standard or generic plan without parameter sample values, rejects multiple statements, and never runs EXPLAIN ANALYZE or the original SQL. The plan uses current catalog statistics and the DMS connection context; it does not reconstruct the original role, search_path, session settings, parameter values, or historical actual plan.
|
|
3050
|
+
* @summary Explain PostgreSQL SQL fingerprint
|
|
3051
|
+
* @param {DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest} requestParameters Request parameters.
|
|
3052
|
+
* @param {*} [options] Override http request option.
|
|
3053
|
+
* @throws {RequiredError}
|
|
3054
|
+
* @memberof DiagnosticsApi
|
|
3055
|
+
*/
|
|
3056
|
+
public explainDiagnosticsPostgresqlSQLFingerprint(requestParameters: DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest, options?: RawAxiosRequestConfig) {
|
|
3057
|
+
return DiagnosticsApiFp(this.configuration).explainDiagnosticsPostgresqlSQLFingerprint(requestParameters.orgName, requestParameters.clusterName, requestParameters.queryID, requestParameters.database, requestParameters.user, requestParameters.topLevel, requestParameters.fingerprint, options).then((request) => request(this.axios, this.basePath));
|
|
3058
|
+
}
|
|
3059
|
+
|
|
2876
3060
|
/**
|
|
2877
3061
|
* Get a read-only Dameng SQL analysis snapshot from V$SYSTEM_LONG_EXEC_SQLS (long-running SQL) and V$SYSTEM_LARGE_MEM_SQLS (high-memory SQL). The response does not expose execution plans or remediation actions.
|
|
2878
3062
|
* @summary Get Dameng SQL analysis
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const DmsExecutionPlanPlanningMode = {
|
|
24
|
+
standard: 'standard',
|
|
25
|
+
generic: 'generic'
|
|
26
|
+
} as const;
|
|
27
|
+
|
|
28
|
+
export type DmsExecutionPlanPlanningMode = typeof DmsExecutionPlanPlanningMode[keyof typeof DmsExecutionPlanPlanningMode];
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
@@ -24,6 +24,9 @@ import type { DmsExecutionPlanMode } from './dms-execution-plan-mode';
|
|
|
24
24
|
import type { DmsExecutionPlanNode } from './dms-execution-plan-node';
|
|
25
25
|
// May contain unused imports in some cases
|
|
26
26
|
// @ts-ignore
|
|
27
|
+
import type { DmsExecutionPlanPlanningMode } from './dms-execution-plan-planning-mode';
|
|
28
|
+
// May contain unused imports in some cases
|
|
29
|
+
// @ts-ignore
|
|
27
30
|
import type { DmsExecutionPlanRawFormat } from './dms-execution-plan-raw-format';
|
|
28
31
|
// May contain unused imports in some cases
|
|
29
32
|
// @ts-ignore
|
|
@@ -65,6 +68,24 @@ export interface DmsExecutionPlanResult {
|
|
|
65
68
|
* @memberof DmsExecutionPlanResult
|
|
66
69
|
*/
|
|
67
70
|
'mode'?: DmsExecutionPlanMode;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {DmsExecutionPlanPlanningMode}
|
|
74
|
+
* @memberof DmsExecutionPlanResult
|
|
75
|
+
*/
|
|
76
|
+
'planMode'?: DmsExecutionPlanPlanningMode;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
* @memberof DmsExecutionPlanResult
|
|
81
|
+
*/
|
|
82
|
+
'parameterized'?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof DmsExecutionPlanResult
|
|
87
|
+
*/
|
|
88
|
+
'parameterCount'?: number | null;
|
|
68
89
|
/**
|
|
69
90
|
*
|
|
70
91
|
* @type {boolean}
|
|
@@ -295,6 +295,7 @@ export * from './dms-execution-plan-node-conditions';
|
|
|
295
295
|
export * from './dms-execution-plan-node-cost';
|
|
296
296
|
export * from './dms-execution-plan-node-rows';
|
|
297
297
|
export * from './dms-execution-plan-node-timing';
|
|
298
|
+
export * from './dms-execution-plan-planning-mode';
|
|
298
299
|
export * from './dms-execution-plan-raw-format';
|
|
299
300
|
export * from './dms-execution-plan-result';
|
|
300
301
|
export * from './dms-execution-plan-summary';
|
|
@@ -776,6 +777,7 @@ export * from './postgresql-lock-analysis';
|
|
|
776
777
|
export * from './postgresql-lock-row';
|
|
777
778
|
export * from './postgresql-sqlanalysis';
|
|
778
779
|
export * from './postgresql-sqlfingerprint';
|
|
780
|
+
export * from './postgresql-sqlfingerprint-explain-response';
|
|
779
781
|
export * from './postgresql-session';
|
|
780
782
|
export * from './postgresql-space-analysis';
|
|
781
783
|
export * from './postgresql-space-source';
|
|
@@ -0,0 +1,98 @@
|
|
|
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 { DmsExecutionPlanPlanningMode } from './dms-execution-plan-planning-mode';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { DmsExecutionPlanResult } from './dms-execution-plan-result';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PostgresqlSQLFingerprintExplainResponse
|
|
27
|
+
*/
|
|
28
|
+
export interface PostgresqlSQLFingerprintExplainResponse {
|
|
29
|
+
/**
|
|
30
|
+
* PostgreSQL pg_stat_statements queryid represented as a string.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
33
|
+
*/
|
|
34
|
+
'queryID': string;
|
|
35
|
+
/**
|
|
36
|
+
* Stable SQL fingerprint identifier for UI grouping. Currently aligned with PostgreSQL pg_stat_statements queryid.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
39
|
+
*/
|
|
40
|
+
'fingerprint': string;
|
|
41
|
+
/**
|
|
42
|
+
* Database name from the requested SQL fingerprint identity.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
45
|
+
*/
|
|
46
|
+
'database': string;
|
|
47
|
+
/**
|
|
48
|
+
* Database user from the requested SQL fingerprint identity.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
51
|
+
*/
|
|
52
|
+
'user': string;
|
|
53
|
+
/**
|
|
54
|
+
* Top-level flag from the requested SQL fingerprint identity.
|
|
55
|
+
* @type {boolean}
|
|
56
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
57
|
+
*/
|
|
58
|
+
'topLevel': boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Server-side source used to resolve the parameterized SQL statement. Raw SQL is not returned.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
63
|
+
*/
|
|
64
|
+
'statementSource'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Timestamp when the parameterized SQL statement was resolved.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
69
|
+
*/
|
|
70
|
+
'statementResolvedAt'?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {DmsExecutionPlanPlanningMode}
|
|
74
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
75
|
+
*/
|
|
76
|
+
'planMode': DmsExecutionPlanPlanningMode;
|
|
77
|
+
/**
|
|
78
|
+
* Whether generic parameterized planning was used (planMode is generic). False means standard planning, not that historical parameter values were used. This endpoint never retrieves historical parameter values.
|
|
79
|
+
* @type {boolean}
|
|
80
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
81
|
+
*/
|
|
82
|
+
'parameterized': boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Number of parameters when DMS can determine it. It may be omitted for PostgreSQL generic-plan paths that do not expose the count.
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
87
|
+
*/
|
|
88
|
+
'parameterCount'?: number | null;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {DmsExecutionPlanResult}
|
|
92
|
+
* @memberof PostgresqlSQLFingerprintExplainResponse
|
|
93
|
+
*/
|
|
94
|
+
'explainResult': DmsExecutionPlanResult;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
@@ -80,5 +80,11 @@ export interface PostgresqlSQLFingerprint {
|
|
|
80
80
|
* @memberof PostgresqlSQLFingerprint
|
|
81
81
|
*/
|
|
82
82
|
'user': string;
|
|
83
|
+
/**
|
|
84
|
+
* Whether pg_stat_statements recorded the statement as top-level. Legacy PostgreSQL versions without the toplevel column report true.
|
|
85
|
+
* @type {boolean}
|
|
86
|
+
* @memberof PostgresqlSQLFingerprint
|
|
87
|
+
*/
|
|
88
|
+
'topLevel': boolean;
|
|
83
89
|
}
|
|
84
90
|
|