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.
- package/dist/adminapi/apis/billing-api.d.ts +18 -18
- package/dist/adminapi/apis/billing-api.d.ts.map +1 -1
- package/dist/adminapi/apis/billing-api.js +13 -9
- package/dist/adminapi/apis/billing-api.js.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.d.ts +143 -0
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +158 -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/billing-api.d.ts +18 -18
- package/dist/openapi/apis/billing-api.d.ts.map +1 -1
- package/dist/openapi/apis/billing-api.js +13 -9
- package/dist/openapi/apis/billing-api.js.map +1 -1
- package/dist/openapi/apis/diagnostics-api.d.ts +143 -0
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +158 -0
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/apis/inspection-api.d.ts +0 -56
- package/dist/openapi/apis/inspection-api.d.ts.map +1 -1
- package/dist/openapi/apis/inspection-api.js +0 -71
- package/dist/openapi/apis/inspection-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/billing-api.ts +27 -23
- package/src/adminapi/apis/diagnostics-api.ts +251 -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 +227 -0
- package/src/openapi/.openapi-generator/FILES +6 -0
- package/src/openapi/apis/billing-api.ts +27 -23
- package/src/openapi/apis/diagnostics-api.ts +251 -0
- package/src/openapi/apis/inspection-api.ts +0 -105
- 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 +227 -27
package/src/adminapi.yaml
CHANGED
|
@@ -18912,6 +18912,92 @@ paths:
|
|
|
18912
18912
|
- session
|
|
18913
18913
|
- rdbms
|
|
18914
18914
|
- shared
|
|
18915
|
+
/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions:
|
|
18916
|
+
get:
|
|
18917
|
+
tags:
|
|
18918
|
+
- diagnostics
|
|
18919
|
+
summary: List PostgreSQL session basic diagnostics
|
|
18920
|
+
description: List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
18921
|
+
operationId: listDiagnosticsPostgresqlSessions
|
|
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: limit
|
|
18936
|
+
in: query
|
|
18937
|
+
description: Maximum number of sessions to return. Defaults to the backend limit when omitted.
|
|
18938
|
+
required: false
|
|
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/postgresqlSessionList'
|
|
18950
|
+
'400':
|
|
18951
|
+
$ref: '#/components/responses/400'
|
|
18952
|
+
'401':
|
|
18953
|
+
$ref: '#/components/responses/401'
|
|
18954
|
+
'403':
|
|
18955
|
+
$ref: '#/components/responses/403'
|
|
18956
|
+
'500':
|
|
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'
|
|
18915
19001
|
/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}:
|
|
18916
19002
|
get:
|
|
18917
19003
|
tags:
|
|
@@ -19906,11 +19992,13 @@ paths:
|
|
|
19906
19992
|
- description: The type of aggregation time
|
|
19907
19993
|
in: query
|
|
19908
19994
|
name: aggregationTime
|
|
19995
|
+
required: true
|
|
19909
19996
|
schema:
|
|
19910
19997
|
$ref: '#/components/schemas/aggregationTimeType'
|
|
19911
19998
|
- description: The type of aggregation group
|
|
19912
19999
|
in: query
|
|
19913
20000
|
name: aggregationGroup
|
|
20001
|
+
required: true
|
|
19914
20002
|
schema:
|
|
19915
20003
|
$ref: '#/components/schemas/aggregationGroupType'
|
|
19916
20004
|
- $ref: '#/components/parameters/startTime'
|
|
@@ -35400,6 +35488,145 @@ components:
|
|
|
35400
35488
|
type: string
|
|
35401
35489
|
backendType:
|
|
35402
35490
|
type: string
|
|
35491
|
+
postgresqlSessionList:
|
|
35492
|
+
type: array
|
|
35493
|
+
items:
|
|
35494
|
+
$ref: '#/components/schemas/postgresqlSession'
|
|
35495
|
+
postgresqlLockRow:
|
|
35496
|
+
type: object
|
|
35497
|
+
required:
|
|
35498
|
+
- pid
|
|
35499
|
+
- lockType
|
|
35500
|
+
- mode
|
|
35501
|
+
- granted
|
|
35502
|
+
properties:
|
|
35503
|
+
pid:
|
|
35504
|
+
type: integer
|
|
35505
|
+
format: int64
|
|
35506
|
+
lockType:
|
|
35507
|
+
type: string
|
|
35508
|
+
mode:
|
|
35509
|
+
type: string
|
|
35510
|
+
granted:
|
|
35511
|
+
type: boolean
|
|
35512
|
+
relationOid:
|
|
35513
|
+
type: string
|
|
35514
|
+
relationName:
|
|
35515
|
+
type: string
|
|
35516
|
+
databaseName:
|
|
35517
|
+
type: string
|
|
35518
|
+
transactionID:
|
|
35519
|
+
type: string
|
|
35520
|
+
virtualTransaction:
|
|
35521
|
+
type: string
|
|
35522
|
+
virtualXID:
|
|
35523
|
+
type: string
|
|
35524
|
+
tuple:
|
|
35525
|
+
type: string
|
|
35526
|
+
page:
|
|
35527
|
+
type: string
|
|
35528
|
+
classID:
|
|
35529
|
+
type: string
|
|
35530
|
+
objID:
|
|
35531
|
+
type: string
|
|
35532
|
+
objSubID:
|
|
35533
|
+
type: string
|
|
35534
|
+
postgresqlWaitChainNode:
|
|
35535
|
+
type: object
|
|
35536
|
+
required:
|
|
35537
|
+
- pid
|
|
35538
|
+
- role
|
|
35539
|
+
properties:
|
|
35540
|
+
pid:
|
|
35541
|
+
type: integer
|
|
35542
|
+
format: int64
|
|
35543
|
+
role:
|
|
35544
|
+
type: string
|
|
35545
|
+
description: Role in the selected session wait graph. Known values are selected, blocking, blocked, and related.
|
|
35546
|
+
session:
|
|
35547
|
+
$ref: '#/components/schemas/postgresqlSession'
|
|
35548
|
+
postgresqlWaitChainEdge:
|
|
35549
|
+
type: object
|
|
35550
|
+
required:
|
|
35551
|
+
- blockingPid
|
|
35552
|
+
- blockedPid
|
|
35553
|
+
properties:
|
|
35554
|
+
blockingPid:
|
|
35555
|
+
type: integer
|
|
35556
|
+
format: int64
|
|
35557
|
+
description: PID that blocks another session.
|
|
35558
|
+
blockedPid:
|
|
35559
|
+
type: integer
|
|
35560
|
+
format: int64
|
|
35561
|
+
description: PID that is blocked by another session.
|
|
35562
|
+
postgresqlWaitChain:
|
|
35563
|
+
type: object
|
|
35564
|
+
required:
|
|
35565
|
+
- nodes
|
|
35566
|
+
- edges
|
|
35567
|
+
properties:
|
|
35568
|
+
nodes:
|
|
35569
|
+
type: array
|
|
35570
|
+
items:
|
|
35571
|
+
$ref: '#/components/schemas/postgresqlWaitChainNode'
|
|
35572
|
+
edges:
|
|
35573
|
+
type: array
|
|
35574
|
+
items:
|
|
35575
|
+
$ref: '#/components/schemas/postgresqlWaitChainEdge'
|
|
35576
|
+
postgresqlDeadlockEvidence:
|
|
35577
|
+
type: object
|
|
35578
|
+
required:
|
|
35579
|
+
- detected
|
|
35580
|
+
- cyclePids
|
|
35581
|
+
properties:
|
|
35582
|
+
detected:
|
|
35583
|
+
type: boolean
|
|
35584
|
+
cyclePids:
|
|
35585
|
+
type: array
|
|
35586
|
+
items:
|
|
35587
|
+
type: integer
|
|
35588
|
+
format: int64
|
|
35589
|
+
postgresqlLockAnalysis:
|
|
35590
|
+
type: object
|
|
35591
|
+
required:
|
|
35592
|
+
- selectedSession
|
|
35593
|
+
- blockingSessions
|
|
35594
|
+
- blockedSessions
|
|
35595
|
+
- lockRows
|
|
35596
|
+
- waitChain
|
|
35597
|
+
- deadlock
|
|
35598
|
+
- cannotProve
|
|
35599
|
+
- warnings
|
|
35600
|
+
- capturedAt
|
|
35601
|
+
properties:
|
|
35602
|
+
selectedSession:
|
|
35603
|
+
$ref: '#/components/schemas/postgresqlSession'
|
|
35604
|
+
blockingSessions:
|
|
35605
|
+
type: array
|
|
35606
|
+
items:
|
|
35607
|
+
$ref: '#/components/schemas/postgresqlSession'
|
|
35608
|
+
blockedSessions:
|
|
35609
|
+
type: array
|
|
35610
|
+
items:
|
|
35611
|
+
$ref: '#/components/schemas/postgresqlSession'
|
|
35612
|
+
lockRows:
|
|
35613
|
+
type: array
|
|
35614
|
+
items:
|
|
35615
|
+
$ref: '#/components/schemas/postgresqlLockRow'
|
|
35616
|
+
waitChain:
|
|
35617
|
+
$ref: '#/components/schemas/postgresqlWaitChain'
|
|
35618
|
+
deadlock:
|
|
35619
|
+
$ref: '#/components/schemas/postgresqlDeadlockEvidence'
|
|
35620
|
+
cannotProve:
|
|
35621
|
+
type: boolean
|
|
35622
|
+
description: Whether the current snapshot cannot prove the lock relationship conclusively.
|
|
35623
|
+
warnings:
|
|
35624
|
+
type: array
|
|
35625
|
+
items:
|
|
35626
|
+
type: string
|
|
35627
|
+
capturedAt:
|
|
35628
|
+
type: string
|
|
35629
|
+
description: Snapshot capture timestamp in UTC.
|
|
35403
35630
|
dbTDERequest:
|
|
35404
35631
|
type: object
|
|
35405
35632
|
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
|
|
@@ -39,19 +39,23 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
39
39
|
*
|
|
40
40
|
* @summary List bills in the organization
|
|
41
41
|
* @param {string} orgName name of the organization
|
|
42
|
+
* @param {AggregationTimeType} aggregationTime The type of aggregation time
|
|
43
|
+
* @param {OrgAggregationGroupType} aggregationGroup The type of aggregation group
|
|
42
44
|
* @param {number} start The start of the time range for the query, unit is seconds.
|
|
43
45
|
* @param {number} end The end of the time range for the query, unit is seconds.
|
|
44
46
|
* @param {string} [billID] The ID of the bill
|
|
45
47
|
* @param {string} [clusterID] The ID of the cluster
|
|
46
48
|
* @param {string} [projectName] name of the project
|
|
47
|
-
* @param {AggregationTimeType} [aggregationTime] The type of aggregation time
|
|
48
|
-
* @param {OrgAggregationGroupType} [aggregationGroup] The type of aggregation group
|
|
49
49
|
* @param {*} [options] Override http request option.
|
|
50
50
|
* @throws {RequiredError}
|
|
51
51
|
*/
|
|
52
|
-
listOrgBills: async (orgName: string, start: number, end: number, billID?: string, clusterID?: string, projectName?: string,
|
|
52
|
+
listOrgBills: async (orgName: string, aggregationTime: AggregationTimeType, aggregationGroup: OrgAggregationGroupType, start: number, end: number, billID?: string, clusterID?: string, projectName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
53
53
|
// verify required parameter 'orgName' is not null or undefined
|
|
54
54
|
assertParamExists('listOrgBills', 'orgName', orgName)
|
|
55
|
+
// verify required parameter 'aggregationTime' is not null or undefined
|
|
56
|
+
assertParamExists('listOrgBills', 'aggregationTime', aggregationTime)
|
|
57
|
+
// verify required parameter 'aggregationGroup' is not null or undefined
|
|
58
|
+
assertParamExists('listOrgBills', 'aggregationGroup', aggregationGroup)
|
|
55
59
|
// verify required parameter 'start' is not null or undefined
|
|
56
60
|
assertParamExists('listOrgBills', 'start', start)
|
|
57
61
|
// verify required parameter 'end' is not null or undefined
|
|
@@ -129,18 +133,18 @@ export const BillingApiFp = function(configuration?: Configuration) {
|
|
|
129
133
|
*
|
|
130
134
|
* @summary List bills in the organization
|
|
131
135
|
* @param {string} orgName name of the organization
|
|
136
|
+
* @param {AggregationTimeType} aggregationTime The type of aggregation time
|
|
137
|
+
* @param {OrgAggregationGroupType} aggregationGroup The type of aggregation group
|
|
132
138
|
* @param {number} start The start of the time range for the query, unit is seconds.
|
|
133
139
|
* @param {number} end The end of the time range for the query, unit is seconds.
|
|
134
140
|
* @param {string} [billID] The ID of the bill
|
|
135
141
|
* @param {string} [clusterID] The ID of the cluster
|
|
136
142
|
* @param {string} [projectName] name of the project
|
|
137
|
-
* @param {AggregationTimeType} [aggregationTime] The type of aggregation time
|
|
138
|
-
* @param {OrgAggregationGroupType} [aggregationGroup] The type of aggregation group
|
|
139
143
|
* @param {*} [options] Override http request option.
|
|
140
144
|
* @throws {RequiredError}
|
|
141
145
|
*/
|
|
142
|
-
async listOrgBills(orgName: string, start: number, end: number, billID?: string, clusterID?: string, projectName?: string,
|
|
143
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgBills(orgName, start, end, billID, clusterID, projectName,
|
|
146
|
+
async listOrgBills(orgName: string, aggregationTime: AggregationTimeType, aggregationGroup: OrgAggregationGroupType, start: number, end: number, billID?: string, clusterID?: string, projectName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BillList>> {
|
|
147
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgBills(orgName, aggregationTime, aggregationGroup, start, end, billID, clusterID, projectName, options);
|
|
144
148
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
145
149
|
const localVarOperationServerBasePath = operationServerMap['BillingApi.listOrgBills']?.[localVarOperationServerIndex]?.url;
|
|
146
150
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -163,7 +167,7 @@ export const BillingApiFactory = function (configuration?: Configuration, basePa
|
|
|
163
167
|
* @throws {RequiredError}
|
|
164
168
|
*/
|
|
165
169
|
listOrgBills(requestParameters: BillingApiListOrgBillsRequest, options?: RawAxiosRequestConfig): AxiosPromise<BillList> {
|
|
166
|
-
return localVarFp.listOrgBills(requestParameters.orgName, requestParameters.
|
|
170
|
+
return localVarFp.listOrgBills(requestParameters.orgName, requestParameters.aggregationTime, requestParameters.aggregationGroup, requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.projectName, options).then((request) => request(axios, basePath));
|
|
167
171
|
},
|
|
168
172
|
};
|
|
169
173
|
};
|
|
@@ -199,6 +203,20 @@ export interface BillingApiListOrgBillsRequest {
|
|
|
199
203
|
*/
|
|
200
204
|
readonly orgName: string
|
|
201
205
|
|
|
206
|
+
/**
|
|
207
|
+
* The type of aggregation time
|
|
208
|
+
* @type {AggregationTimeType}
|
|
209
|
+
* @memberof BillingApiListOrgBills
|
|
210
|
+
*/
|
|
211
|
+
readonly aggregationTime: AggregationTimeType
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* The type of aggregation group
|
|
215
|
+
* @type {OrgAggregationGroupType}
|
|
216
|
+
* @memberof BillingApiListOrgBills
|
|
217
|
+
*/
|
|
218
|
+
readonly aggregationGroup: OrgAggregationGroupType
|
|
219
|
+
|
|
202
220
|
/**
|
|
203
221
|
* The start of the time range for the query, unit is seconds.
|
|
204
222
|
* @type {number}
|
|
@@ -233,20 +251,6 @@ export interface BillingApiListOrgBillsRequest {
|
|
|
233
251
|
* @memberof BillingApiListOrgBills
|
|
234
252
|
*/
|
|
235
253
|
readonly projectName?: string
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* The type of aggregation time
|
|
239
|
-
* @type {AggregationTimeType}
|
|
240
|
-
* @memberof BillingApiListOrgBills
|
|
241
|
-
*/
|
|
242
|
-
readonly aggregationTime?: AggregationTimeType
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* The type of aggregation group
|
|
246
|
-
* @type {OrgAggregationGroupType}
|
|
247
|
-
* @memberof BillingApiListOrgBills
|
|
248
|
-
*/
|
|
249
|
-
readonly aggregationGroup?: OrgAggregationGroupType
|
|
250
254
|
}
|
|
251
255
|
|
|
252
256
|
/**
|
|
@@ -265,7 +269,7 @@ export class BillingApi extends BaseAPI implements BillingApiInterface {
|
|
|
265
269
|
* @memberof BillingApi
|
|
266
270
|
*/
|
|
267
271
|
public listOrgBills(requestParameters: BillingApiListOrgBillsRequest, options?: RawAxiosRequestConfig) {
|
|
268
|
-
return BillingApiFp(this.configuration).listOrgBills(requestParameters.orgName, requestParameters.
|
|
272
|
+
return BillingApiFp(this.configuration).listOrgBills(requestParameters.orgName, requestParameters.aggregationTime, requestParameters.aggregationGroup, requestParameters.start, requestParameters.end, requestParameters.billID, requestParameters.clusterID, requestParameters.projectName, options).then((request) => request(this.axios, this.basePath));
|
|
269
273
|
}
|
|
270
274
|
}
|
|
271
275
|
|
|
@@ -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 = `/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
|
+
|
|
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 = `/api/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
|
|