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.
Files changed (85) hide show
  1. package/dist/adminapi/apis/diagnostics-api.d.ts +72 -0
  2. package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/diagnostics-api.js +79 -0
  4. package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
  5. package/dist/adminapi/models/index.d.ts +6 -0
  6. package/dist/adminapi/models/index.d.ts.map +1 -1
  7. package/dist/adminapi/models/index.js +6 -0
  8. package/dist/adminapi/models/index.js.map +1 -1
  9. package/dist/adminapi/models/postgresql-deadlock-evidence.d.ts +31 -0
  10. package/dist/adminapi/models/postgresql-deadlock-evidence.d.ts.map +1 -0
  11. package/dist/adminapi/models/postgresql-deadlock-evidence.js +16 -0
  12. package/dist/adminapi/models/postgresql-deadlock-evidence.js.map +1 -0
  13. package/dist/adminapi/models/postgresql-lock-analysis.d.ts +77 -0
  14. package/dist/adminapi/models/postgresql-lock-analysis.d.ts.map +1 -0
  15. package/dist/adminapi/models/postgresql-lock-analysis.js +16 -0
  16. package/dist/adminapi/models/postgresql-lock-analysis.js.map +1 -0
  17. package/dist/adminapi/models/postgresql-lock-row.d.ts +109 -0
  18. package/dist/adminapi/models/postgresql-lock-row.d.ts.map +1 -0
  19. package/dist/adminapi/models/postgresql-lock-row.js +16 -0
  20. package/dist/adminapi/models/postgresql-lock-row.js.map +1 -0
  21. package/dist/adminapi/models/postgresql-wait-chain-edge.d.ts +31 -0
  22. package/dist/adminapi/models/postgresql-wait-chain-edge.d.ts.map +1 -0
  23. package/dist/adminapi/models/postgresql-wait-chain-edge.js +16 -0
  24. package/dist/adminapi/models/postgresql-wait-chain-edge.js.map +1 -0
  25. package/dist/adminapi/models/postgresql-wait-chain-node.d.ts +38 -0
  26. package/dist/adminapi/models/postgresql-wait-chain-node.d.ts.map +1 -0
  27. package/dist/adminapi/models/postgresql-wait-chain-node.js +16 -0
  28. package/dist/adminapi/models/postgresql-wait-chain-node.js.map +1 -0
  29. package/dist/adminapi/models/postgresql-wait-chain.d.ts +33 -0
  30. package/dist/adminapi/models/postgresql-wait-chain.d.ts.map +1 -0
  31. package/dist/adminapi/models/postgresql-wait-chain.js +16 -0
  32. package/dist/adminapi/models/postgresql-wait-chain.js.map +1 -0
  33. package/dist/openapi/apis/diagnostics-api.d.ts +72 -0
  34. package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
  35. package/dist/openapi/apis/diagnostics-api.js +79 -0
  36. package/dist/openapi/apis/diagnostics-api.js.map +1 -1
  37. package/dist/openapi/models/index.d.ts +6 -0
  38. package/dist/openapi/models/index.d.ts.map +1 -1
  39. package/dist/openapi/models/index.js +6 -0
  40. package/dist/openapi/models/index.js.map +1 -1
  41. package/dist/openapi/models/postgresql-deadlock-evidence.d.ts +31 -0
  42. package/dist/openapi/models/postgresql-deadlock-evidence.d.ts.map +1 -0
  43. package/dist/openapi/models/postgresql-deadlock-evidence.js +16 -0
  44. package/dist/openapi/models/postgresql-deadlock-evidence.js.map +1 -0
  45. package/dist/openapi/models/postgresql-lock-analysis.d.ts +77 -0
  46. package/dist/openapi/models/postgresql-lock-analysis.d.ts.map +1 -0
  47. package/dist/openapi/models/postgresql-lock-analysis.js +16 -0
  48. package/dist/openapi/models/postgresql-lock-analysis.js.map +1 -0
  49. package/dist/openapi/models/postgresql-lock-row.d.ts +109 -0
  50. package/dist/openapi/models/postgresql-lock-row.d.ts.map +1 -0
  51. package/dist/openapi/models/postgresql-lock-row.js +16 -0
  52. package/dist/openapi/models/postgresql-lock-row.js.map +1 -0
  53. package/dist/openapi/models/postgresql-wait-chain-edge.d.ts +31 -0
  54. package/dist/openapi/models/postgresql-wait-chain-edge.d.ts.map +1 -0
  55. package/dist/openapi/models/postgresql-wait-chain-edge.js +16 -0
  56. package/dist/openapi/models/postgresql-wait-chain-edge.js.map +1 -0
  57. package/dist/openapi/models/postgresql-wait-chain-node.d.ts +38 -0
  58. package/dist/openapi/models/postgresql-wait-chain-node.d.ts.map +1 -0
  59. package/dist/openapi/models/postgresql-wait-chain-node.js +16 -0
  60. package/dist/openapi/models/postgresql-wait-chain-node.js.map +1 -0
  61. package/dist/openapi/models/postgresql-wait-chain.d.ts +33 -0
  62. package/dist/openapi/models/postgresql-wait-chain.d.ts.map +1 -0
  63. package/dist/openapi/models/postgresql-wait-chain.js +16 -0
  64. package/dist/openapi/models/postgresql-wait-chain.js.map +1 -0
  65. package/package.json +1 -1
  66. package/src/adminapi/.openapi-generator/FILES +6 -0
  67. package/src/adminapi/apis/diagnostics-api.ts +126 -0
  68. package/src/adminapi/models/index.ts +6 -0
  69. package/src/adminapi/models/postgresql-deadlock-evidence.ts +36 -0
  70. package/src/adminapi/models/postgresql-lock-analysis.ts +90 -0
  71. package/src/adminapi/models/postgresql-lock-row.ts +114 -0
  72. package/src/adminapi/models/postgresql-wait-chain-edge.ts +36 -0
  73. package/src/adminapi/models/postgresql-wait-chain-node.ts +45 -0
  74. package/src/adminapi/models/postgresql-wait-chain.ts +42 -0
  75. package/src/adminapi.yaml +178 -0
  76. package/src/openapi/.openapi-generator/FILES +6 -0
  77. package/src/openapi/apis/diagnostics-api.ts +126 -0
  78. package/src/openapi/models/index.ts +6 -0
  79. package/src/openapi/models/postgresql-deadlock-evidence.ts +36 -0
  80. package/src/openapi/models/postgresql-lock-analysis.ts +90 -0
  81. package/src/openapi/models/postgresql-lock-row.ts +114 -0
  82. package/src/openapi/models/postgresql-wait-chain-edge.ts +36 -0
  83. package/src/openapi/models/postgresql-wait-chain-node.ts +45 -0
  84. package/src/openapi/models/postgresql-wait-chain.ts +42 -0
  85. package/src/openapi.yaml +178 -0
package/src/adminapi.yaml CHANGED
@@ -18955,6 +18955,49 @@ paths:
18955
18955
  $ref: '#/components/responses/404'
18956
18956
  '500':
18957
18957
  $ref: '#/components/responses/500'
18958
+ /admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}/lockAnalysis:
18959
+ get:
18960
+ tags:
18961
+ - diagnostics
18962
+ summary: Get PostgreSQL session lock analysis
18963
+ description: Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot.
18964
+ operationId: getDiagnosticsPostgresqlSessionLockAnalysis
18965
+ parameters:
18966
+ - name: orgName
18967
+ in: path
18968
+ description: Organization name
18969
+ required: true
18970
+ schema:
18971
+ type: string
18972
+ - name: clusterName
18973
+ in: path
18974
+ description: Cluster name
18975
+ required: true
18976
+ schema:
18977
+ type: string
18978
+ - name: pid
18979
+ in: path
18980
+ description: PostgreSQL backend process id.
18981
+ required: true
18982
+ schema:
18983
+ type: integer
18984
+ format: int64
18985
+ minimum: 1
18986
+ responses:
18987
+ '200':
18988
+ description: OK
18989
+ content:
18990
+ application/json:
18991
+ schema:
18992
+ $ref: '#/components/schemas/postgresqlLockAnalysis'
18993
+ '401':
18994
+ $ref: '#/components/responses/401'
18995
+ '403':
18996
+ $ref: '#/components/responses/403'
18997
+ '404':
18998
+ $ref: '#/components/responses/404'
18999
+ '500':
19000
+ $ref: '#/components/responses/500'
18958
19001
  /admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/accounts:
18959
19002
  get:
18960
19003
  description: list accounts in mongodb
@@ -35400,6 +35443,141 @@ components:
35400
35443
  type: string
35401
35444
  backendType:
35402
35445
  type: string
35446
+ postgresqlLockRow:
35447
+ type: object
35448
+ required:
35449
+ - pid
35450
+ - lockType
35451
+ - mode
35452
+ - granted
35453
+ properties:
35454
+ pid:
35455
+ type: integer
35456
+ format: int64
35457
+ lockType:
35458
+ type: string
35459
+ mode:
35460
+ type: string
35461
+ granted:
35462
+ type: boolean
35463
+ relationOid:
35464
+ type: string
35465
+ relationName:
35466
+ type: string
35467
+ databaseName:
35468
+ type: string
35469
+ transactionID:
35470
+ type: string
35471
+ virtualTransaction:
35472
+ type: string
35473
+ virtualXID:
35474
+ type: string
35475
+ tuple:
35476
+ type: string
35477
+ page:
35478
+ type: string
35479
+ classID:
35480
+ type: string
35481
+ objID:
35482
+ type: string
35483
+ objSubID:
35484
+ type: string
35485
+ postgresqlWaitChainNode:
35486
+ type: object
35487
+ required:
35488
+ - pid
35489
+ - role
35490
+ properties:
35491
+ pid:
35492
+ type: integer
35493
+ format: int64
35494
+ role:
35495
+ type: string
35496
+ description: Role in the selected session wait graph. Known values are selected, blocking, blocked, and related.
35497
+ session:
35498
+ $ref: '#/components/schemas/postgresqlSession'
35499
+ postgresqlWaitChainEdge:
35500
+ type: object
35501
+ required:
35502
+ - blockingPid
35503
+ - blockedPid
35504
+ properties:
35505
+ blockingPid:
35506
+ type: integer
35507
+ format: int64
35508
+ description: PID that blocks another session.
35509
+ blockedPid:
35510
+ type: integer
35511
+ format: int64
35512
+ description: PID that is blocked by another session.
35513
+ postgresqlWaitChain:
35514
+ type: object
35515
+ required:
35516
+ - nodes
35517
+ - edges
35518
+ properties:
35519
+ nodes:
35520
+ type: array
35521
+ items:
35522
+ $ref: '#/components/schemas/postgresqlWaitChainNode'
35523
+ edges:
35524
+ type: array
35525
+ items:
35526
+ $ref: '#/components/schemas/postgresqlWaitChainEdge'
35527
+ postgresqlDeadlockEvidence:
35528
+ type: object
35529
+ required:
35530
+ - detected
35531
+ - cyclePids
35532
+ properties:
35533
+ detected:
35534
+ type: boolean
35535
+ cyclePids:
35536
+ type: array
35537
+ items:
35538
+ type: integer
35539
+ format: int64
35540
+ postgresqlLockAnalysis:
35541
+ type: object
35542
+ required:
35543
+ - selectedSession
35544
+ - blockingSessions
35545
+ - blockedSessions
35546
+ - lockRows
35547
+ - waitChain
35548
+ - deadlock
35549
+ - cannotProve
35550
+ - warnings
35551
+ - capturedAt
35552
+ properties:
35553
+ selectedSession:
35554
+ $ref: '#/components/schemas/postgresqlSession'
35555
+ blockingSessions:
35556
+ type: array
35557
+ items:
35558
+ $ref: '#/components/schemas/postgresqlSession'
35559
+ blockedSessions:
35560
+ type: array
35561
+ items:
35562
+ $ref: '#/components/schemas/postgresqlSession'
35563
+ lockRows:
35564
+ type: array
35565
+ items:
35566
+ $ref: '#/components/schemas/postgresqlLockRow'
35567
+ waitChain:
35568
+ $ref: '#/components/schemas/postgresqlWaitChain'
35569
+ deadlock:
35570
+ $ref: '#/components/schemas/postgresqlDeadlockEvidence'
35571
+ cannotProve:
35572
+ type: boolean
35573
+ description: Whether the current snapshot cannot prove the lock relationship conclusively.
35574
+ warnings:
35575
+ type: array
35576
+ items:
35577
+ type: string
35578
+ capturedAt:
35579
+ type: string
35580
+ description: Snapshot capture timestamp in UTC.
35403
35581
  dbTDERequest:
35404
35582
  type: object
35405
35583
  properties:
@@ -650,7 +650,13 @@ models/phone-verification-request.ts
650
650
  models/platform-parameter-constraints.ts
651
651
  models/platform-parameter-list.ts
652
652
  models/platform-parameter.ts
653
+ models/postgresql-deadlock-evidence.ts
654
+ models/postgresql-lock-analysis.ts
655
+ models/postgresql-lock-row.ts
653
656
  models/postgresql-session.ts
657
+ models/postgresql-wait-chain-edge.ts
658
+ models/postgresql-wait-chain-node.ts
659
+ models/postgresql-wait-chain.ts
654
660
  models/pre-check-create.ts
655
661
  models/pre-check-result.ts
656
662
  models/pre-check-status.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 = `/api/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
 
@@ -563,7 +563,13 @@ export * from './phone-verification-request';
563
563
  export * from './platform-parameter';
564
564
  export * from './platform-parameter-constraints';
565
565
  export * from './platform-parameter-list';
566
+ export * from './postgresql-deadlock-evidence';
567
+ export * from './postgresql-lock-analysis';
568
+ export * from './postgresql-lock-row';
566
569
  export * from './postgresql-session';
570
+ export * from './postgresql-wait-chain';
571
+ export * from './postgresql-wait-chain-edge';
572
+ export * from './postgresql-wait-chain-node';
567
573
  export * from './pre-check-create';
568
574
  export * from './pre-check-result';
569
575
  export * from './pre-check-status';
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * 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.
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
+ * KubeBlocks Cloud API
5
+ * 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.
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
+ * KubeBlocks Cloud API
5
+ * 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.
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
+ * KubeBlocks Cloud API
5
+ * 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.
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
+