kb-cloud-client-typescript 2.3.0-alpha.117 → 2.3.0-alpha.119
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/cluster-api.d.ts +72 -0
- package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/adminapi/apis/cluster-api.js +79 -0
- package/dist/adminapi/apis/cluster-api.js.map +1 -1
- 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/apis/shared-api.d.ts +72 -0
- package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
- package/dist/adminapi/apis/shared-api.js +79 -0
- package/dist/adminapi/apis/shared-api.js.map +1 -1
- package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts +43 -0
- package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
- package/dist/adminapi/models/cluster-storage-usage-history-point.js +16 -0
- package/dist/adminapi/models/cluster-storage-usage-history-point.js.map +1 -0
- package/dist/adminapi/models/cluster-storage-usage-history.d.ts +56 -0
- package/dist/adminapi/models/cluster-storage-usage-history.d.ts.map +1 -0
- package/dist/adminapi/models/cluster-storage-usage-history.js +16 -0
- package/dist/adminapi/models/cluster-storage-usage-history.js.map +1 -0
- 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 +31 -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 +91 -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 +74 -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-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 +73 -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-storage-overview.d.ts +55 -0
- package/dist/adminapi/models/postgresql-storage-overview.d.ts.map +1 -0
- package/dist/adminapi/models/postgresql-storage-overview.js +16 -0
- package/dist/adminapi/models/postgresql-storage-overview.js.map +1 -0
- package/dist/adminapi/models/postgresql-table-space.d.ts +121 -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 +55 -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/cluster-api.d.ts +72 -0
- package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
- package/dist/openapi/apis/cluster-api.js +79 -0
- package/dist/openapi/apis/cluster-api.js.map +1 -1
- 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/apis/shared-api.d.ts +72 -0
- package/dist/openapi/apis/shared-api.d.ts.map +1 -1
- package/dist/openapi/apis/shared-api.js +79 -0
- package/dist/openapi/apis/shared-api.js.map +1 -1
- package/dist/openapi/models/cluster-storage-usage-history-point.d.ts +43 -0
- package/dist/openapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
- package/dist/openapi/models/cluster-storage-usage-history-point.js +16 -0
- package/dist/openapi/models/cluster-storage-usage-history-point.js.map +1 -0
- package/dist/openapi/models/cluster-storage-usage-history.d.ts +56 -0
- package/dist/openapi/models/cluster-storage-usage-history.d.ts.map +1 -0
- package/dist/openapi/models/cluster-storage-usage-history.js +16 -0
- package/dist/openapi/models/cluster-storage-usage-history.js.map +1 -0
- 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 +31 -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 +91 -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 +74 -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-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 +73 -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-storage-overview.d.ts +55 -0
- package/dist/openapi/models/postgresql-storage-overview.d.ts.map +1 -0
- package/dist/openapi/models/postgresql-storage-overview.js +16 -0
- package/dist/openapi/models/postgresql-storage-overview.js.map +1 -0
- package/dist/openapi/models/postgresql-table-space.d.ts +121 -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 +55 -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/cluster-api.ts +127 -0
- package/src/adminapi/apis/diagnostics-api.ts +114 -0
- package/src/adminapi/apis/shared-api.ts +127 -0
- package/src/adminapi/models/cluster-storage-usage-history-point.ts +48 -0
- package/src/adminapi/models/cluster-storage-usage-history.ts +63 -0
- package/src/adminapi/models/index.ts +10 -0
- package/src/adminapi/models/postgresql-database-space.ts +36 -0
- package/src/adminapi/models/postgresql-index-space.ts +96 -0
- package/src/adminapi/models/postgresql-space-analysis.ts +93 -0
- package/src/adminapi/models/postgresql-space-source.ts +54 -0
- package/src/adminapi/models/postgresql-space-summary.ts +78 -0
- package/src/adminapi/models/postgresql-storage-overview.ts +60 -0
- package/src/adminapi/models/postgresql-table-space.ts +126 -0
- package/src/adminapi/models/postgresql-toast-relation-space.ts +60 -0
- package/src/adminapi.yaml +347 -0
- package/src/openapi/.openapi-generator/FILES +10 -0
- package/src/openapi/apis/cluster-api.ts +127 -0
- package/src/openapi/apis/diagnostics-api.ts +114 -0
- package/src/openapi/apis/shared-api.ts +127 -0
- package/src/openapi/models/cluster-storage-usage-history-point.ts +48 -0
- package/src/openapi/models/cluster-storage-usage-history.ts +63 -0
- package/src/openapi/models/index.ts +10 -0
- package/src/openapi/models/postgresql-database-space.ts +36 -0
- package/src/openapi/models/postgresql-index-space.ts +96 -0
- package/src/openapi/models/postgresql-space-analysis.ts +93 -0
- package/src/openapi/models/postgresql-space-source.ts +54 -0
- package/src/openapi/models/postgresql-space-summary.ts +78 -0
- package/src/openapi/models/postgresql-storage-overview.ts +60 -0
- package/src/openapi/models/postgresql-table-space.ts +126 -0
- package/src/openapi/models/postgresql-toast-relation-space.ts +60 -0
- package/src/openapi.yaml +347 -0
package/src/adminapi.yaml
CHANGED
|
@@ -3363,6 +3363,47 @@ paths:
|
|
|
3363
3363
|
tags:
|
|
3364
3364
|
- cluster
|
|
3365
3365
|
- shared
|
|
3366
|
+
/admin/v1/organizations/{orgName}/clusters/{clusterName}/storageUsageHistory:
|
|
3367
|
+
get:
|
|
3368
|
+
description: Get cluster storage usage history from backend-owned fixed metrics.
|
|
3369
|
+
operationId: getClusterStorageUsageHistory
|
|
3370
|
+
summary: Get cluster storage usage history
|
|
3371
|
+
parameters:
|
|
3372
|
+
- description: name of the Org
|
|
3373
|
+
in: path
|
|
3374
|
+
name: orgName
|
|
3375
|
+
required: true
|
|
3376
|
+
schema:
|
|
3377
|
+
type: string
|
|
3378
|
+
- description: name of the cluster
|
|
3379
|
+
in: path
|
|
3380
|
+
name: clusterName
|
|
3381
|
+
required: true
|
|
3382
|
+
schema:
|
|
3383
|
+
type: string
|
|
3384
|
+
- name: timeRange
|
|
3385
|
+
in: query
|
|
3386
|
+
description: Requested history range. Supported values are 24h and 7d. Defaults to 24h.
|
|
3387
|
+
schema:
|
|
3388
|
+
type: string
|
|
3389
|
+
responses:
|
|
3390
|
+
'200':
|
|
3391
|
+
description: OK
|
|
3392
|
+
content:
|
|
3393
|
+
application/json:
|
|
3394
|
+
schema:
|
|
3395
|
+
$ref: '#/components/schemas/clusterStorageUsageHistory'
|
|
3396
|
+
'400':
|
|
3397
|
+
$ref: '#/components/responses/400'
|
|
3398
|
+
'401':
|
|
3399
|
+
$ref: '#/components/responses/401'
|
|
3400
|
+
'403':
|
|
3401
|
+
$ref: '#/components/responses/403'
|
|
3402
|
+
'404':
|
|
3403
|
+
$ref: '#/components/responses/404'
|
|
3404
|
+
tags:
|
|
3405
|
+
- cluster
|
|
3406
|
+
- shared
|
|
3366
3407
|
/admin/v1/organizations/{orgName}/clusters/{clusterName}/instances/metrics:
|
|
3367
3408
|
get:
|
|
3368
3409
|
operationId: getInstacesMetrics
|
|
@@ -19083,6 +19124,41 @@ paths:
|
|
|
19083
19124
|
$ref: '#/components/responses/403'
|
|
19084
19125
|
'500':
|
|
19085
19126
|
$ref: '#/components/responses/500'
|
|
19127
|
+
/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/spaceAnalysis:
|
|
19128
|
+
get:
|
|
19129
|
+
tags:
|
|
19130
|
+
- diagnostics
|
|
19131
|
+
summary: Get PostgreSQL space analysis
|
|
19132
|
+
description: Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, storage history, or remediation actions.
|
|
19133
|
+
operationId: getDiagnosticsPostgresqlSpaceAnalysis
|
|
19134
|
+
parameters:
|
|
19135
|
+
- name: orgName
|
|
19136
|
+
in: path
|
|
19137
|
+
description: Organization name
|
|
19138
|
+
required: true
|
|
19139
|
+
schema:
|
|
19140
|
+
type: string
|
|
19141
|
+
- name: clusterName
|
|
19142
|
+
in: path
|
|
19143
|
+
description: Cluster name
|
|
19144
|
+
required: true
|
|
19145
|
+
schema:
|
|
19146
|
+
type: string
|
|
19147
|
+
responses:
|
|
19148
|
+
'200':
|
|
19149
|
+
description: OK
|
|
19150
|
+
content:
|
|
19151
|
+
application/json:
|
|
19152
|
+
schema:
|
|
19153
|
+
$ref: '#/components/schemas/postgresqlSpaceAnalysis'
|
|
19154
|
+
'400':
|
|
19155
|
+
$ref: '#/components/responses/400'
|
|
19156
|
+
'401':
|
|
19157
|
+
$ref: '#/components/responses/401'
|
|
19158
|
+
'403':
|
|
19159
|
+
$ref: '#/components/responses/403'
|
|
19160
|
+
'500':
|
|
19161
|
+
$ref: '#/components/responses/500'
|
|
19086
19162
|
/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}/lockAnalysis:
|
|
19087
19163
|
get:
|
|
19088
19164
|
tags:
|
|
@@ -23580,6 +23656,55 @@ components:
|
|
|
23580
23656
|
type: array
|
|
23581
23657
|
items: {}
|
|
23582
23658
|
nullable: true
|
|
23659
|
+
clusterStorageUsageHistoryPoint:
|
|
23660
|
+
type: object
|
|
23661
|
+
required:
|
|
23662
|
+
- timestamp
|
|
23663
|
+
- usedBytes
|
|
23664
|
+
- totalBytes
|
|
23665
|
+
- usageRatio
|
|
23666
|
+
properties:
|
|
23667
|
+
timestamp:
|
|
23668
|
+
type: string
|
|
23669
|
+
usedBytes:
|
|
23670
|
+
type: integer
|
|
23671
|
+
format: int64
|
|
23672
|
+
totalBytes:
|
|
23673
|
+
type: integer
|
|
23674
|
+
format: int64
|
|
23675
|
+
usageRatio:
|
|
23676
|
+
type: number
|
|
23677
|
+
format: double
|
|
23678
|
+
clusterStorageUsageHistory:
|
|
23679
|
+
type: object
|
|
23680
|
+
description: Cluster storage usage history collected from backend-owned fixed metrics.
|
|
23681
|
+
required:
|
|
23682
|
+
- timeRange
|
|
23683
|
+
- start
|
|
23684
|
+
- end
|
|
23685
|
+
- points
|
|
23686
|
+
- source
|
|
23687
|
+
- collectedAt
|
|
23688
|
+
properties:
|
|
23689
|
+
timeRange:
|
|
23690
|
+
type: string
|
|
23691
|
+
description: Requested history range. Supported values are 24h and 7d.
|
|
23692
|
+
start:
|
|
23693
|
+
type: string
|
|
23694
|
+
description: History query start timestamp in UTC.
|
|
23695
|
+
end:
|
|
23696
|
+
type: string
|
|
23697
|
+
description: History query end timestamp in UTC.
|
|
23698
|
+
points:
|
|
23699
|
+
type: array
|
|
23700
|
+
items:
|
|
23701
|
+
$ref: '#/components/schemas/clusterStorageUsageHistoryPoint'
|
|
23702
|
+
source:
|
|
23703
|
+
type: string
|
|
23704
|
+
description: Metrics source used to build the history.
|
|
23705
|
+
collectedAt:
|
|
23706
|
+
type: string
|
|
23707
|
+
description: Backend collection timestamp in UTC.
|
|
23583
23708
|
instanceDiskUsageItem:
|
|
23584
23709
|
description: disk usage with volume name.
|
|
23585
23710
|
properties:
|
|
@@ -35620,6 +35745,228 @@ components:
|
|
|
35620
35745
|
type: array
|
|
35621
35746
|
items:
|
|
35622
35747
|
$ref: '#/components/schemas/postgresqlSession'
|
|
35748
|
+
postgresqlSpaceSummary:
|
|
35749
|
+
type: object
|
|
35750
|
+
required:
|
|
35751
|
+
- tableCount
|
|
35752
|
+
- indexCount
|
|
35753
|
+
- toastRelationCount
|
|
35754
|
+
- tableListTruncated
|
|
35755
|
+
- indexListTruncated
|
|
35756
|
+
properties:
|
|
35757
|
+
databaseName:
|
|
35758
|
+
type: string
|
|
35759
|
+
databaseSizeBytes:
|
|
35760
|
+
type: integer
|
|
35761
|
+
format: int64
|
|
35762
|
+
tableCount:
|
|
35763
|
+
type: integer
|
|
35764
|
+
format: int64
|
|
35765
|
+
indexCount:
|
|
35766
|
+
type: integer
|
|
35767
|
+
format: int64
|
|
35768
|
+
toastRelationCount:
|
|
35769
|
+
type: integer
|
|
35770
|
+
format: int64
|
|
35771
|
+
largestTableBytes:
|
|
35772
|
+
type: integer
|
|
35773
|
+
format: int64
|
|
35774
|
+
largestIndexBytes:
|
|
35775
|
+
type: integer
|
|
35776
|
+
format: int64
|
|
35777
|
+
tableListTruncated:
|
|
35778
|
+
type: boolean
|
|
35779
|
+
indexListTruncated:
|
|
35780
|
+
type: boolean
|
|
35781
|
+
postgresqlStorageOverview:
|
|
35782
|
+
type: object
|
|
35783
|
+
required:
|
|
35784
|
+
- source
|
|
35785
|
+
properties:
|
|
35786
|
+
totalBytes:
|
|
35787
|
+
type: integer
|
|
35788
|
+
format: int64
|
|
35789
|
+
description: Current total PVC capacity in bytes when backend-owned metrics are available.
|
|
35790
|
+
usedBytes:
|
|
35791
|
+
type: integer
|
|
35792
|
+
format: int64
|
|
35793
|
+
description: Current PVC used bytes when backend-owned metrics are available.
|
|
35794
|
+
availableBytes:
|
|
35795
|
+
type: integer
|
|
35796
|
+
format: int64
|
|
35797
|
+
description: Current available PVC bytes derived from totalBytes - usedBytes when both values are available.
|
|
35798
|
+
usageRatio:
|
|
35799
|
+
type: number
|
|
35800
|
+
format: double
|
|
35801
|
+
description: Current usedBytes / totalBytes ratio when both values are available.
|
|
35802
|
+
updatedAt:
|
|
35803
|
+
type: string
|
|
35804
|
+
description: Metrics collection timestamp in UTC.
|
|
35805
|
+
source:
|
|
35806
|
+
type: string
|
|
35807
|
+
postgresqlDatabaseSpace:
|
|
35808
|
+
type: object
|
|
35809
|
+
properties:
|
|
35810
|
+
name:
|
|
35811
|
+
type: string
|
|
35812
|
+
sizeBytes:
|
|
35813
|
+
type: integer
|
|
35814
|
+
format: int64
|
|
35815
|
+
postgresqlTableSpace:
|
|
35816
|
+
type: object
|
|
35817
|
+
properties:
|
|
35818
|
+
database:
|
|
35819
|
+
type: string
|
|
35820
|
+
schema:
|
|
35821
|
+
type: string
|
|
35822
|
+
name:
|
|
35823
|
+
type: string
|
|
35824
|
+
relationOid:
|
|
35825
|
+
type: integer
|
|
35826
|
+
format: int64
|
|
35827
|
+
totalBytes:
|
|
35828
|
+
type: integer
|
|
35829
|
+
format: int64
|
|
35830
|
+
tableBytes:
|
|
35831
|
+
type: integer
|
|
35832
|
+
format: int64
|
|
35833
|
+
indexBytes:
|
|
35834
|
+
type: integer
|
|
35835
|
+
format: int64
|
|
35836
|
+
toastBytes:
|
|
35837
|
+
type: integer
|
|
35838
|
+
format: int64
|
|
35839
|
+
toastRelationOid:
|
|
35840
|
+
type: integer
|
|
35841
|
+
format: int64
|
|
35842
|
+
liveTuples:
|
|
35843
|
+
type: integer
|
|
35844
|
+
format: int64
|
|
35845
|
+
deadTuples:
|
|
35846
|
+
type: integer
|
|
35847
|
+
format: int64
|
|
35848
|
+
seqScan:
|
|
35849
|
+
type: integer
|
|
35850
|
+
format: int64
|
|
35851
|
+
indexScan:
|
|
35852
|
+
type: integer
|
|
35853
|
+
format: int64
|
|
35854
|
+
lastVacuum:
|
|
35855
|
+
type: string
|
|
35856
|
+
lastAutoVacuum:
|
|
35857
|
+
type: string
|
|
35858
|
+
lastAnalyze:
|
|
35859
|
+
type: string
|
|
35860
|
+
lastAutoAnalyze:
|
|
35861
|
+
type: string
|
|
35862
|
+
postgresqlIndexSpace:
|
|
35863
|
+
type: object
|
|
35864
|
+
properties:
|
|
35865
|
+
database:
|
|
35866
|
+
type: string
|
|
35867
|
+
schema:
|
|
35868
|
+
type: string
|
|
35869
|
+
table:
|
|
35870
|
+
type: string
|
|
35871
|
+
name:
|
|
35872
|
+
type: string
|
|
35873
|
+
tableRelationOid:
|
|
35874
|
+
type: integer
|
|
35875
|
+
format: int64
|
|
35876
|
+
relationOid:
|
|
35877
|
+
type: integer
|
|
35878
|
+
format: int64
|
|
35879
|
+
sizeBytes:
|
|
35880
|
+
type: integer
|
|
35881
|
+
format: int64
|
|
35882
|
+
isPrimary:
|
|
35883
|
+
type: boolean
|
|
35884
|
+
isUnique:
|
|
35885
|
+
type: boolean
|
|
35886
|
+
scanCount:
|
|
35887
|
+
type: integer
|
|
35888
|
+
format: int64
|
|
35889
|
+
tuplesRead:
|
|
35890
|
+
type: integer
|
|
35891
|
+
format: int64
|
|
35892
|
+
tuplesFetch:
|
|
35893
|
+
type: integer
|
|
35894
|
+
format: int64
|
|
35895
|
+
postgresqlToastRelationSpace:
|
|
35896
|
+
type: object
|
|
35897
|
+
properties:
|
|
35898
|
+
database:
|
|
35899
|
+
type: string
|
|
35900
|
+
schema:
|
|
35901
|
+
type: string
|
|
35902
|
+
table:
|
|
35903
|
+
type: string
|
|
35904
|
+
tableRelationOid:
|
|
35905
|
+
type: integer
|
|
35906
|
+
format: int64
|
|
35907
|
+
toastRelationOid:
|
|
35908
|
+
type: integer
|
|
35909
|
+
format: int64
|
|
35910
|
+
toastBytes:
|
|
35911
|
+
type: integer
|
|
35912
|
+
format: int64
|
|
35913
|
+
postgresqlSpaceSource:
|
|
35914
|
+
type: object
|
|
35915
|
+
required:
|
|
35916
|
+
- name
|
|
35917
|
+
- kind
|
|
35918
|
+
- status
|
|
35919
|
+
- collectedAt
|
|
35920
|
+
properties:
|
|
35921
|
+
name:
|
|
35922
|
+
type: string
|
|
35923
|
+
kind:
|
|
35924
|
+
type: string
|
|
35925
|
+
status:
|
|
35926
|
+
type: string
|
|
35927
|
+
collectedAt:
|
|
35928
|
+
type: string
|
|
35929
|
+
message:
|
|
35930
|
+
type: string
|
|
35931
|
+
postgresqlSpaceAnalysis:
|
|
35932
|
+
type: object
|
|
35933
|
+
required:
|
|
35934
|
+
- summary
|
|
35935
|
+
- storageOverview
|
|
35936
|
+
- databases
|
|
35937
|
+
- tables
|
|
35938
|
+
- indexes
|
|
35939
|
+
- toastRelations
|
|
35940
|
+
- sources
|
|
35941
|
+
- collectedAt
|
|
35942
|
+
properties:
|
|
35943
|
+
summary:
|
|
35944
|
+
$ref: '#/components/schemas/postgresqlSpaceSummary'
|
|
35945
|
+
storageOverview:
|
|
35946
|
+
$ref: '#/components/schemas/postgresqlStorageOverview'
|
|
35947
|
+
databases:
|
|
35948
|
+
type: array
|
|
35949
|
+
items:
|
|
35950
|
+
$ref: '#/components/schemas/postgresqlDatabaseSpace'
|
|
35951
|
+
tables:
|
|
35952
|
+
type: array
|
|
35953
|
+
items:
|
|
35954
|
+
$ref: '#/components/schemas/postgresqlTableSpace'
|
|
35955
|
+
indexes:
|
|
35956
|
+
type: array
|
|
35957
|
+
items:
|
|
35958
|
+
$ref: '#/components/schemas/postgresqlIndexSpace'
|
|
35959
|
+
toastRelations:
|
|
35960
|
+
type: array
|
|
35961
|
+
items:
|
|
35962
|
+
$ref: '#/components/schemas/postgresqlToastRelationSpace'
|
|
35963
|
+
sources:
|
|
35964
|
+
type: array
|
|
35965
|
+
items:
|
|
35966
|
+
$ref: '#/components/schemas/postgresqlSpaceSource'
|
|
35967
|
+
collectedAt:
|
|
35968
|
+
type: string
|
|
35969
|
+
description: Backend collection timestamp in UTC.
|
|
35623
35970
|
postgresqlLockRow:
|
|
35624
35971
|
type: object
|
|
35625
35972
|
required:
|
|
@@ -256,6 +256,8 @@ models/cluster-slow-log-explain-response.ts
|
|
|
256
256
|
models/cluster-slow-log-stats.ts
|
|
257
257
|
models/cluster-slow-log-template-list.ts
|
|
258
258
|
models/cluster-slow-log-template.ts
|
|
259
|
+
models/cluster-storage-usage-history-point.ts
|
|
260
|
+
models/cluster-storage-usage-history.ts
|
|
259
261
|
models/cluster-tags.ts
|
|
260
262
|
models/cluster-termination-policy.ts
|
|
261
263
|
models/cluster-type.ts
|
|
@@ -650,10 +652,18 @@ models/phone-verification-request.ts
|
|
|
650
652
|
models/platform-parameter-constraints.ts
|
|
651
653
|
models/platform-parameter-list.ts
|
|
652
654
|
models/platform-parameter.ts
|
|
655
|
+
models/postgresql-database-space.ts
|
|
653
656
|
models/postgresql-deadlock-evidence.ts
|
|
657
|
+
models/postgresql-index-space.ts
|
|
654
658
|
models/postgresql-lock-analysis.ts
|
|
655
659
|
models/postgresql-lock-row.ts
|
|
656
660
|
models/postgresql-session.ts
|
|
661
|
+
models/postgresql-space-analysis.ts
|
|
662
|
+
models/postgresql-space-source.ts
|
|
663
|
+
models/postgresql-space-summary.ts
|
|
664
|
+
models/postgresql-storage-overview.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
|
|
@@ -36,6 +36,8 @@ import type { ClusterMetrics } from '../models';
|
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
import type { ClusterModeTransition } from '../models';
|
|
38
38
|
// @ts-ignore
|
|
39
|
+
import type { ClusterStorageUsageHistory } from '../models';
|
|
40
|
+
// @ts-ignore
|
|
39
41
|
import type { ClusterUpdate } from '../models';
|
|
40
42
|
// @ts-ignore
|
|
41
43
|
import type { EndpointList } from '../models';
|
|
@@ -443,6 +445,56 @@ export const ClusterApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
443
445
|
|
|
444
446
|
|
|
445
447
|
|
|
448
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
449
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
450
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
451
|
+
|
|
452
|
+
return {
|
|
453
|
+
url: toPathString(localVarUrlObj),
|
|
454
|
+
options: localVarRequestOptions,
|
|
455
|
+
};
|
|
456
|
+
},
|
|
457
|
+
/**
|
|
458
|
+
* Get cluster storage usage history from backend-owned fixed metrics.
|
|
459
|
+
* @summary Get cluster storage usage history
|
|
460
|
+
* @param {string} orgName name of the Org
|
|
461
|
+
* @param {string} clusterName name of the cluster
|
|
462
|
+
* @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
|
|
463
|
+
* @param {*} [options] Override http request option.
|
|
464
|
+
* @throws {RequiredError}
|
|
465
|
+
*/
|
|
466
|
+
getClusterStorageUsageHistory: async (orgName: string, clusterName: string, timeRange?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
467
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
468
|
+
assertParamExists('getClusterStorageUsageHistory', 'orgName', orgName)
|
|
469
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
470
|
+
assertParamExists('getClusterStorageUsageHistory', 'clusterName', clusterName)
|
|
471
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/storageUsageHistory`
|
|
472
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
473
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
474
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
475
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
476
|
+
let baseOptions;
|
|
477
|
+
if (configuration) {
|
|
478
|
+
baseOptions = configuration.baseOptions;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
482
|
+
const localVarHeaderParameter = {} as any;
|
|
483
|
+
const localVarQueryParameter = {} as any;
|
|
484
|
+
|
|
485
|
+
// authentication BearerToken required
|
|
486
|
+
// http bearer authentication required
|
|
487
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
488
|
+
|
|
489
|
+
// authentication DigestAuth required
|
|
490
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
491
|
+
|
|
492
|
+
if (timeRange !== undefined) {
|
|
493
|
+
localVarQueryParameter['timeRange'] = timeRange;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
446
498
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
447
499
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
448
500
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -1437,6 +1489,21 @@ export const ClusterApiFp = function(configuration?: Configuration) {
|
|
|
1437
1489
|
const localVarOperationServerBasePath = operationServerMap['ClusterApi.getClusterInstanceLog']?.[localVarOperationServerIndex]?.url;
|
|
1438
1490
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1439
1491
|
},
|
|
1492
|
+
/**
|
|
1493
|
+
* Get cluster storage usage history from backend-owned fixed metrics.
|
|
1494
|
+
* @summary Get cluster storage usage history
|
|
1495
|
+
* @param {string} orgName name of the Org
|
|
1496
|
+
* @param {string} clusterName name of the cluster
|
|
1497
|
+
* @param {string} [timeRange] Requested history range. Supported values are 24h and 7d. Defaults to 24h.
|
|
1498
|
+
* @param {*} [options] Override http request option.
|
|
1499
|
+
* @throws {RequiredError}
|
|
1500
|
+
*/
|
|
1501
|
+
async getClusterStorageUsageHistory(orgName: string, clusterName: string, timeRange?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStorageUsageHistory>> {
|
|
1502
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterStorageUsageHistory(orgName, clusterName, timeRange, options);
|
|
1503
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1504
|
+
const localVarOperationServerBasePath = operationServerMap['ClusterApi.getClusterStorageUsageHistory']?.[localVarOperationServerIndex]?.url;
|
|
1505
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1506
|
+
},
|
|
1440
1507
|
/**
|
|
1441
1508
|
*
|
|
1442
1509
|
* @summary Get instaces metrics in cluster
|
|
@@ -1767,6 +1834,16 @@ export const ClusterApiFactory = function (configuration?: Configuration, basePa
|
|
|
1767
1834
|
getClusterInstanceLog(requestParameters: ClusterApiGetClusterInstanceLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
1768
1835
|
return localVarFp.getClusterInstanceLog(requestParameters.orgName, requestParameters.clusterName, requestParameters.workloadName, requestParameters.workloadType, requestParameters.previous, requestParameters.sinceSeconds, requestParameters.tailLines, options).then((request) => request(axios, basePath));
|
|
1769
1836
|
},
|
|
1837
|
+
/**
|
|
1838
|
+
* Get cluster storage usage history from backend-owned fixed metrics.
|
|
1839
|
+
* @summary Get cluster storage usage history
|
|
1840
|
+
* @param {ClusterApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
|
|
1841
|
+
* @param {*} [options] Override http request option.
|
|
1842
|
+
* @throws {RequiredError}
|
|
1843
|
+
*/
|
|
1844
|
+
getClusterStorageUsageHistory(requestParameters: ClusterApiGetClusterStorageUsageHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterStorageUsageHistory> {
|
|
1845
|
+
return localVarFp.getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(axios, basePath));
|
|
1846
|
+
},
|
|
1770
1847
|
/**
|
|
1771
1848
|
*
|
|
1772
1849
|
* @summary Get instaces metrics in cluster
|
|
@@ -2006,6 +2083,16 @@ export interface ClusterApiInterface {
|
|
|
2006
2083
|
*/
|
|
2007
2084
|
getClusterInstanceLog(requestParameters: ClusterApiGetClusterInstanceLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<string>;
|
|
2008
2085
|
|
|
2086
|
+
/**
|
|
2087
|
+
* Get cluster storage usage history from backend-owned fixed metrics.
|
|
2088
|
+
* @summary Get cluster storage usage history
|
|
2089
|
+
* @param {ClusterApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
|
|
2090
|
+
* @param {*} [options] Override http request option.
|
|
2091
|
+
* @throws {RequiredError}
|
|
2092
|
+
* @memberof ClusterApiInterface
|
|
2093
|
+
*/
|
|
2094
|
+
getClusterStorageUsageHistory(requestParameters: ClusterApiGetClusterStorageUsageHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClusterStorageUsageHistory>;
|
|
2095
|
+
|
|
2009
2096
|
/**
|
|
2010
2097
|
*
|
|
2011
2098
|
* @summary Get instaces metrics in cluster
|
|
@@ -2392,6 +2479,34 @@ export interface ClusterApiGetClusterInstanceLogRequest {
|
|
|
2392
2479
|
readonly tailLines?: number
|
|
2393
2480
|
}
|
|
2394
2481
|
|
|
2482
|
+
/**
|
|
2483
|
+
* Request parameters for getClusterStorageUsageHistory operation in ClusterApi.
|
|
2484
|
+
* @export
|
|
2485
|
+
* @interface ClusterApiGetClusterStorageUsageHistoryRequest
|
|
2486
|
+
*/
|
|
2487
|
+
export interface ClusterApiGetClusterStorageUsageHistoryRequest {
|
|
2488
|
+
/**
|
|
2489
|
+
* name of the Org
|
|
2490
|
+
* @type {string}
|
|
2491
|
+
* @memberof ClusterApiGetClusterStorageUsageHistory
|
|
2492
|
+
*/
|
|
2493
|
+
readonly orgName: string
|
|
2494
|
+
|
|
2495
|
+
/**
|
|
2496
|
+
* name of the cluster
|
|
2497
|
+
* @type {string}
|
|
2498
|
+
* @memberof ClusterApiGetClusterStorageUsageHistory
|
|
2499
|
+
*/
|
|
2500
|
+
readonly clusterName: string
|
|
2501
|
+
|
|
2502
|
+
/**
|
|
2503
|
+
* Requested history range. Supported values are 24h and 7d. Defaults to 24h.
|
|
2504
|
+
* @type {string}
|
|
2505
|
+
* @memberof ClusterApiGetClusterStorageUsageHistory
|
|
2506
|
+
*/
|
|
2507
|
+
readonly timeRange?: string
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2395
2510
|
/**
|
|
2396
2511
|
* Request parameters for getInstacesMetrics operation in ClusterApi.
|
|
2397
2512
|
* @export
|
|
@@ -3001,6 +3116,18 @@ export class ClusterApi extends BaseAPI implements ClusterApiInterface {
|
|
|
3001
3116
|
return ClusterApiFp(this.configuration).getClusterInstanceLog(requestParameters.orgName, requestParameters.clusterName, requestParameters.workloadName, requestParameters.workloadType, requestParameters.previous, requestParameters.sinceSeconds, requestParameters.tailLines, options).then((request) => request(this.axios, this.basePath));
|
|
3002
3117
|
}
|
|
3003
3118
|
|
|
3119
|
+
/**
|
|
3120
|
+
* Get cluster storage usage history from backend-owned fixed metrics.
|
|
3121
|
+
* @summary Get cluster storage usage history
|
|
3122
|
+
* @param {ClusterApiGetClusterStorageUsageHistoryRequest} requestParameters Request parameters.
|
|
3123
|
+
* @param {*} [options] Override http request option.
|
|
3124
|
+
* @throws {RequiredError}
|
|
3125
|
+
* @memberof ClusterApi
|
|
3126
|
+
*/
|
|
3127
|
+
public getClusterStorageUsageHistory(requestParameters: ClusterApiGetClusterStorageUsageHistoryRequest, options?: RawAxiosRequestConfig) {
|
|
3128
|
+
return ClusterApiFp(this.configuration).getClusterStorageUsageHistory(requestParameters.orgName, requestParameters.clusterName, requestParameters.timeRange, options).then((request) => request(this.axios, this.basePath));
|
|
3129
|
+
}
|
|
3130
|
+
|
|
3004
3131
|
/**
|
|
3005
3132
|
*
|
|
3006
3133
|
* @summary Get instaces metrics in cluster
|