kb-cloud-client-typescript 2.3.0-alpha.112 → 2.3.0-alpha.114

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 (100) hide show
  1. package/dist/adminapi/apis/billing-api.d.ts +18 -18
  2. package/dist/adminapi/apis/billing-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/billing-api.js +13 -9
  4. package/dist/adminapi/apis/billing-api.js.map +1 -1
  5. package/dist/adminapi/apis/diagnostics-api.d.ts +143 -0
  6. package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/diagnostics-api.js +158 -0
  8. package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
  9. package/dist/adminapi/models/index.d.ts +6 -0
  10. package/dist/adminapi/models/index.d.ts.map +1 -1
  11. package/dist/adminapi/models/index.js +6 -0
  12. package/dist/adminapi/models/index.js.map +1 -1
  13. package/dist/adminapi/models/postgresql-deadlock-evidence.d.ts +31 -0
  14. package/dist/adminapi/models/postgresql-deadlock-evidence.d.ts.map +1 -0
  15. package/dist/adminapi/models/postgresql-deadlock-evidence.js +16 -0
  16. package/dist/adminapi/models/postgresql-deadlock-evidence.js.map +1 -0
  17. package/dist/adminapi/models/postgresql-lock-analysis.d.ts +77 -0
  18. package/dist/adminapi/models/postgresql-lock-analysis.d.ts.map +1 -0
  19. package/dist/adminapi/models/postgresql-lock-analysis.js +16 -0
  20. package/dist/adminapi/models/postgresql-lock-analysis.js.map +1 -0
  21. package/dist/adminapi/models/postgresql-lock-row.d.ts +109 -0
  22. package/dist/adminapi/models/postgresql-lock-row.d.ts.map +1 -0
  23. package/dist/adminapi/models/postgresql-lock-row.js +16 -0
  24. package/dist/adminapi/models/postgresql-lock-row.js.map +1 -0
  25. package/dist/adminapi/models/postgresql-wait-chain-edge.d.ts +31 -0
  26. package/dist/adminapi/models/postgresql-wait-chain-edge.d.ts.map +1 -0
  27. package/dist/adminapi/models/postgresql-wait-chain-edge.js +16 -0
  28. package/dist/adminapi/models/postgresql-wait-chain-edge.js.map +1 -0
  29. package/dist/adminapi/models/postgresql-wait-chain-node.d.ts +38 -0
  30. package/dist/adminapi/models/postgresql-wait-chain-node.d.ts.map +1 -0
  31. package/dist/adminapi/models/postgresql-wait-chain-node.js +16 -0
  32. package/dist/adminapi/models/postgresql-wait-chain-node.js.map +1 -0
  33. package/dist/adminapi/models/postgresql-wait-chain.d.ts +33 -0
  34. package/dist/adminapi/models/postgresql-wait-chain.d.ts.map +1 -0
  35. package/dist/adminapi/models/postgresql-wait-chain.js +16 -0
  36. package/dist/adminapi/models/postgresql-wait-chain.js.map +1 -0
  37. package/dist/openapi/apis/billing-api.d.ts +18 -18
  38. package/dist/openapi/apis/billing-api.d.ts.map +1 -1
  39. package/dist/openapi/apis/billing-api.js +13 -9
  40. package/dist/openapi/apis/billing-api.js.map +1 -1
  41. package/dist/openapi/apis/diagnostics-api.d.ts +143 -0
  42. package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
  43. package/dist/openapi/apis/diagnostics-api.js +158 -0
  44. package/dist/openapi/apis/diagnostics-api.js.map +1 -1
  45. package/dist/openapi/apis/inspection-api.d.ts +0 -56
  46. package/dist/openapi/apis/inspection-api.d.ts.map +1 -1
  47. package/dist/openapi/apis/inspection-api.js +0 -71
  48. package/dist/openapi/apis/inspection-api.js.map +1 -1
  49. package/dist/openapi/models/index.d.ts +6 -0
  50. package/dist/openapi/models/index.d.ts.map +1 -1
  51. package/dist/openapi/models/index.js +6 -0
  52. package/dist/openapi/models/index.js.map +1 -1
  53. package/dist/openapi/models/postgresql-deadlock-evidence.d.ts +31 -0
  54. package/dist/openapi/models/postgresql-deadlock-evidence.d.ts.map +1 -0
  55. package/dist/openapi/models/postgresql-deadlock-evidence.js +16 -0
  56. package/dist/openapi/models/postgresql-deadlock-evidence.js.map +1 -0
  57. package/dist/openapi/models/postgresql-lock-analysis.d.ts +77 -0
  58. package/dist/openapi/models/postgresql-lock-analysis.d.ts.map +1 -0
  59. package/dist/openapi/models/postgresql-lock-analysis.js +16 -0
  60. package/dist/openapi/models/postgresql-lock-analysis.js.map +1 -0
  61. package/dist/openapi/models/postgresql-lock-row.d.ts +109 -0
  62. package/dist/openapi/models/postgresql-lock-row.d.ts.map +1 -0
  63. package/dist/openapi/models/postgresql-lock-row.js +16 -0
  64. package/dist/openapi/models/postgresql-lock-row.js.map +1 -0
  65. package/dist/openapi/models/postgresql-wait-chain-edge.d.ts +31 -0
  66. package/dist/openapi/models/postgresql-wait-chain-edge.d.ts.map +1 -0
  67. package/dist/openapi/models/postgresql-wait-chain-edge.js +16 -0
  68. package/dist/openapi/models/postgresql-wait-chain-edge.js.map +1 -0
  69. package/dist/openapi/models/postgresql-wait-chain-node.d.ts +38 -0
  70. package/dist/openapi/models/postgresql-wait-chain-node.d.ts.map +1 -0
  71. package/dist/openapi/models/postgresql-wait-chain-node.js +16 -0
  72. package/dist/openapi/models/postgresql-wait-chain-node.js.map +1 -0
  73. package/dist/openapi/models/postgresql-wait-chain.d.ts +33 -0
  74. package/dist/openapi/models/postgresql-wait-chain.d.ts.map +1 -0
  75. package/dist/openapi/models/postgresql-wait-chain.js +16 -0
  76. package/dist/openapi/models/postgresql-wait-chain.js.map +1 -0
  77. package/package.json +1 -1
  78. package/src/adminapi/.openapi-generator/FILES +6 -0
  79. package/src/adminapi/apis/billing-api.ts +27 -23
  80. package/src/adminapi/apis/diagnostics-api.ts +251 -0
  81. package/src/adminapi/models/index.ts +6 -0
  82. package/src/adminapi/models/postgresql-deadlock-evidence.ts +36 -0
  83. package/src/adminapi/models/postgresql-lock-analysis.ts +90 -0
  84. package/src/adminapi/models/postgresql-lock-row.ts +114 -0
  85. package/src/adminapi/models/postgresql-wait-chain-edge.ts +36 -0
  86. package/src/adminapi/models/postgresql-wait-chain-node.ts +45 -0
  87. package/src/adminapi/models/postgresql-wait-chain.ts +42 -0
  88. package/src/adminapi.yaml +227 -0
  89. package/src/openapi/.openapi-generator/FILES +6 -0
  90. package/src/openapi/apis/billing-api.ts +27 -23
  91. package/src/openapi/apis/diagnostics-api.ts +251 -0
  92. package/src/openapi/apis/inspection-api.ts +0 -105
  93. package/src/openapi/models/index.ts +6 -0
  94. package/src/openapi/models/postgresql-deadlock-evidence.ts +36 -0
  95. package/src/openapi/models/postgresql-lock-analysis.ts +90 -0
  96. package/src/openapi/models/postgresql-lock-row.ts +114 -0
  97. package/src/openapi/models/postgresql-wait-chain-edge.ts +36 -0
  98. package/src/openapi/models/postgresql-wait-chain-node.ts +45 -0
  99. package/src/openapi/models/postgresql-wait-chain.ts +42 -0
  100. package/src/openapi.yaml +227 -27
@@ -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,105 @@ 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
+
125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
128
+
129
+ return {
130
+ url: toPathString(localVarUrlObj),
131
+ options: localVarRequestOptions,
132
+ };
133
+ },
134
+ /**
135
+ * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
136
+ * @summary List PostgreSQL session basic diagnostics
137
+ * @param {string} orgName Organization name
138
+ * @param {string} clusterName Cluster name
139
+ * @param {number} [limit] Maximum number of sessions to return. Defaults to the backend limit when omitted.
140
+ * @param {*} [options] Override http request option.
141
+ * @throws {RequiredError}
142
+ */
143
+ listDiagnosticsPostgresqlSessions: async (orgName: string, clusterName: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
144
+ // verify required parameter 'orgName' is not null or undefined
145
+ assertParamExists('listDiagnosticsPostgresqlSessions', 'orgName', orgName)
146
+ // verify required parameter 'clusterName' is not null or undefined
147
+ assertParamExists('listDiagnosticsPostgresqlSessions', 'clusterName', clusterName)
148
+ const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions`
149
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
150
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153
+ let baseOptions;
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ }
157
+
158
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
159
+ const localVarHeaderParameter = {} as any;
160
+ const localVarQueryParameter = {} as any;
161
+
162
+ // authentication BearerToken required
163
+ // http bearer authentication required
164
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
165
+
166
+ // authentication DigestAuth required
167
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
168
+
169
+ if (limit !== undefined) {
170
+ localVarQueryParameter['limit'] = limit;
171
+ }
172
+
173
+
174
+
74
175
  setSearchParams(localVarUrlObj, localVarQueryParameter);
75
176
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
177
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -105,6 +206,36 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
105
206
  const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSession']?.[localVarOperationServerIndex]?.url;
106
207
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
107
208
  },
209
+ /**
210
+ * Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot.
211
+ * @summary Get PostgreSQL session lock analysis
212
+ * @param {string} orgName Organization name
213
+ * @param {string} clusterName Cluster name
214
+ * @param {number} pid PostgreSQL backend process id.
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ async getDiagnosticsPostgresqlSessionLockAnalysis(orgName: string, clusterName: string, pid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostgresqlLockAnalysis>> {
219
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlSessionLockAnalysis(orgName, clusterName, pid, options);
220
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
221
+ const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSessionLockAnalysis']?.[localVarOperationServerIndex]?.url;
222
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
223
+ },
224
+ /**
225
+ * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
226
+ * @summary List PostgreSQL session basic diagnostics
227
+ * @param {string} orgName Organization name
228
+ * @param {string} clusterName Cluster name
229
+ * @param {number} [limit] Maximum number of sessions to return. Defaults to the backend limit when omitted.
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ */
233
+ async listDiagnosticsPostgresqlSessions(orgName: string, clusterName: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PostgresqlSession>>> {
234
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDiagnosticsPostgresqlSessions(orgName, clusterName, limit, options);
235
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
236
+ const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsPostgresqlSessions']?.[localVarOperationServerIndex]?.url;
237
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
238
+ },
108
239
  }
109
240
  };
110
241
 
@@ -125,6 +256,26 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
125
256
  getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSession> {
126
257
  return localVarFp.getDiagnosticsPostgresqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
127
258
  },
259
+ /**
260
+ * Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot.
261
+ * @summary Get PostgreSQL session lock analysis
262
+ * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest} requestParameters Request parameters.
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlLockAnalysis> {
267
+ return localVarFp.getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
268
+ },
269
+ /**
270
+ * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
271
+ * @summary List PostgreSQL session basic diagnostics
272
+ * @param {DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest} requestParameters Request parameters.
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ */
276
+ listDiagnosticsPostgresqlSessions(requestParameters: DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<PostgresqlSession>> {
277
+ return localVarFp.listDiagnosticsPostgresqlSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(axios, basePath));
278
+ },
128
279
  };
129
280
  };
130
281
 
@@ -144,6 +295,26 @@ export interface DiagnosticsApiInterface {
144
295
  */
145
296
  getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSession>;
146
297
 
298
+ /**
299
+ * Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot.
300
+ * @summary Get PostgreSQL session lock analysis
301
+ * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest} requestParameters Request parameters.
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ * @memberof DiagnosticsApiInterface
305
+ */
306
+ getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlLockAnalysis>;
307
+
308
+ /**
309
+ * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
310
+ * @summary List PostgreSQL session basic diagnostics
311
+ * @param {DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest} requestParameters Request parameters.
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ * @memberof DiagnosticsApiInterface
315
+ */
316
+ listDiagnosticsPostgresqlSessions(requestParameters: DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<PostgresqlSession>>;
317
+
147
318
  }
148
319
 
149
320
  /**
@@ -174,6 +345,62 @@ export interface DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest {
174
345
  readonly pid: number
175
346
  }
176
347
 
348
+ /**
349
+ * Request parameters for getDiagnosticsPostgresqlSessionLockAnalysis operation in DiagnosticsApi.
350
+ * @export
351
+ * @interface DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest
352
+ */
353
+ export interface DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest {
354
+ /**
355
+ * Organization name
356
+ * @type {string}
357
+ * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysis
358
+ */
359
+ readonly orgName: string
360
+
361
+ /**
362
+ * Cluster name
363
+ * @type {string}
364
+ * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysis
365
+ */
366
+ readonly clusterName: string
367
+
368
+ /**
369
+ * PostgreSQL backend process id.
370
+ * @type {number}
371
+ * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysis
372
+ */
373
+ readonly pid: number
374
+ }
375
+
376
+ /**
377
+ * Request parameters for listDiagnosticsPostgresqlSessions operation in DiagnosticsApi.
378
+ * @export
379
+ * @interface DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest
380
+ */
381
+ export interface DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest {
382
+ /**
383
+ * Organization name
384
+ * @type {string}
385
+ * @memberof DiagnosticsApiListDiagnosticsPostgresqlSessions
386
+ */
387
+ readonly orgName: string
388
+
389
+ /**
390
+ * Cluster name
391
+ * @type {string}
392
+ * @memberof DiagnosticsApiListDiagnosticsPostgresqlSessions
393
+ */
394
+ readonly clusterName: string
395
+
396
+ /**
397
+ * Maximum number of sessions to return. Defaults to the backend limit when omitted.
398
+ * @type {number}
399
+ * @memberof DiagnosticsApiListDiagnosticsPostgresqlSessions
400
+ */
401
+ readonly limit?: number
402
+ }
403
+
177
404
  /**
178
405
  * DiagnosticsApi - object-oriented interface
179
406
  * @export
@@ -192,5 +419,29 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
192
419
  public getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig) {
193
420
  return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath));
194
421
  }
422
+
423
+ /**
424
+ * Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot.
425
+ * @summary Get PostgreSQL session lock analysis
426
+ * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest} requestParameters Request parameters.
427
+ * @param {*} [options] Override http request option.
428
+ * @throws {RequiredError}
429
+ * @memberof DiagnosticsApi
430
+ */
431
+ public getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig) {
432
+ return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath));
433
+ }
434
+
435
+ /**
436
+ * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
437
+ * @summary List PostgreSQL session basic diagnostics
438
+ * @param {DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest} requestParameters Request parameters.
439
+ * @param {*} [options] Override http request option.
440
+ * @throws {RequiredError}
441
+ * @memberof DiagnosticsApi
442
+ */
443
+ public listDiagnosticsPostgresqlSessions(requestParameters: DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest, options?: RawAxiosRequestConfig) {
444
+ return DiagnosticsApiFp(this.configuration).listDiagnosticsPostgresqlSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
445
+ }
195
446
  }
196
447
 
@@ -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
+