kb-cloud-client-typescript 2.3.0-alpha.111 → 2.3.0-alpha.113
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 +72 -0
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +79 -0
- package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +6 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +6 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/postgresql-deadlock-evidence.d.ts +31 -0
- package/dist/adminapi/models/postgresql-deadlock-evidence.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-deadlock-evidence.js +16 -0
- package/dist/adminapi/models/postgresql-deadlock-evidence.js.map +1 -0
- package/dist/adminapi/models/postgresql-lock-analysis.d.ts +77 -0
- package/dist/adminapi/models/postgresql-lock-analysis.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-lock-analysis.js +16 -0
- package/dist/adminapi/models/postgresql-lock-analysis.js.map +1 -0
- package/dist/adminapi/models/postgresql-lock-row.d.ts +109 -0
- package/dist/adminapi/models/postgresql-lock-row.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-lock-row.js +16 -0
- package/dist/adminapi/models/postgresql-lock-row.js.map +1 -0
- package/dist/adminapi/models/postgresql-wait-chain-edge.d.ts +31 -0
- package/dist/adminapi/models/postgresql-wait-chain-edge.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-wait-chain-edge.js +16 -0
- package/dist/adminapi/models/postgresql-wait-chain-edge.js.map +1 -0
- package/dist/adminapi/models/postgresql-wait-chain-node.d.ts +38 -0
- package/dist/adminapi/models/postgresql-wait-chain-node.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-wait-chain-node.js +16 -0
- package/dist/adminapi/models/postgresql-wait-chain-node.js.map +1 -0
- package/dist/adminapi/models/postgresql-wait-chain.d.ts +33 -0
- package/dist/adminapi/models/postgresql-wait-chain.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-wait-chain.js +16 -0
- package/dist/adminapi/models/postgresql-wait-chain.js.map +1 -0
- package/dist/openapi/apis/diagnostics-api.d.ts +72 -0
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +79 -0
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/models/index.d.ts +6 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +6 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/postgresql-deadlock-evidence.d.ts +31 -0
- package/dist/openapi/models/postgresql-deadlock-evidence.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-deadlock-evidence.js +16 -0
- package/dist/openapi/models/postgresql-deadlock-evidence.js.map +1 -0
- package/dist/openapi/models/postgresql-lock-analysis.d.ts +77 -0
- package/dist/openapi/models/postgresql-lock-analysis.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-lock-analysis.js +16 -0
- package/dist/openapi/models/postgresql-lock-analysis.js.map +1 -0
- package/dist/openapi/models/postgresql-lock-row.d.ts +109 -0
- package/dist/openapi/models/postgresql-lock-row.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-lock-row.js +16 -0
- package/dist/openapi/models/postgresql-lock-row.js.map +1 -0
- package/dist/openapi/models/postgresql-wait-chain-edge.d.ts +31 -0
- package/dist/openapi/models/postgresql-wait-chain-edge.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-wait-chain-edge.js +16 -0
- package/dist/openapi/models/postgresql-wait-chain-edge.js.map +1 -0
- package/dist/openapi/models/postgresql-wait-chain-node.d.ts +38 -0
- package/dist/openapi/models/postgresql-wait-chain-node.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-wait-chain-node.js +16 -0
- package/dist/openapi/models/postgresql-wait-chain-node.js.map +1 -0
- package/dist/openapi/models/postgresql-wait-chain.d.ts +33 -0
- package/dist/openapi/models/postgresql-wait-chain.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-wait-chain.js +16 -0
- package/dist/openapi/models/postgresql-wait-chain.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +6 -0
- package/src/adminapi/apis/diagnostics-api.ts +126 -0
- package/src/adminapi/models/index.ts +6 -0
- package/src/adminapi/models/postgresql-deadlock-evidence.ts +36 -0
- package/src/adminapi/models/postgresql-lock-analysis.ts +90 -0
- package/src/adminapi/models/postgresql-lock-row.ts +114 -0
- package/src/adminapi/models/postgresql-wait-chain-edge.ts +36 -0
- package/src/adminapi/models/postgresql-wait-chain-node.ts +45 -0
- package/src/adminapi/models/postgresql-wait-chain.ts +42 -0
- package/src/adminapi.yaml +178 -0
- package/src/openapi/.openapi-generator/FILES +6 -0
- package/src/openapi/apis/diagnostics-api.ts +126 -0
- package/src/openapi/models/index.ts +6 -0
- package/src/openapi/models/postgresql-deadlock-evidence.ts +36 -0
- package/src/openapi/models/postgresql-lock-analysis.ts +90 -0
- package/src/openapi/models/postgresql-lock-row.ts +114 -0
- package/src/openapi/models/postgresql-wait-chain-edge.ts +36 -0
- package/src/openapi/models/postgresql-wait-chain-node.ts +45 -0
- package/src/openapi/models/postgresql-wait-chain.ts +42 -0
- package/src/openapi.yaml +178 -0
|
@@ -718,7 +718,13 @@ models/pod-condition.ts
|
|
|
718
718
|
models/pod-owner-reference.ts
|
|
719
719
|
models/pod-resources.ts
|
|
720
720
|
models/pod.ts
|
|
721
|
+
models/postgresql-deadlock-evidence.ts
|
|
722
|
+
models/postgresql-lock-analysis.ts
|
|
723
|
+
models/postgresql-lock-row.ts
|
|
721
724
|
models/postgresql-session.ts
|
|
725
|
+
models/postgresql-wait-chain-edge.ts
|
|
726
|
+
models/postgresql-wait-chain-node.ts
|
|
727
|
+
models/postgresql-wait-chain.ts
|
|
722
728
|
models/pre-check-result.ts
|
|
723
729
|
models/pre-check-status.ts
|
|
724
730
|
models/pre-check-task-detail.ts
|
|
@@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import type { APIErrorResponse } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
+
import type { PostgresqlLockAnalysis } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
27
29
|
import type { PostgresqlSession } from '../models';
|
|
28
30
|
/**
|
|
29
31
|
* DiagnosticsApi - axios parameter creator
|
|
@@ -71,6 +73,55 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
71
73
|
|
|
72
74
|
|
|
73
75
|
|
|
76
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
79
|
+
|
|
80
|
+
return {
|
|
81
|
+
url: toPathString(localVarUrlObj),
|
|
82
|
+
options: localVarRequestOptions,
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
/**
|
|
86
|
+
* Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot.
|
|
87
|
+
* @summary Get PostgreSQL session lock analysis
|
|
88
|
+
* @param {string} orgName Organization name
|
|
89
|
+
* @param {string} clusterName Cluster name
|
|
90
|
+
* @param {number} pid PostgreSQL backend process id.
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
getDiagnosticsPostgresqlSessionLockAnalysis: async (orgName: string, clusterName: string, pid: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
96
|
+
assertParamExists('getDiagnosticsPostgresqlSessionLockAnalysis', 'orgName', orgName)
|
|
97
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
98
|
+
assertParamExists('getDiagnosticsPostgresqlSessionLockAnalysis', 'clusterName', clusterName)
|
|
99
|
+
// verify required parameter 'pid' is not null or undefined
|
|
100
|
+
assertParamExists('getDiagnosticsPostgresqlSessionLockAnalysis', 'pid', pid)
|
|
101
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}/lockAnalysis`
|
|
102
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
103
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
104
|
+
.replace(`{${"pid"}}`, encodeURIComponent(String(pid)));
|
|
105
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
+
let baseOptions;
|
|
108
|
+
if (configuration) {
|
|
109
|
+
baseOptions = configuration.baseOptions;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
113
|
+
const localVarHeaderParameter = {} as any;
|
|
114
|
+
const localVarQueryParameter = {} as any;
|
|
115
|
+
|
|
116
|
+
// authentication BearerToken required
|
|
117
|
+
// http bearer authentication required
|
|
118
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
|
+
|
|
120
|
+
// authentication DigestAuth required
|
|
121
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
74
125
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
126
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
127
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -105,6 +156,21 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
|
|
|
105
156
|
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSession']?.[localVarOperationServerIndex]?.url;
|
|
106
157
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
107
158
|
},
|
|
159
|
+
/**
|
|
160
|
+
* Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot.
|
|
161
|
+
* @summary Get PostgreSQL session lock analysis
|
|
162
|
+
* @param {string} orgName Organization name
|
|
163
|
+
* @param {string} clusterName Cluster name
|
|
164
|
+
* @param {number} pid PostgreSQL backend process id.
|
|
165
|
+
* @param {*} [options] Override http request option.
|
|
166
|
+
* @throws {RequiredError}
|
|
167
|
+
*/
|
|
168
|
+
async getDiagnosticsPostgresqlSessionLockAnalysis(orgName: string, clusterName: string, pid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostgresqlLockAnalysis>> {
|
|
169
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlSessionLockAnalysis(orgName, clusterName, pid, options);
|
|
170
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
171
|
+
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSessionLockAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
172
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
173
|
+
},
|
|
108
174
|
}
|
|
109
175
|
};
|
|
110
176
|
|
|
@@ -125,6 +191,16 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
|
|
|
125
191
|
getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSession> {
|
|
126
192
|
return localVarFp.getDiagnosticsPostgresqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
|
|
127
193
|
},
|
|
194
|
+
/**
|
|
195
|
+
* Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot.
|
|
196
|
+
* @summary Get PostgreSQL session lock analysis
|
|
197
|
+
* @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest} requestParameters Request parameters.
|
|
198
|
+
* @param {*} [options] Override http request option.
|
|
199
|
+
* @throws {RequiredError}
|
|
200
|
+
*/
|
|
201
|
+
getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlLockAnalysis> {
|
|
202
|
+
return localVarFp.getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
|
|
203
|
+
},
|
|
128
204
|
};
|
|
129
205
|
};
|
|
130
206
|
|
|
@@ -144,6 +220,16 @@ export interface DiagnosticsApiInterface {
|
|
|
144
220
|
*/
|
|
145
221
|
getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSession>;
|
|
146
222
|
|
|
223
|
+
/**
|
|
224
|
+
* Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot.
|
|
225
|
+
* @summary Get PostgreSQL session lock analysis
|
|
226
|
+
* @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest} requestParameters Request parameters.
|
|
227
|
+
* @param {*} [options] Override http request option.
|
|
228
|
+
* @throws {RequiredError}
|
|
229
|
+
* @memberof DiagnosticsApiInterface
|
|
230
|
+
*/
|
|
231
|
+
getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlLockAnalysis>;
|
|
232
|
+
|
|
147
233
|
}
|
|
148
234
|
|
|
149
235
|
/**
|
|
@@ -174,6 +260,34 @@ export interface DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest {
|
|
|
174
260
|
readonly pid: number
|
|
175
261
|
}
|
|
176
262
|
|
|
263
|
+
/**
|
|
264
|
+
* Request parameters for getDiagnosticsPostgresqlSessionLockAnalysis operation in DiagnosticsApi.
|
|
265
|
+
* @export
|
|
266
|
+
* @interface DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest
|
|
267
|
+
*/
|
|
268
|
+
export interface DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest {
|
|
269
|
+
/**
|
|
270
|
+
* Organization name
|
|
271
|
+
* @type {string}
|
|
272
|
+
* @memberof DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysis
|
|
273
|
+
*/
|
|
274
|
+
readonly orgName: string
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Cluster name
|
|
278
|
+
* @type {string}
|
|
279
|
+
* @memberof DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysis
|
|
280
|
+
*/
|
|
281
|
+
readonly clusterName: string
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* PostgreSQL backend process id.
|
|
285
|
+
* @type {number}
|
|
286
|
+
* @memberof DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysis
|
|
287
|
+
*/
|
|
288
|
+
readonly pid: number
|
|
289
|
+
}
|
|
290
|
+
|
|
177
291
|
/**
|
|
178
292
|
* DiagnosticsApi - object-oriented interface
|
|
179
293
|
* @export
|
|
@@ -192,5 +306,17 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
|
|
|
192
306
|
public getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig) {
|
|
193
307
|
return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath));
|
|
194
308
|
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot.
|
|
312
|
+
* @summary Get PostgreSQL session lock analysis
|
|
313
|
+
* @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest} requestParameters Request parameters.
|
|
314
|
+
* @param {*} [options] Override http request option.
|
|
315
|
+
* @throws {RequiredError}
|
|
316
|
+
* @memberof DiagnosticsApi
|
|
317
|
+
*/
|
|
318
|
+
public getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig) {
|
|
319
|
+
return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath));
|
|
320
|
+
}
|
|
195
321
|
}
|
|
196
322
|
|
|
@@ -620,7 +620,13 @@ export * from './pod';
|
|
|
620
620
|
export * from './pod-condition';
|
|
621
621
|
export * from './pod-owner-reference';
|
|
622
622
|
export * from './pod-resources';
|
|
623
|
+
export * from './postgresql-deadlock-evidence';
|
|
624
|
+
export * from './postgresql-lock-analysis';
|
|
625
|
+
export * from './postgresql-lock-row';
|
|
623
626
|
export * from './postgresql-session';
|
|
627
|
+
export * from './postgresql-wait-chain';
|
|
628
|
+
export * from './postgresql-wait-chain-edge';
|
|
629
|
+
export * from './postgresql-wait-chain-node';
|
|
624
630
|
export * from './pre-check-result';
|
|
625
631
|
export * from './pre-check-status';
|
|
626
632
|
export * from './pre-check-task-detail';
|
|
@@ -0,0 +1,36 @@
|
|
|
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 PostgresqlDeadlockEvidence
|
|
21
|
+
*/
|
|
22
|
+
export interface PostgresqlDeadlockEvidence {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof PostgresqlDeadlockEvidence
|
|
27
|
+
*/
|
|
28
|
+
'detected': boolean;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<number>}
|
|
32
|
+
* @memberof PostgresqlDeadlockEvidence
|
|
33
|
+
*/
|
|
34
|
+
'cyclePids': Array<number>;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { PostgresqlDeadlockEvidence } from './postgresql-deadlock-evidence';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { PostgresqlLockRow } from './postgresql-lock-row';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { PostgresqlSession } from './postgresql-session';
|
|
25
|
+
// May contain unused imports in some cases
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import type { PostgresqlWaitChain } from './postgresql-wait-chain';
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @export
|
|
32
|
+
* @interface PostgresqlLockAnalysis
|
|
33
|
+
*/
|
|
34
|
+
export interface PostgresqlLockAnalysis {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {PostgresqlSession}
|
|
38
|
+
* @memberof PostgresqlLockAnalysis
|
|
39
|
+
*/
|
|
40
|
+
'selectedSession': PostgresqlSession;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<PostgresqlSession>}
|
|
44
|
+
* @memberof PostgresqlLockAnalysis
|
|
45
|
+
*/
|
|
46
|
+
'blockingSessions': Array<PostgresqlSession>;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<PostgresqlSession>}
|
|
50
|
+
* @memberof PostgresqlLockAnalysis
|
|
51
|
+
*/
|
|
52
|
+
'blockedSessions': Array<PostgresqlSession>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Array<PostgresqlLockRow>}
|
|
56
|
+
* @memberof PostgresqlLockAnalysis
|
|
57
|
+
*/
|
|
58
|
+
'lockRows': Array<PostgresqlLockRow>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {PostgresqlWaitChain}
|
|
62
|
+
* @memberof PostgresqlLockAnalysis
|
|
63
|
+
*/
|
|
64
|
+
'waitChain': PostgresqlWaitChain;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {PostgresqlDeadlockEvidence}
|
|
68
|
+
* @memberof PostgresqlLockAnalysis
|
|
69
|
+
*/
|
|
70
|
+
'deadlock': PostgresqlDeadlockEvidence;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the current snapshot cannot prove the lock relationship conclusively.
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof PostgresqlLockAnalysis
|
|
75
|
+
*/
|
|
76
|
+
'cannotProve': boolean;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Array<string>}
|
|
80
|
+
* @memberof PostgresqlLockAnalysis
|
|
81
|
+
*/
|
|
82
|
+
'warnings': Array<string>;
|
|
83
|
+
/**
|
|
84
|
+
* Snapshot capture timestamp in UTC.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof PostgresqlLockAnalysis
|
|
87
|
+
*/
|
|
88
|
+
'capturedAt': string;
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,114 @@
|
|
|
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 PostgresqlLockRow
|
|
21
|
+
*/
|
|
22
|
+
export interface PostgresqlLockRow {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof PostgresqlLockRow
|
|
27
|
+
*/
|
|
28
|
+
'pid': number;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PostgresqlLockRow
|
|
33
|
+
*/
|
|
34
|
+
'lockType': string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PostgresqlLockRow
|
|
39
|
+
*/
|
|
40
|
+
'mode': string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof PostgresqlLockRow
|
|
45
|
+
*/
|
|
46
|
+
'granted': boolean;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof PostgresqlLockRow
|
|
51
|
+
*/
|
|
52
|
+
'relationOid'?: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof PostgresqlLockRow
|
|
57
|
+
*/
|
|
58
|
+
'relationName'?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof PostgresqlLockRow
|
|
63
|
+
*/
|
|
64
|
+
'databaseName'?: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof PostgresqlLockRow
|
|
69
|
+
*/
|
|
70
|
+
'transactionID'?: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof PostgresqlLockRow
|
|
75
|
+
*/
|
|
76
|
+
'virtualTransaction'?: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof PostgresqlLockRow
|
|
81
|
+
*/
|
|
82
|
+
'virtualXID'?: string;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof PostgresqlLockRow
|
|
87
|
+
*/
|
|
88
|
+
'tuple'?: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof PostgresqlLockRow
|
|
93
|
+
*/
|
|
94
|
+
'page'?: string;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof PostgresqlLockRow
|
|
99
|
+
*/
|
|
100
|
+
'classID'?: string;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof PostgresqlLockRow
|
|
105
|
+
*/
|
|
106
|
+
'objID'?: string;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof PostgresqlLockRow
|
|
111
|
+
*/
|
|
112
|
+
'objSubID'?: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
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 PostgresqlWaitChainEdge
|
|
21
|
+
*/
|
|
22
|
+
export interface PostgresqlWaitChainEdge {
|
|
23
|
+
/**
|
|
24
|
+
* PID that blocks another session.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof PostgresqlWaitChainEdge
|
|
27
|
+
*/
|
|
28
|
+
'blockingPid': number;
|
|
29
|
+
/**
|
|
30
|
+
* PID that is blocked by another session.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof PostgresqlWaitChainEdge
|
|
33
|
+
*/
|
|
34
|
+
'blockedPid': number;
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { PostgresqlSession } from './postgresql-session';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface PostgresqlWaitChainNode
|
|
24
|
+
*/
|
|
25
|
+
export interface PostgresqlWaitChainNode {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof PostgresqlWaitChainNode
|
|
30
|
+
*/
|
|
31
|
+
'pid': number;
|
|
32
|
+
/**
|
|
33
|
+
* Role in the selected session wait graph. Known values are selected, blocking, blocked, and related.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PostgresqlWaitChainNode
|
|
36
|
+
*/
|
|
37
|
+
'role': string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {PostgresqlSession}
|
|
41
|
+
* @memberof PostgresqlWaitChainNode
|
|
42
|
+
*/
|
|
43
|
+
'session'?: PostgresqlSession;
|
|
44
|
+
}
|
|
45
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { PostgresqlWaitChainEdge } from './postgresql-wait-chain-edge';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { PostgresqlWaitChainNode } from './postgresql-wait-chain-node';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PostgresqlWaitChain
|
|
27
|
+
*/
|
|
28
|
+
export interface PostgresqlWaitChain {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<PostgresqlWaitChainNode>}
|
|
32
|
+
* @memberof PostgresqlWaitChain
|
|
33
|
+
*/
|
|
34
|
+
'nodes': Array<PostgresqlWaitChainNode>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<PostgresqlWaitChainEdge>}
|
|
38
|
+
* @memberof PostgresqlWaitChain
|
|
39
|
+
*/
|
|
40
|
+
'edges': Array<PostgresqlWaitChainEdge>;
|
|
41
|
+
}
|
|
42
|
+
|