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

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 (50) hide show
  1. package/dist/adminapi/api.d.ts +1 -0
  2. package/dist/adminapi/api.d.ts.map +1 -1
  3. package/dist/adminapi/api.js +1 -0
  4. package/dist/adminapi/api.js.map +1 -1
  5. package/dist/adminapi/apis/database-parameters-api.d.ts +11 -11
  6. package/dist/adminapi/apis/database-parameters-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/database-parameters-api.js +10 -6
  8. package/dist/adminapi/apis/database-parameters-api.js.map +1 -1
  9. package/dist/adminapi/apis/diagnostics-api.d.ts +120 -0
  10. package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -0
  11. package/dist/adminapi/apis/diagnostics-api.js +143 -0
  12. package/dist/adminapi/apis/diagnostics-api.js.map +1 -0
  13. package/dist/adminapi/models/index.d.ts +1 -0
  14. package/dist/adminapi/models/index.d.ts.map +1 -1
  15. package/dist/adminapi/models/index.js +1 -0
  16. package/dist/adminapi/models/index.js.map +1 -1
  17. package/dist/adminapi/models/postgresql-session.d.ts +121 -0
  18. package/dist/adminapi/models/postgresql-session.d.ts.map +1 -0
  19. package/dist/adminapi/models/postgresql-session.js +16 -0
  20. package/dist/adminapi/models/postgresql-session.js.map +1 -0
  21. package/dist/openapi/api.d.ts +1 -0
  22. package/dist/openapi/api.d.ts.map +1 -1
  23. package/dist/openapi/api.js +1 -0
  24. package/dist/openapi/api.js.map +1 -1
  25. package/dist/openapi/apis/diagnostics-api.d.ts +120 -0
  26. package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -0
  27. package/dist/openapi/apis/diagnostics-api.js +143 -0
  28. package/dist/openapi/apis/diagnostics-api.js.map +1 -0
  29. package/dist/openapi/models/index.d.ts +1 -0
  30. package/dist/openapi/models/index.d.ts.map +1 -1
  31. package/dist/openapi/models/index.js +1 -0
  32. package/dist/openapi/models/index.js.map +1 -1
  33. package/dist/openapi/models/postgresql-session.d.ts +121 -0
  34. package/dist/openapi/models/postgresql-session.d.ts.map +1 -0
  35. package/dist/openapi/models/postgresql-session.js +16 -0
  36. package/dist/openapi/models/postgresql-session.js.map +1 -0
  37. package/package.json +1 -1
  38. package/src/adminapi/.openapi-generator/FILES +2 -0
  39. package/src/adminapi/api.ts +1 -0
  40. package/src/adminapi/apis/database-parameters-api.ts +15 -11
  41. package/src/adminapi/apis/diagnostics-api.ts +196 -0
  42. package/src/adminapi/models/index.ts +1 -0
  43. package/src/adminapi/models/postgresql-session.ts +126 -0
  44. package/src/adminapi.yaml +110 -0
  45. package/src/openapi/.openapi-generator/FILES +2 -0
  46. package/src/openapi/api.ts +1 -0
  47. package/src/openapi/apis/diagnostics-api.ts +196 -0
  48. package/src/openapi/models/index.ts +1 -0
  49. package/src/openapi/models/postgresql-session.ts +126 -0
  50. package/src/openapi.yaml +103 -0
package/src/adminapi.yaml CHANGED
@@ -71,6 +71,8 @@ tags:
71
71
  description: Platform Component APIs
72
72
  - name: AI Agent
73
73
  description: Chat With AI Agent APIs
74
+ - name: diagnostics
75
+ description: Diagnostics APIs
74
76
  paths:
75
77
  /admin/v1/user:
76
78
  get:
@@ -4382,11 +4384,13 @@ paths:
4382
4384
  - description: engine Name
4383
4385
  in: query
4384
4386
  name: engineName
4387
+ required: true
4385
4388
  schema:
4386
4389
  type: string
4387
4390
  - description: component type
4388
4391
  in: query
4389
4392
  name: component
4393
+ required: true
4390
4394
  schema:
4391
4395
  type: string
4392
4396
  responses:
@@ -18908,6 +18912,49 @@ paths:
18908
18912
  - session
18909
18913
  - rdbms
18910
18914
  - shared
18915
+ /admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}:
18916
+ get:
18917
+ tags:
18918
+ - diagnostics
18919
+ summary: Get PostgreSQL session basic diagnostics
18920
+ description: Get one PostgreSQL session basic diagnostics record by backend pid.
18921
+ operationId: getDiagnosticsPostgresqlSession
18922
+ parameters:
18923
+ - name: orgName
18924
+ in: path
18925
+ description: Organization name
18926
+ required: true
18927
+ schema:
18928
+ type: string
18929
+ - name: clusterName
18930
+ in: path
18931
+ description: Cluster name
18932
+ required: true
18933
+ schema:
18934
+ type: string
18935
+ - name: pid
18936
+ in: path
18937
+ description: PostgreSQL backend process id.
18938
+ required: true
18939
+ schema:
18940
+ type: integer
18941
+ format: int64
18942
+ minimum: 1
18943
+ responses:
18944
+ '200':
18945
+ description: OK
18946
+ content:
18947
+ application/json:
18948
+ schema:
18949
+ $ref: '#/components/schemas/postgresqlSession'
18950
+ '401':
18951
+ $ref: '#/components/responses/401'
18952
+ '403':
18953
+ $ref: '#/components/responses/403'
18954
+ '404':
18955
+ $ref: '#/components/responses/404'
18956
+ '500':
18957
+ $ref: '#/components/responses/500'
18911
18958
  /admin/v1/data/mongodb/organizations/{orgName}/clusters/{clusterName}/accounts:
18912
18959
  get:
18913
18960
  description: list accounts in mongodb
@@ -35293,6 +35340,66 @@ components:
35293
35340
  - name
35294
35341
  - role
35295
35342
  type: object
35343
+ postgresqlSession:
35344
+ type: object
35345
+ required:
35346
+ - pid
35347
+ - user
35348
+ - database
35349
+ - applicationName
35350
+ - clientAddr
35351
+ - clientPort
35352
+ - state
35353
+ - waitEventType
35354
+ - waitEvent
35355
+ - durationSeconds
35356
+ - xactDurationSeconds
35357
+ - queryDigest
35358
+ - querySummary
35359
+ - backendType
35360
+ properties:
35361
+ pid:
35362
+ type: integer
35363
+ format: int64
35364
+ user:
35365
+ type: string
35366
+ database:
35367
+ type: string
35368
+ applicationName:
35369
+ type: string
35370
+ clientAddr:
35371
+ type: string
35372
+ description: Client address.
35373
+ clientPort:
35374
+ type: string
35375
+ description: Client port.
35376
+ state:
35377
+ type: string
35378
+ waitEventType:
35379
+ type: string
35380
+ waitEvent:
35381
+ type: string
35382
+ backendStart:
35383
+ type: string
35384
+ description: Backend start timestamp if available.
35385
+ queryStart:
35386
+ type: string
35387
+ description: Query start timestamp if available.
35388
+ xactStart:
35389
+ type: string
35390
+ description: Transaction start timestamp if available.
35391
+ durationSeconds:
35392
+ type: integer
35393
+ format: int64
35394
+ xactDurationSeconds:
35395
+ type: integer
35396
+ format: int64
35397
+ queryDigest:
35398
+ type: string
35399
+ querySummary:
35400
+ type: string
35401
+ backendType:
35402
+ type: string
35296
35403
  dbTDERequest:
35297
35404
  type: object
35298
35405
  properties:
@@ -36657,6 +36764,9 @@ x-tagGroups:
36657
36764
  - name: AI Agent
36658
36765
  tags:
36659
36766
  - AI Agent
36767
+ - name: Diagnostics
36768
+ tags:
36769
+ - diagnostics
36660
36770
  - name: PlatformParameter
36661
36771
  tags:
36662
36772
  - platformParameter
@@ -27,6 +27,7 @@ apis/cluster-tag-api.ts
27
27
  apis/dameng-api.ts
28
28
  apis/data-replication-api.ts
29
29
  apis/database-api.ts
30
+ apis/diagnostics-api.ts
30
31
  apis/disaster-recovery-api.ts
31
32
  apis/dms-api.ts
32
33
  apis/enable-service-version-api.ts
@@ -649,6 +650,7 @@ models/phone-verification-request.ts
649
650
  models/platform-parameter-constraints.ts
650
651
  models/platform-parameter-list.ts
651
652
  models/platform-parameter.ts
653
+ models/postgresql-session.ts
652
654
  models/pre-check-create.ts
653
655
  models/pre-check-result.ts
654
656
  models/pre-check-status.ts
@@ -39,6 +39,7 @@ export * from './apis/cluster-tag-api';
39
39
  export * from './apis/dameng-api';
40
40
  export * from './apis/data-replication-api';
41
41
  export * from './apis/database-api';
42
+ export * from './apis/diagnostics-api';
42
43
  export * from './apis/disaster-recovery-api';
43
44
  export * from './apis/dms-api';
44
45
  export * from './apis/enable-service-version-api';
@@ -0,0 +1,196 @@
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
+ import type { Configuration } from '../configuration';
17
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
18
+ import globalAxios from 'axios';
19
+ // Some imports not used depending on template conditions
20
+ // @ts-ignore
21
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
22
+ // @ts-ignore
23
+ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
24
+ // @ts-ignore
25
+ import type { APIErrorResponse } from '../models';
26
+ // @ts-ignore
27
+ import type { PostgresqlSession } from '../models';
28
+ /**
29
+ * DiagnosticsApi - axios parameter creator
30
+ * @export
31
+ */
32
+ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configuration) {
33
+ return {
34
+ /**
35
+ * Get one PostgreSQL session basic diagnostics record by backend pid.
36
+ * @summary Get PostgreSQL session basic diagnostics
37
+ * @param {string} orgName Organization name
38
+ * @param {string} clusterName Cluster name
39
+ * @param {number} pid PostgreSQL backend process id.
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ getDiagnosticsPostgresqlSession: async (orgName: string, clusterName: string, pid: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ // verify required parameter 'orgName' is not null or undefined
45
+ assertParamExists('getDiagnosticsPostgresqlSession', 'orgName', orgName)
46
+ // verify required parameter 'clusterName' is not null or undefined
47
+ assertParamExists('getDiagnosticsPostgresqlSession', 'clusterName', clusterName)
48
+ // verify required parameter 'pid' is not null or undefined
49
+ assertParamExists('getDiagnosticsPostgresqlSession', 'pid', pid)
50
+ const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}`
51
+ .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
52
+ .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
53
+ .replace(`{${"pid"}}`, encodeURIComponent(String(pid)));
54
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
55
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
56
+ let baseOptions;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ }
60
+
61
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
62
+ const localVarHeaderParameter = {} as any;
63
+ const localVarQueryParameter = {} as any;
64
+
65
+ // authentication BearerToken required
66
+ // http bearer authentication required
67
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
68
+
69
+ // authentication DigestAuth required
70
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
71
+
72
+
73
+
74
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
75
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
+
78
+ return {
79
+ url: toPathString(localVarUrlObj),
80
+ options: localVarRequestOptions,
81
+ };
82
+ },
83
+ }
84
+ };
85
+
86
+ /**
87
+ * DiagnosticsApi - functional programming interface
88
+ * @export
89
+ */
90
+ export const DiagnosticsApiFp = function(configuration?: Configuration) {
91
+ const localVarAxiosParamCreator = DiagnosticsApiAxiosParamCreator(configuration)
92
+ return {
93
+ /**
94
+ * Get one PostgreSQL session basic diagnostics record by backend pid.
95
+ * @summary Get PostgreSQL session basic diagnostics
96
+ * @param {string} orgName Organization name
97
+ * @param {string} clusterName Cluster name
98
+ * @param {number} pid PostgreSQL backend process id.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ async getDiagnosticsPostgresqlSession(orgName: string, clusterName: string, pid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostgresqlSession>> {
103
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlSession(orgName, clusterName, pid, options);
104
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
105
+ const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSession']?.[localVarOperationServerIndex]?.url;
106
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
107
+ },
108
+ }
109
+ };
110
+
111
+ /**
112
+ * DiagnosticsApi - factory interface
113
+ * @export
114
+ */
115
+ export const DiagnosticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
116
+ const localVarFp = DiagnosticsApiFp(configuration)
117
+ return {
118
+ /**
119
+ * Get one PostgreSQL session basic diagnostics record by backend pid.
120
+ * @summary Get PostgreSQL session basic diagnostics
121
+ * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest} requestParameters Request parameters.
122
+ * @param {*} [options] Override http request option.
123
+ * @throws {RequiredError}
124
+ */
125
+ getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSession> {
126
+ return localVarFp.getDiagnosticsPostgresqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
127
+ },
128
+ };
129
+ };
130
+
131
+ /**
132
+ * DiagnosticsApi - interface
133
+ * @export
134
+ * @interface DiagnosticsApi
135
+ */
136
+ export interface DiagnosticsApiInterface {
137
+ /**
138
+ * Get one PostgreSQL session basic diagnostics record by backend pid.
139
+ * @summary Get PostgreSQL session basic diagnostics
140
+ * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest} requestParameters Request parameters.
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ * @memberof DiagnosticsApiInterface
144
+ */
145
+ getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSession>;
146
+
147
+ }
148
+
149
+ /**
150
+ * Request parameters for getDiagnosticsPostgresqlSession operation in DiagnosticsApi.
151
+ * @export
152
+ * @interface DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest
153
+ */
154
+ export interface DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest {
155
+ /**
156
+ * Organization name
157
+ * @type {string}
158
+ * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSession
159
+ */
160
+ readonly orgName: string
161
+
162
+ /**
163
+ * Cluster name
164
+ * @type {string}
165
+ * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSession
166
+ */
167
+ readonly clusterName: string
168
+
169
+ /**
170
+ * PostgreSQL backend process id.
171
+ * @type {number}
172
+ * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSession
173
+ */
174
+ readonly pid: number
175
+ }
176
+
177
+ /**
178
+ * DiagnosticsApi - object-oriented interface
179
+ * @export
180
+ * @class DiagnosticsApi
181
+ * @extends {BaseAPI}
182
+ */
183
+ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
184
+ /**
185
+ * Get one PostgreSQL session basic diagnostics record by backend pid.
186
+ * @summary Get PostgreSQL session basic diagnostics
187
+ * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest} requestParameters Request parameters.
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ * @memberof DiagnosticsApi
191
+ */
192
+ public getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig) {
193
+ return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath));
194
+ }
195
+ }
196
+
@@ -563,6 +563,7 @@ 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-session';
566
567
  export * from './pre-check-create';
567
568
  export * from './pre-check-result';
568
569
  export * from './pre-check-status';
@@ -0,0 +1,126 @@
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 PostgresqlSession
21
+ */
22
+ export interface PostgresqlSession {
23
+ /**
24
+ *
25
+ * @type {number}
26
+ * @memberof PostgresqlSession
27
+ */
28
+ 'pid': number;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof PostgresqlSession
33
+ */
34
+ 'user': string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof PostgresqlSession
39
+ */
40
+ 'database': string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof PostgresqlSession
45
+ */
46
+ 'applicationName': string;
47
+ /**
48
+ * Client address.
49
+ * @type {string}
50
+ * @memberof PostgresqlSession
51
+ */
52
+ 'clientAddr': string;
53
+ /**
54
+ * Client port.
55
+ * @type {string}
56
+ * @memberof PostgresqlSession
57
+ */
58
+ 'clientPort': string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof PostgresqlSession
63
+ */
64
+ 'state': string;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof PostgresqlSession
69
+ */
70
+ 'waitEventType': string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof PostgresqlSession
75
+ */
76
+ 'waitEvent': string;
77
+ /**
78
+ * Backend start timestamp if available.
79
+ * @type {string}
80
+ * @memberof PostgresqlSession
81
+ */
82
+ 'backendStart'?: string;
83
+ /**
84
+ * Query start timestamp if available.
85
+ * @type {string}
86
+ * @memberof PostgresqlSession
87
+ */
88
+ 'queryStart'?: string;
89
+ /**
90
+ * Transaction start timestamp if available.
91
+ * @type {string}
92
+ * @memberof PostgresqlSession
93
+ */
94
+ 'xactStart'?: string;
95
+ /**
96
+ *
97
+ * @type {number}
98
+ * @memberof PostgresqlSession
99
+ */
100
+ 'durationSeconds': number;
101
+ /**
102
+ *
103
+ * @type {number}
104
+ * @memberof PostgresqlSession
105
+ */
106
+ 'xactDurationSeconds': number;
107
+ /**
108
+ *
109
+ * @type {string}
110
+ * @memberof PostgresqlSession
111
+ */
112
+ 'queryDigest': string;
113
+ /**
114
+ *
115
+ * @type {string}
116
+ * @memberof PostgresqlSession
117
+ */
118
+ 'querySummary': string;
119
+ /**
120
+ *
121
+ * @type {string}
122
+ * @memberof PostgresqlSession
123
+ */
124
+ 'backendType': string;
125
+ }
126
+
package/src/openapi.yaml CHANGED
@@ -4666,6 +4666,49 @@ paths:
4666
4666
  - cluster
4667
4667
  - shared
4668
4668
  x-codegen-request-body-name: body
4669
+ /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}:
4670
+ get:
4671
+ tags:
4672
+ - diagnostics
4673
+ summary: Get PostgreSQL session basic diagnostics
4674
+ description: Get one PostgreSQL session basic diagnostics record by backend pid.
4675
+ operationId: getDiagnosticsPostgresqlSession
4676
+ parameters:
4677
+ - name: orgName
4678
+ in: path
4679
+ description: Organization name
4680
+ required: true
4681
+ schema:
4682
+ type: string
4683
+ - name: clusterName
4684
+ in: path
4685
+ description: Cluster name
4686
+ required: true
4687
+ schema:
4688
+ type: string
4689
+ - name: pid
4690
+ in: path
4691
+ description: PostgreSQL backend process id.
4692
+ required: true
4693
+ schema:
4694
+ type: integer
4695
+ format: int64
4696
+ minimum: 1
4697
+ responses:
4698
+ '200':
4699
+ description: OK
4700
+ content:
4701
+ application/json:
4702
+ schema:
4703
+ $ref: '#/components/schemas/postgresqlSession'
4704
+ '401':
4705
+ $ref: '#/components/responses/401'
4706
+ '403':
4707
+ $ref: '#/components/responses/403'
4708
+ '404':
4709
+ $ref: '#/components/responses/404'
4710
+ '500':
4711
+ $ref: '#/components/responses/500'
4669
4712
  /api/v1/organizations/{orgName}/clusters/{clusterName}/metrics:
4670
4713
  get:
4671
4714
  description: Query cluster metrics by specified metric name and instance name, support instant and range query
@@ -21362,6 +21405,66 @@ components:
21362
21405
  taskId:
21363
21406
  type: string
21364
21407
  description: Task ID if the operation is asynchronous (e.g. reconfigure)
21408
+ postgresqlSession:
21409
+ type: object
21410
+ required:
21411
+ - pid
21412
+ - user
21413
+ - database
21414
+ - applicationName
21415
+ - clientAddr
21416
+ - clientPort
21417
+ - state
21418
+ - waitEventType
21419
+ - waitEvent
21420
+ - durationSeconds
21421
+ - xactDurationSeconds
21422
+ - queryDigest
21423
+ - querySummary
21424
+ - backendType
21425
+ properties:
21426
+ pid:
21427
+ type: integer
21428
+ format: int64
21429
+ user:
21430
+ type: string
21431
+ database:
21432
+ type: string
21433
+ applicationName:
21434
+ type: string
21435
+ clientAddr:
21436
+ type: string
21437
+ description: Client address.
21438
+ clientPort:
21439
+ type: string
21440
+ description: Client port.
21441
+ state:
21442
+ type: string
21443
+ waitEventType:
21444
+ type: string
21445
+ waitEvent:
21446
+ type: string
21447
+ backendStart:
21448
+ type: string
21449
+ description: Backend start timestamp if available.
21450
+ queryStart:
21451
+ type: string
21452
+ description: Query start timestamp if available.
21453
+ xactStart:
21454
+ type: string
21455
+ description: Transaction start timestamp if available.
21456
+ durationSeconds:
21457
+ type: integer
21458
+ format: int64
21459
+ xactDurationSeconds:
21460
+ type: integer
21461
+ format: int64
21462
+ queryDigest:
21463
+ type: string
21464
+ querySummary:
21465
+ type: string
21466
+ backendType:
21467
+ type: string
21365
21468
  metricsQueryType:
21366
21469
  type: string
21367
21470
  enum: