kb-cloud-client-typescript 2.3.0-alpha.117 → 2.3.0-alpha.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adminapi/apis/diagnostics-api.d.ts +64 -0
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +74 -0
- package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
- package/dist/adminapi/models/index.d.ts +10 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +10 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/postgresql-database-space.d.ts +43 -0
- package/dist/adminapi/models/postgresql-database-space.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-database-space.js +16 -0
- package/dist/adminapi/models/postgresql-database-space.js.map +1 -0
- package/dist/adminapi/models/postgresql-index-space.d.ts +103 -0
- package/dist/adminapi/models/postgresql-index-space.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-index-space.js +16 -0
- package/dist/adminapi/models/postgresql-index-space.js.map +1 -0
- package/dist/adminapi/models/postgresql-space-analysis.d.ts +88 -0
- package/dist/adminapi/models/postgresql-space-analysis.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-space-analysis.js +16 -0
- package/dist/adminapi/models/postgresql-space-analysis.js.map +1 -0
- package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts +43 -0
- package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-space-cannot-prove.js +16 -0
- package/dist/adminapi/models/postgresql-space-cannot-prove.js.map +1 -0
- package/dist/adminapi/models/postgresql-space-pvc.d.ts +43 -0
- package/dist/adminapi/models/postgresql-space-pvc.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-space-pvc.js +16 -0
- package/dist/adminapi/models/postgresql-space-pvc.js.map +1 -0
- package/dist/adminapi/models/postgresql-space-risk-hint.d.ts +61 -0
- package/dist/adminapi/models/postgresql-space-risk-hint.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-space-risk-hint.js +16 -0
- package/dist/adminapi/models/postgresql-space-risk-hint.js.map +1 -0
- package/dist/adminapi/models/postgresql-space-source.d.ts +49 -0
- package/dist/adminapi/models/postgresql-space-source.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-space-source.js +16 -0
- package/dist/adminapi/models/postgresql-space-source.js.map +1 -0
- package/dist/adminapi/models/postgresql-space-summary.d.ts +85 -0
- package/dist/adminapi/models/postgresql-space-summary.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-space-summary.js +16 -0
- package/dist/adminapi/models/postgresql-space-summary.js.map +1 -0
- package/dist/adminapi/models/postgresql-table-space.d.ts +133 -0
- package/dist/adminapi/models/postgresql-table-space.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-table-space.js +16 -0
- package/dist/adminapi/models/postgresql-table-space.js.map +1 -0
- package/dist/adminapi/models/postgresql-toast-relation-space.d.ts +67 -0
- package/dist/adminapi/models/postgresql-toast-relation-space.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-toast-relation-space.js +16 -0
- package/dist/adminapi/models/postgresql-toast-relation-space.js.map +1 -0
- package/dist/openapi/apis/diagnostics-api.d.ts +64 -0
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +74 -0
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/models/index.d.ts +10 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +10 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/postgresql-database-space.d.ts +43 -0
- package/dist/openapi/models/postgresql-database-space.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-database-space.js +16 -0
- package/dist/openapi/models/postgresql-database-space.js.map +1 -0
- package/dist/openapi/models/postgresql-index-space.d.ts +103 -0
- package/dist/openapi/models/postgresql-index-space.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-index-space.js +16 -0
- package/dist/openapi/models/postgresql-index-space.js.map +1 -0
- package/dist/openapi/models/postgresql-space-analysis.d.ts +88 -0
- package/dist/openapi/models/postgresql-space-analysis.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-space-analysis.js +16 -0
- package/dist/openapi/models/postgresql-space-analysis.js.map +1 -0
- package/dist/openapi/models/postgresql-space-cannot-prove.d.ts +43 -0
- package/dist/openapi/models/postgresql-space-cannot-prove.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-space-cannot-prove.js +16 -0
- package/dist/openapi/models/postgresql-space-cannot-prove.js.map +1 -0
- package/dist/openapi/models/postgresql-space-pvc.d.ts +43 -0
- package/dist/openapi/models/postgresql-space-pvc.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-space-pvc.js +16 -0
- package/dist/openapi/models/postgresql-space-pvc.js.map +1 -0
- package/dist/openapi/models/postgresql-space-risk-hint.d.ts +61 -0
- package/dist/openapi/models/postgresql-space-risk-hint.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-space-risk-hint.js +16 -0
- package/dist/openapi/models/postgresql-space-risk-hint.js.map +1 -0
- package/dist/openapi/models/postgresql-space-source.d.ts +49 -0
- package/dist/openapi/models/postgresql-space-source.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-space-source.js +16 -0
- package/dist/openapi/models/postgresql-space-source.js.map +1 -0
- package/dist/openapi/models/postgresql-space-summary.d.ts +85 -0
- package/dist/openapi/models/postgresql-space-summary.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-space-summary.js +16 -0
- package/dist/openapi/models/postgresql-space-summary.js.map +1 -0
- package/dist/openapi/models/postgresql-table-space.d.ts +133 -0
- package/dist/openapi/models/postgresql-table-space.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-table-space.js +16 -0
- package/dist/openapi/models/postgresql-table-space.js.map +1 -0
- package/dist/openapi/models/postgresql-toast-relation-space.d.ts +67 -0
- package/dist/openapi/models/postgresql-toast-relation-space.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-toast-relation-space.js +16 -0
- package/dist/openapi/models/postgresql-toast-relation-space.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +10 -0
- package/src/adminapi/apis/diagnostics-api.ts +114 -0
- package/src/adminapi/models/index.ts +10 -0
- package/src/adminapi/models/postgresql-database-space.ts +48 -0
- package/src/adminapi/models/postgresql-index-space.ts +108 -0
- package/src/adminapi/models/postgresql-space-analysis.ts +111 -0
- package/src/adminapi/models/postgresql-space-cannot-prove.ts +48 -0
- package/src/adminapi/models/postgresql-space-pvc.ts +48 -0
- package/src/adminapi/models/postgresql-space-risk-hint.ts +66 -0
- package/src/adminapi/models/postgresql-space-source.ts +54 -0
- package/src/adminapi/models/postgresql-space-summary.ts +90 -0
- package/src/adminapi/models/postgresql-table-space.ts +138 -0
- package/src/adminapi/models/postgresql-toast-relation-space.ts +72 -0
- package/src/adminapi.yaml +329 -0
- package/src/openapi/.openapi-generator/FILES +10 -0
- package/src/openapi/apis/diagnostics-api.ts +114 -0
- package/src/openapi/models/index.ts +10 -0
- package/src/openapi/models/postgresql-database-space.ts +48 -0
- package/src/openapi/models/postgresql-index-space.ts +108 -0
- package/src/openapi/models/postgresql-space-analysis.ts +111 -0
- package/src/openapi/models/postgresql-space-cannot-prove.ts +48 -0
- package/src/openapi/models/postgresql-space-pvc.ts +48 -0
- package/src/openapi/models/postgresql-space-risk-hint.ts +66 -0
- package/src/openapi/models/postgresql-space-source.ts +54 -0
- package/src/openapi/models/postgresql-space-summary.ts +90 -0
- package/src/openapi/models/postgresql-table-space.ts +138 -0
- package/src/openapi/models/postgresql-toast-relation-space.ts +72 -0
- package/src/openapi.yaml +329 -0
|
@@ -0,0 +1,72 @@
|
|
|
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 PostgresqlToastRelationSpace
|
|
21
|
+
*/
|
|
22
|
+
export interface PostgresqlToastRelationSpace {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof PostgresqlToastRelationSpace
|
|
27
|
+
*/
|
|
28
|
+
'database'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof PostgresqlToastRelationSpace
|
|
33
|
+
*/
|
|
34
|
+
'schema'?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PostgresqlToastRelationSpace
|
|
39
|
+
*/
|
|
40
|
+
'table'?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof PostgresqlToastRelationSpace
|
|
45
|
+
*/
|
|
46
|
+
'tableRelationOid'?: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof PostgresqlToastRelationSpace
|
|
51
|
+
*/
|
|
52
|
+
'toastRelationOid'?: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof PostgresqlToastRelationSpace
|
|
57
|
+
*/
|
|
58
|
+
'toastBytes'?: number;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {boolean}
|
|
62
|
+
* @memberof PostgresqlToastRelationSpace
|
|
63
|
+
*/
|
|
64
|
+
'noHistoryYet': boolean;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {boolean}
|
|
68
|
+
* @memberof PostgresqlToastRelationSpace
|
|
69
|
+
*/
|
|
70
|
+
'cannotProveGrowth': boolean;
|
|
71
|
+
}
|
|
72
|
+
|
package/src/adminapi.yaml
CHANGED
|
@@ -19083,6 +19083,41 @@ paths:
|
|
|
19083
19083
|
$ref: '#/components/responses/403'
|
|
19084
19084
|
'500':
|
|
19085
19085
|
$ref: '#/components/responses/500'
|
|
19086
|
+
/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/spaceAnalysis:
|
|
19087
|
+
get:
|
|
19088
|
+
tags:
|
|
19089
|
+
- diagnostics
|
|
19090
|
+
summary: Get PostgreSQL space analysis
|
|
19091
|
+
description: Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, or remediation actions.
|
|
19092
|
+
operationId: getDiagnosticsPostgresqlSpaceAnalysis
|
|
19093
|
+
parameters:
|
|
19094
|
+
- name: orgName
|
|
19095
|
+
in: path
|
|
19096
|
+
description: Organization name
|
|
19097
|
+
required: true
|
|
19098
|
+
schema:
|
|
19099
|
+
type: string
|
|
19100
|
+
- name: clusterName
|
|
19101
|
+
in: path
|
|
19102
|
+
description: Cluster name
|
|
19103
|
+
required: true
|
|
19104
|
+
schema:
|
|
19105
|
+
type: string
|
|
19106
|
+
responses:
|
|
19107
|
+
'200':
|
|
19108
|
+
description: OK
|
|
19109
|
+
content:
|
|
19110
|
+
application/json:
|
|
19111
|
+
schema:
|
|
19112
|
+
$ref: '#/components/schemas/postgresqlSpaceAnalysis'
|
|
19113
|
+
'400':
|
|
19114
|
+
$ref: '#/components/responses/400'
|
|
19115
|
+
'401':
|
|
19116
|
+
$ref: '#/components/responses/401'
|
|
19117
|
+
'403':
|
|
19118
|
+
$ref: '#/components/responses/403'
|
|
19119
|
+
'500':
|
|
19120
|
+
$ref: '#/components/responses/500'
|
|
19086
19121
|
/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}/lockAnalysis:
|
|
19087
19122
|
get:
|
|
19088
19123
|
tags:
|
|
@@ -35620,6 +35655,300 @@ components:
|
|
|
35620
35655
|
type: array
|
|
35621
35656
|
items:
|
|
35622
35657
|
$ref: '#/components/schemas/postgresqlSession'
|
|
35658
|
+
postgresqlSpaceSummary:
|
|
35659
|
+
type: object
|
|
35660
|
+
required:
|
|
35661
|
+
- tableCount
|
|
35662
|
+
- indexCount
|
|
35663
|
+
- toastRelationCount
|
|
35664
|
+
- tableListTruncated
|
|
35665
|
+
- indexListTruncated
|
|
35666
|
+
- noHistoryYet
|
|
35667
|
+
- cannotProveGrowth
|
|
35668
|
+
properties:
|
|
35669
|
+
databaseName:
|
|
35670
|
+
type: string
|
|
35671
|
+
databaseSizeBytes:
|
|
35672
|
+
type: integer
|
|
35673
|
+
format: int64
|
|
35674
|
+
tableCount:
|
|
35675
|
+
type: integer
|
|
35676
|
+
format: int64
|
|
35677
|
+
indexCount:
|
|
35678
|
+
type: integer
|
|
35679
|
+
format: int64
|
|
35680
|
+
toastRelationCount:
|
|
35681
|
+
type: integer
|
|
35682
|
+
format: int64
|
|
35683
|
+
largestTableBytes:
|
|
35684
|
+
type: integer
|
|
35685
|
+
format: int64
|
|
35686
|
+
largestIndexBytes:
|
|
35687
|
+
type: integer
|
|
35688
|
+
format: int64
|
|
35689
|
+
tableListTruncated:
|
|
35690
|
+
type: boolean
|
|
35691
|
+
indexListTruncated:
|
|
35692
|
+
type: boolean
|
|
35693
|
+
noHistoryYet:
|
|
35694
|
+
type: boolean
|
|
35695
|
+
cannotProveGrowth:
|
|
35696
|
+
type: boolean
|
|
35697
|
+
postgresqlSpacePVC:
|
|
35698
|
+
type: object
|
|
35699
|
+
required:
|
|
35700
|
+
- noHistoryYet
|
|
35701
|
+
- cannotProveGrowth
|
|
35702
|
+
- source
|
|
35703
|
+
properties:
|
|
35704
|
+
currentUsedBytes:
|
|
35705
|
+
type: integer
|
|
35706
|
+
format: int64
|
|
35707
|
+
description: Current PVC used bytes from backend-owned metrics when available.
|
|
35708
|
+
noHistoryYet:
|
|
35709
|
+
type: boolean
|
|
35710
|
+
cannotProveGrowth:
|
|
35711
|
+
type: boolean
|
|
35712
|
+
source:
|
|
35713
|
+
type: string
|
|
35714
|
+
postgresqlDatabaseSpace:
|
|
35715
|
+
type: object
|
|
35716
|
+
required:
|
|
35717
|
+
- noHistoryYet
|
|
35718
|
+
- cannotProveGrowth
|
|
35719
|
+
properties:
|
|
35720
|
+
name:
|
|
35721
|
+
type: string
|
|
35722
|
+
sizeBytes:
|
|
35723
|
+
type: integer
|
|
35724
|
+
format: int64
|
|
35725
|
+
noHistoryYet:
|
|
35726
|
+
type: boolean
|
|
35727
|
+
cannotProveGrowth:
|
|
35728
|
+
type: boolean
|
|
35729
|
+
postgresqlTableSpace:
|
|
35730
|
+
type: object
|
|
35731
|
+
required:
|
|
35732
|
+
- noHistoryYet
|
|
35733
|
+
- cannotProveGrowth
|
|
35734
|
+
properties:
|
|
35735
|
+
database:
|
|
35736
|
+
type: string
|
|
35737
|
+
schema:
|
|
35738
|
+
type: string
|
|
35739
|
+
name:
|
|
35740
|
+
type: string
|
|
35741
|
+
relationOid:
|
|
35742
|
+
type: integer
|
|
35743
|
+
format: int64
|
|
35744
|
+
totalBytes:
|
|
35745
|
+
type: integer
|
|
35746
|
+
format: int64
|
|
35747
|
+
tableBytes:
|
|
35748
|
+
type: integer
|
|
35749
|
+
format: int64
|
|
35750
|
+
indexBytes:
|
|
35751
|
+
type: integer
|
|
35752
|
+
format: int64
|
|
35753
|
+
toastBytes:
|
|
35754
|
+
type: integer
|
|
35755
|
+
format: int64
|
|
35756
|
+
toastRelationOid:
|
|
35757
|
+
type: integer
|
|
35758
|
+
format: int64
|
|
35759
|
+
liveTuples:
|
|
35760
|
+
type: integer
|
|
35761
|
+
format: int64
|
|
35762
|
+
deadTuples:
|
|
35763
|
+
type: integer
|
|
35764
|
+
format: int64
|
|
35765
|
+
seqScan:
|
|
35766
|
+
type: integer
|
|
35767
|
+
format: int64
|
|
35768
|
+
indexScan:
|
|
35769
|
+
type: integer
|
|
35770
|
+
format: int64
|
|
35771
|
+
lastVacuum:
|
|
35772
|
+
type: string
|
|
35773
|
+
lastAutoVacuum:
|
|
35774
|
+
type: string
|
|
35775
|
+
lastAnalyze:
|
|
35776
|
+
type: string
|
|
35777
|
+
lastAutoAnalyze:
|
|
35778
|
+
type: string
|
|
35779
|
+
noHistoryYet:
|
|
35780
|
+
type: boolean
|
|
35781
|
+
cannotProveGrowth:
|
|
35782
|
+
type: boolean
|
|
35783
|
+
postgresqlIndexSpace:
|
|
35784
|
+
type: object
|
|
35785
|
+
required:
|
|
35786
|
+
- noHistoryYet
|
|
35787
|
+
- cannotProveGrowth
|
|
35788
|
+
properties:
|
|
35789
|
+
database:
|
|
35790
|
+
type: string
|
|
35791
|
+
schema:
|
|
35792
|
+
type: string
|
|
35793
|
+
table:
|
|
35794
|
+
type: string
|
|
35795
|
+
name:
|
|
35796
|
+
type: string
|
|
35797
|
+
tableRelationOid:
|
|
35798
|
+
type: integer
|
|
35799
|
+
format: int64
|
|
35800
|
+
relationOid:
|
|
35801
|
+
type: integer
|
|
35802
|
+
format: int64
|
|
35803
|
+
sizeBytes:
|
|
35804
|
+
type: integer
|
|
35805
|
+
format: int64
|
|
35806
|
+
isPrimary:
|
|
35807
|
+
type: boolean
|
|
35808
|
+
isUnique:
|
|
35809
|
+
type: boolean
|
|
35810
|
+
scanCount:
|
|
35811
|
+
type: integer
|
|
35812
|
+
format: int64
|
|
35813
|
+
tuplesRead:
|
|
35814
|
+
type: integer
|
|
35815
|
+
format: int64
|
|
35816
|
+
tuplesFetch:
|
|
35817
|
+
type: integer
|
|
35818
|
+
format: int64
|
|
35819
|
+
noHistoryYet:
|
|
35820
|
+
type: boolean
|
|
35821
|
+
cannotProveGrowth:
|
|
35822
|
+
type: boolean
|
|
35823
|
+
postgresqlToastRelationSpace:
|
|
35824
|
+
type: object
|
|
35825
|
+
required:
|
|
35826
|
+
- noHistoryYet
|
|
35827
|
+
- cannotProveGrowth
|
|
35828
|
+
properties:
|
|
35829
|
+
database:
|
|
35830
|
+
type: string
|
|
35831
|
+
schema:
|
|
35832
|
+
type: string
|
|
35833
|
+
table:
|
|
35834
|
+
type: string
|
|
35835
|
+
tableRelationOid:
|
|
35836
|
+
type: integer
|
|
35837
|
+
format: int64
|
|
35838
|
+
toastRelationOid:
|
|
35839
|
+
type: integer
|
|
35840
|
+
format: int64
|
|
35841
|
+
toastBytes:
|
|
35842
|
+
type: integer
|
|
35843
|
+
format: int64
|
|
35844
|
+
noHistoryYet:
|
|
35845
|
+
type: boolean
|
|
35846
|
+
cannotProveGrowth:
|
|
35847
|
+
type: boolean
|
|
35848
|
+
postgresqlSpaceRiskHint:
|
|
35849
|
+
type: object
|
|
35850
|
+
required:
|
|
35851
|
+
- type
|
|
35852
|
+
- severity
|
|
35853
|
+
- message
|
|
35854
|
+
properties:
|
|
35855
|
+
type:
|
|
35856
|
+
type: string
|
|
35857
|
+
severity:
|
|
35858
|
+
type: string
|
|
35859
|
+
message:
|
|
35860
|
+
type: string
|
|
35861
|
+
objectKind:
|
|
35862
|
+
type: string
|
|
35863
|
+
schema:
|
|
35864
|
+
type: string
|
|
35865
|
+
objectName:
|
|
35866
|
+
type: string
|
|
35867
|
+
reason:
|
|
35868
|
+
type: string
|
|
35869
|
+
postgresqlSpaceCannotProve:
|
|
35870
|
+
type: object
|
|
35871
|
+
required:
|
|
35872
|
+
- growth
|
|
35873
|
+
- pvc
|
|
35874
|
+
- objectHistory
|
|
35875
|
+
- reasons
|
|
35876
|
+
properties:
|
|
35877
|
+
growth:
|
|
35878
|
+
type: boolean
|
|
35879
|
+
pvc:
|
|
35880
|
+
type: boolean
|
|
35881
|
+
objectHistory:
|
|
35882
|
+
type: boolean
|
|
35883
|
+
reasons:
|
|
35884
|
+
type: array
|
|
35885
|
+
items:
|
|
35886
|
+
type: string
|
|
35887
|
+
postgresqlSpaceSource:
|
|
35888
|
+
type: object
|
|
35889
|
+
required:
|
|
35890
|
+
- name
|
|
35891
|
+
- kind
|
|
35892
|
+
- status
|
|
35893
|
+
- collectedAt
|
|
35894
|
+
properties:
|
|
35895
|
+
name:
|
|
35896
|
+
type: string
|
|
35897
|
+
kind:
|
|
35898
|
+
type: string
|
|
35899
|
+
status:
|
|
35900
|
+
type: string
|
|
35901
|
+
collectedAt:
|
|
35902
|
+
type: string
|
|
35903
|
+
message:
|
|
35904
|
+
type: string
|
|
35905
|
+
postgresqlSpaceAnalysis:
|
|
35906
|
+
type: object
|
|
35907
|
+
required:
|
|
35908
|
+
- summary
|
|
35909
|
+
- pvc
|
|
35910
|
+
- databases
|
|
35911
|
+
- tables
|
|
35912
|
+
- indexes
|
|
35913
|
+
- toastRelations
|
|
35914
|
+
- riskHints
|
|
35915
|
+
- cannotProve
|
|
35916
|
+
- sources
|
|
35917
|
+
- collectedAt
|
|
35918
|
+
properties:
|
|
35919
|
+
summary:
|
|
35920
|
+
$ref: '#/components/schemas/postgresqlSpaceSummary'
|
|
35921
|
+
pvc:
|
|
35922
|
+
$ref: '#/components/schemas/postgresqlSpacePVC'
|
|
35923
|
+
databases:
|
|
35924
|
+
type: array
|
|
35925
|
+
items:
|
|
35926
|
+
$ref: '#/components/schemas/postgresqlDatabaseSpace'
|
|
35927
|
+
tables:
|
|
35928
|
+
type: array
|
|
35929
|
+
items:
|
|
35930
|
+
$ref: '#/components/schemas/postgresqlTableSpace'
|
|
35931
|
+
indexes:
|
|
35932
|
+
type: array
|
|
35933
|
+
items:
|
|
35934
|
+
$ref: '#/components/schemas/postgresqlIndexSpace'
|
|
35935
|
+
toastRelations:
|
|
35936
|
+
type: array
|
|
35937
|
+
items:
|
|
35938
|
+
$ref: '#/components/schemas/postgresqlToastRelationSpace'
|
|
35939
|
+
riskHints:
|
|
35940
|
+
type: array
|
|
35941
|
+
items:
|
|
35942
|
+
$ref: '#/components/schemas/postgresqlSpaceRiskHint'
|
|
35943
|
+
cannotProve:
|
|
35944
|
+
$ref: '#/components/schemas/postgresqlSpaceCannotProve'
|
|
35945
|
+
sources:
|
|
35946
|
+
type: array
|
|
35947
|
+
items:
|
|
35948
|
+
$ref: '#/components/schemas/postgresqlSpaceSource'
|
|
35949
|
+
collectedAt:
|
|
35950
|
+
type: string
|
|
35951
|
+
description: Backend collection timestamp in UTC.
|
|
35623
35952
|
postgresqlLockRow:
|
|
35624
35953
|
type: object
|
|
35625
35954
|
required:
|
|
@@ -650,10 +650,20 @@ 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-database-space.ts
|
|
653
654
|
models/postgresql-deadlock-evidence.ts
|
|
655
|
+
models/postgresql-index-space.ts
|
|
654
656
|
models/postgresql-lock-analysis.ts
|
|
655
657
|
models/postgresql-lock-row.ts
|
|
656
658
|
models/postgresql-session.ts
|
|
659
|
+
models/postgresql-space-analysis.ts
|
|
660
|
+
models/postgresql-space-cannot-prove.ts
|
|
661
|
+
models/postgresql-space-pvc.ts
|
|
662
|
+
models/postgresql-space-risk-hint.ts
|
|
663
|
+
models/postgresql-space-source.ts
|
|
664
|
+
models/postgresql-space-summary.ts
|
|
665
|
+
models/postgresql-table-space.ts
|
|
666
|
+
models/postgresql-toast-relation-space.ts
|
|
657
667
|
models/postgresql-wait-graph-edge-evidence.ts
|
|
658
668
|
models/postgresql-wait-graph-edge.ts
|
|
659
669
|
models/postgresql-wait-graph-node.ts
|
|
@@ -27,6 +27,8 @@ import type { APIErrorResponse } from '../models';
|
|
|
27
27
|
import type { PostgresqlLockAnalysis } from '../models';
|
|
28
28
|
// @ts-ignore
|
|
29
29
|
import type { PostgresqlSession } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { PostgresqlSpaceAnalysis } from '../models';
|
|
30
32
|
/**
|
|
31
33
|
* DiagnosticsApi - axios parameter creator
|
|
32
34
|
* @export
|
|
@@ -122,6 +124,51 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
122
124
|
|
|
123
125
|
|
|
124
126
|
|
|
127
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
128
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
129
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
130
|
+
|
|
131
|
+
return {
|
|
132
|
+
url: toPathString(localVarUrlObj),
|
|
133
|
+
options: localVarRequestOptions,
|
|
134
|
+
};
|
|
135
|
+
},
|
|
136
|
+
/**
|
|
137
|
+
* Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, or remediation actions.
|
|
138
|
+
* @summary Get PostgreSQL space analysis
|
|
139
|
+
* @param {string} orgName Organization name
|
|
140
|
+
* @param {string} clusterName Cluster name
|
|
141
|
+
* @param {*} [options] Override http request option.
|
|
142
|
+
* @throws {RequiredError}
|
|
143
|
+
*/
|
|
144
|
+
getDiagnosticsPostgresqlSpaceAnalysis: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
145
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
146
|
+
assertParamExists('getDiagnosticsPostgresqlSpaceAnalysis', 'orgName', orgName)
|
|
147
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
148
|
+
assertParamExists('getDiagnosticsPostgresqlSpaceAnalysis', 'clusterName', clusterName)
|
|
149
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/spaceAnalysis`
|
|
150
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
151
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
153
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
154
|
+
let baseOptions;
|
|
155
|
+
if (configuration) {
|
|
156
|
+
baseOptions = configuration.baseOptions;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
160
|
+
const localVarHeaderParameter = {} as any;
|
|
161
|
+
const localVarQueryParameter = {} as any;
|
|
162
|
+
|
|
163
|
+
// authentication BearerToken required
|
|
164
|
+
// http bearer authentication required
|
|
165
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
166
|
+
|
|
167
|
+
// authentication DigestAuth required
|
|
168
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
125
172
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
126
173
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
127
174
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -221,6 +268,20 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
|
|
|
221
268
|
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSessionLockAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
222
269
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
223
270
|
},
|
|
271
|
+
/**
|
|
272
|
+
* Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, or remediation actions.
|
|
273
|
+
* @summary Get PostgreSQL space analysis
|
|
274
|
+
* @param {string} orgName Organization name
|
|
275
|
+
* @param {string} clusterName Cluster name
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
*/
|
|
279
|
+
async getDiagnosticsPostgresqlSpaceAnalysis(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostgresqlSpaceAnalysis>> {
|
|
280
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlSpaceAnalysis(orgName, clusterName, options);
|
|
281
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
282
|
+
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSpaceAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
283
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
284
|
+
},
|
|
224
285
|
/**
|
|
225
286
|
* List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
226
287
|
* @summary List PostgreSQL session basic diagnostics
|
|
@@ -266,6 +327,16 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
|
|
|
266
327
|
getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlLockAnalysis> {
|
|
267
328
|
return localVarFp.getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
|
|
268
329
|
},
|
|
330
|
+
/**
|
|
331
|
+
* Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, or remediation actions.
|
|
332
|
+
* @summary Get PostgreSQL space analysis
|
|
333
|
+
* @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters.
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSpaceAnalysis> {
|
|
338
|
+
return localVarFp.getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
339
|
+
},
|
|
269
340
|
/**
|
|
270
341
|
* List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
271
342
|
* @summary List PostgreSQL session basic diagnostics
|
|
@@ -305,6 +376,16 @@ export interface DiagnosticsApiInterface {
|
|
|
305
376
|
*/
|
|
306
377
|
getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlLockAnalysis>;
|
|
307
378
|
|
|
379
|
+
/**
|
|
380
|
+
* Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, or remediation actions.
|
|
381
|
+
* @summary Get PostgreSQL space analysis
|
|
382
|
+
* @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters.
|
|
383
|
+
* @param {*} [options] Override http request option.
|
|
384
|
+
* @throws {RequiredError}
|
|
385
|
+
* @memberof DiagnosticsApiInterface
|
|
386
|
+
*/
|
|
387
|
+
getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSpaceAnalysis>;
|
|
388
|
+
|
|
308
389
|
/**
|
|
309
390
|
* List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
310
391
|
* @summary List PostgreSQL session basic diagnostics
|
|
@@ -373,6 +454,27 @@ export interface DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisReques
|
|
|
373
454
|
readonly pid: number
|
|
374
455
|
}
|
|
375
456
|
|
|
457
|
+
/**
|
|
458
|
+
* Request parameters for getDiagnosticsPostgresqlSpaceAnalysis operation in DiagnosticsApi.
|
|
459
|
+
* @export
|
|
460
|
+
* @interface DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest
|
|
461
|
+
*/
|
|
462
|
+
export interface DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest {
|
|
463
|
+
/**
|
|
464
|
+
* Organization name
|
|
465
|
+
* @type {string}
|
|
466
|
+
* @memberof DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysis
|
|
467
|
+
*/
|
|
468
|
+
readonly orgName: string
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Cluster name
|
|
472
|
+
* @type {string}
|
|
473
|
+
* @memberof DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysis
|
|
474
|
+
*/
|
|
475
|
+
readonly clusterName: string
|
|
476
|
+
}
|
|
477
|
+
|
|
376
478
|
/**
|
|
377
479
|
* Request parameters for listDiagnosticsPostgresqlSessions operation in DiagnosticsApi.
|
|
378
480
|
* @export
|
|
@@ -432,6 +534,18 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
|
|
|
432
534
|
return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath));
|
|
433
535
|
}
|
|
434
536
|
|
|
537
|
+
/**
|
|
538
|
+
* Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, or remediation actions.
|
|
539
|
+
* @summary Get PostgreSQL space analysis
|
|
540
|
+
* @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters.
|
|
541
|
+
* @param {*} [options] Override http request option.
|
|
542
|
+
* @throws {RequiredError}
|
|
543
|
+
* @memberof DiagnosticsApi
|
|
544
|
+
*/
|
|
545
|
+
public getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig) {
|
|
546
|
+
return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
547
|
+
}
|
|
548
|
+
|
|
435
549
|
/**
|
|
436
550
|
* List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
437
551
|
* @summary List PostgreSQL session basic diagnostics
|
|
@@ -563,10 +563,20 @@ 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-database-space';
|
|
566
567
|
export * from './postgresql-deadlock-evidence';
|
|
568
|
+
export * from './postgresql-index-space';
|
|
567
569
|
export * from './postgresql-lock-analysis';
|
|
568
570
|
export * from './postgresql-lock-row';
|
|
569
571
|
export * from './postgresql-session';
|
|
572
|
+
export * from './postgresql-space-analysis';
|
|
573
|
+
export * from './postgresql-space-cannot-prove';
|
|
574
|
+
export * from './postgresql-space-pvc';
|
|
575
|
+
export * from './postgresql-space-risk-hint';
|
|
576
|
+
export * from './postgresql-space-source';
|
|
577
|
+
export * from './postgresql-space-summary';
|
|
578
|
+
export * from './postgresql-table-space';
|
|
579
|
+
export * from './postgresql-toast-relation-space';
|
|
570
580
|
export * from './postgresql-wait-graph';
|
|
571
581
|
export * from './postgresql-wait-graph-edge';
|
|
572
582
|
export * from './postgresql-wait-graph-edge-evidence';
|
|
@@ -0,0 +1,48 @@
|
|
|
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 PostgresqlDatabaseSpace
|
|
21
|
+
*/
|
|
22
|
+
export interface PostgresqlDatabaseSpace {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof PostgresqlDatabaseSpace
|
|
27
|
+
*/
|
|
28
|
+
'name'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof PostgresqlDatabaseSpace
|
|
33
|
+
*/
|
|
34
|
+
'sizeBytes'?: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof PostgresqlDatabaseSpace
|
|
39
|
+
*/
|
|
40
|
+
'noHistoryYet': boolean;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {boolean}
|
|
44
|
+
* @memberof PostgresqlDatabaseSpace
|
|
45
|
+
*/
|
|
46
|
+
'cannotProveGrowth': boolean;
|
|
47
|
+
}
|
|
48
|
+
|