kb-cloud-client-typescript 2.3.0-alpha.118 → 2.3.0-alpha.120

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. package/dist/adminapi/apis/cluster-api.d.ts +72 -0
  2. package/dist/adminapi/apis/cluster-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/cluster-api.js +79 -0
  4. package/dist/adminapi/apis/cluster-api.js.map +1 -1
  5. package/dist/adminapi/apis/diagnostics-api.d.ts +5 -5
  6. package/dist/adminapi/apis/diagnostics-api.js +4 -4
  7. package/dist/adminapi/apis/shared-api.d.ts +72 -0
  8. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  9. package/dist/adminapi/apis/shared-api.js +79 -0
  10. package/dist/adminapi/apis/shared-api.js.map +1 -1
  11. package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts +43 -0
  12. package/dist/adminapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
  13. package/dist/adminapi/models/{postgresql-space-pvc.js → cluster-storage-usage-history-point.js} +1 -1
  14. package/dist/adminapi/models/cluster-storage-usage-history-point.js.map +1 -0
  15. package/dist/adminapi/models/cluster-storage-usage-history.d.ts +56 -0
  16. package/dist/adminapi/models/cluster-storage-usage-history.d.ts.map +1 -0
  17. package/dist/adminapi/models/{postgresql-space-cannot-prove.js → cluster-storage-usage-history.js} +1 -1
  18. package/dist/adminapi/models/cluster-storage-usage-history.js.map +1 -0
  19. package/dist/adminapi/models/index.d.ts +3 -3
  20. package/dist/adminapi/models/index.d.ts.map +1 -1
  21. package/dist/adminapi/models/index.js +3 -3
  22. package/dist/adminapi/models/index.js.map +1 -1
  23. package/dist/adminapi/models/postgresql-database-space.d.ts +0 -12
  24. package/dist/adminapi/models/postgresql-database-space.d.ts.map +1 -1
  25. package/dist/adminapi/models/postgresql-index-space.d.ts +0 -12
  26. package/dist/adminapi/models/postgresql-index-space.d.ts.map +1 -1
  27. package/dist/adminapi/models/postgresql-space-analysis.d.ts +3 -17
  28. package/dist/adminapi/models/postgresql-space-analysis.d.ts.map +1 -1
  29. package/dist/adminapi/models/postgresql-space-summary.d.ts +0 -12
  30. package/dist/adminapi/models/postgresql-space-summary.d.ts.map +1 -1
  31. package/dist/adminapi/models/postgresql-storage-overview.d.ts +55 -0
  32. package/dist/adminapi/models/postgresql-storage-overview.d.ts.map +1 -0
  33. package/dist/adminapi/models/{postgresql-space-risk-hint.js → postgresql-storage-overview.js} +1 -1
  34. package/dist/adminapi/models/postgresql-storage-overview.js.map +1 -0
  35. package/dist/adminapi/models/postgresql-table-space.d.ts +0 -12
  36. package/dist/adminapi/models/postgresql-table-space.d.ts.map +1 -1
  37. package/dist/adminapi/models/postgresql-toast-relation-space.d.ts +0 -12
  38. package/dist/adminapi/models/postgresql-toast-relation-space.d.ts.map +1 -1
  39. package/dist/openapi/apis/cluster-api.d.ts +72 -0
  40. package/dist/openapi/apis/cluster-api.d.ts.map +1 -1
  41. package/dist/openapi/apis/cluster-api.js +79 -0
  42. package/dist/openapi/apis/cluster-api.js.map +1 -1
  43. package/dist/openapi/apis/diagnostics-api.d.ts +5 -5
  44. package/dist/openapi/apis/diagnostics-api.js +4 -4
  45. package/dist/openapi/apis/shared-api.d.ts +72 -0
  46. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  47. package/dist/openapi/apis/shared-api.js +79 -0
  48. package/dist/openapi/apis/shared-api.js.map +1 -1
  49. package/dist/openapi/models/{postgresql-space-pvc.d.ts → cluster-storage-usage-history-point.d.ts} +16 -16
  50. package/dist/openapi/models/cluster-storage-usage-history-point.d.ts.map +1 -0
  51. package/dist/openapi/models/{postgresql-space-cannot-prove.js → cluster-storage-usage-history-point.js} +1 -1
  52. package/dist/openapi/models/cluster-storage-usage-history-point.js.map +1 -0
  53. package/dist/openapi/models/{postgresql-space-risk-hint.d.ts → cluster-storage-usage-history.d.ts} +23 -28
  54. package/dist/openapi/models/cluster-storage-usage-history.d.ts.map +1 -0
  55. package/dist/openapi/models/{postgresql-space-pvc.js → cluster-storage-usage-history.js} +1 -1
  56. package/dist/openapi/models/cluster-storage-usage-history.js.map +1 -0
  57. package/dist/openapi/models/index.d.ts +3 -3
  58. package/dist/openapi/models/index.d.ts.map +1 -1
  59. package/dist/openapi/models/index.js +3 -3
  60. package/dist/openapi/models/index.js.map +1 -1
  61. package/dist/openapi/models/postgresql-database-space.d.ts +0 -12
  62. package/dist/openapi/models/postgresql-database-space.d.ts.map +1 -1
  63. package/dist/openapi/models/postgresql-index-space.d.ts +0 -12
  64. package/dist/openapi/models/postgresql-index-space.d.ts.map +1 -1
  65. package/dist/openapi/models/postgresql-space-analysis.d.ts +3 -17
  66. package/dist/openapi/models/postgresql-space-analysis.d.ts.map +1 -1
  67. package/dist/openapi/models/postgresql-space-summary.d.ts +0 -12
  68. package/dist/openapi/models/postgresql-space-summary.d.ts.map +1 -1
  69. package/dist/openapi/models/postgresql-storage-overview.d.ts +55 -0
  70. package/dist/openapi/models/postgresql-storage-overview.d.ts.map +1 -0
  71. package/dist/openapi/models/{postgresql-space-risk-hint.js → postgresql-storage-overview.js} +1 -1
  72. package/dist/openapi/models/postgresql-storage-overview.js.map +1 -0
  73. package/dist/openapi/models/postgresql-table-space.d.ts +0 -12
  74. package/dist/openapi/models/postgresql-table-space.d.ts.map +1 -1
  75. package/dist/openapi/models/postgresql-toast-relation-space.d.ts +0 -12
  76. package/dist/openapi/models/postgresql-toast-relation-space.d.ts.map +1 -1
  77. package/package.json +1 -1
  78. package/src/adminapi/.openapi-generator/FILES +3 -3
  79. package/src/adminapi/apis/cluster-api.ts +127 -0
  80. package/src/adminapi/apis/diagnostics-api.ts +5 -5
  81. package/src/adminapi/apis/shared-api.ts +127 -0
  82. package/src/adminapi/models/{postgresql-space-pvc.ts → cluster-storage-usage-history-point.ts} +15 -15
  83. package/src/adminapi/models/cluster-storage-usage-history.ts +63 -0
  84. package/src/adminapi/models/index.ts +3 -3
  85. package/src/adminapi/models/postgresql-database-space.ts +0 -12
  86. package/src/adminapi/models/postgresql-index-space.ts +0 -12
  87. package/src/adminapi/models/postgresql-space-analysis.ts +5 -23
  88. package/src/adminapi/models/postgresql-space-summary.ts +0 -12
  89. package/src/adminapi/models/postgresql-storage-overview.ts +60 -0
  90. package/src/adminapi/models/postgresql-table-space.ts +0 -12
  91. package/src/adminapi/models/postgresql-toast-relation-space.ts +0 -12
  92. package/src/adminapi.yaml +112 -94
  93. package/src/openapi/.openapi-generator/FILES +3 -3
  94. package/src/openapi/apis/cluster-api.ts +127 -0
  95. package/src/openapi/apis/diagnostics-api.ts +5 -5
  96. package/src/openapi/apis/shared-api.ts +127 -0
  97. package/src/openapi/models/{postgresql-space-pvc.ts → cluster-storage-usage-history-point.ts} +15 -15
  98. package/src/openapi/models/cluster-storage-usage-history.ts +63 -0
  99. package/src/openapi/models/index.ts +3 -3
  100. package/src/openapi/models/postgresql-database-space.ts +0 -12
  101. package/src/openapi/models/postgresql-index-space.ts +0 -12
  102. package/src/openapi/models/postgresql-space-analysis.ts +5 -23
  103. package/src/openapi/models/postgresql-space-summary.ts +0 -12
  104. package/src/openapi/models/{postgresql-space-risk-hint.ts → postgresql-storage-overview.ts} +23 -29
  105. package/src/openapi/models/postgresql-table-space.ts +0 -12
  106. package/src/openapi/models/postgresql-toast-relation-space.ts +0 -12
  107. package/src/openapi.yaml +112 -94
  108. package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts +0 -43
  109. package/dist/adminapi/models/postgresql-space-cannot-prove.d.ts.map +0 -1
  110. package/dist/adminapi/models/postgresql-space-cannot-prove.js.map +0 -1
  111. package/dist/adminapi/models/postgresql-space-pvc.d.ts +0 -43
  112. package/dist/adminapi/models/postgresql-space-pvc.d.ts.map +0 -1
  113. package/dist/adminapi/models/postgresql-space-pvc.js.map +0 -1
  114. package/dist/adminapi/models/postgresql-space-risk-hint.d.ts +0 -61
  115. package/dist/adminapi/models/postgresql-space-risk-hint.d.ts.map +0 -1
  116. package/dist/adminapi/models/postgresql-space-risk-hint.js.map +0 -1
  117. package/dist/openapi/models/postgresql-space-cannot-prove.d.ts +0 -43
  118. package/dist/openapi/models/postgresql-space-cannot-prove.d.ts.map +0 -1
  119. package/dist/openapi/models/postgresql-space-cannot-prove.js.map +0 -1
  120. package/dist/openapi/models/postgresql-space-pvc.d.ts.map +0 -1
  121. package/dist/openapi/models/postgresql-space-pvc.js.map +0 -1
  122. package/dist/openapi/models/postgresql-space-risk-hint.d.ts.map +0 -1
  123. package/dist/openapi/models/postgresql-space-risk-hint.js.map +0 -1
  124. package/src/adminapi/models/postgresql-space-cannot-prove.ts +0 -48
  125. package/src/adminapi/models/postgresql-space-risk-hint.ts +0 -66
  126. package/src/openapi/models/postgresql-space-cannot-prove.ts +0 -48
@@ -0,0 +1,60 @@
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 PostgresqlStorageOverview
21
+ */
22
+ export interface PostgresqlStorageOverview {
23
+ /**
24
+ * Current total PVC capacity in bytes when backend-owned metrics are available.
25
+ * @type {number}
26
+ * @memberof PostgresqlStorageOverview
27
+ */
28
+ 'totalBytes'?: number;
29
+ /**
30
+ * Current PVC used bytes when backend-owned metrics are available.
31
+ * @type {number}
32
+ * @memberof PostgresqlStorageOverview
33
+ */
34
+ 'usedBytes'?: number;
35
+ /**
36
+ * Current available PVC bytes derived from totalBytes - usedBytes when both values are available.
37
+ * @type {number}
38
+ * @memberof PostgresqlStorageOverview
39
+ */
40
+ 'availableBytes'?: number;
41
+ /**
42
+ * Current usedBytes / totalBytes ratio when both values are available.
43
+ * @type {number}
44
+ * @memberof PostgresqlStorageOverview
45
+ */
46
+ 'usageRatio'?: number;
47
+ /**
48
+ * Metrics collection timestamp in UTC.
49
+ * @type {string}
50
+ * @memberof PostgresqlStorageOverview
51
+ */
52
+ 'updatedAt'?: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof PostgresqlStorageOverview
57
+ */
58
+ 'source': string;
59
+ }
60
+
@@ -122,17 +122,5 @@ export interface PostgresqlTableSpace {
122
122
  * @memberof PostgresqlTableSpace
123
123
  */
124
124
  'lastAutoAnalyze'?: string;
125
- /**
126
- *
127
- * @type {boolean}
128
- * @memberof PostgresqlTableSpace
129
- */
130
- 'noHistoryYet': boolean;
131
- /**
132
- *
133
- * @type {boolean}
134
- * @memberof PostgresqlTableSpace
135
- */
136
- 'cannotProveGrowth': boolean;
137
125
  }
138
126
 
@@ -56,17 +56,5 @@ export interface PostgresqlToastRelationSpace {
56
56
  * @memberof PostgresqlToastRelationSpace
57
57
  */
58
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
59
  }
72
60
 
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
@@ -19088,7 +19129,7 @@ paths:
19088
19129
  tags:
19089
19130
  - diagnostics
19090
19131
  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.
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.
19092
19133
  operationId: getDiagnosticsPostgresqlSpaceAnalysis
19093
19134
  parameters:
19094
19135
  - name: orgName
@@ -23615,6 +23656,55 @@ components:
23615
23656
  type: array
23616
23657
  items: {}
23617
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.
23618
23708
  instanceDiskUsageItem:
23619
23709
  description: disk usage with volume name.
23620
23710
  properties:
@@ -35663,8 +35753,6 @@ components:
35663
35753
  - toastRelationCount
35664
35754
  - tableListTruncated
35665
35755
  - indexListTruncated
35666
- - noHistoryYet
35667
- - cannotProveGrowth
35668
35756
  properties:
35669
35757
  databaseName:
35670
35758
  type: string
@@ -35690,47 +35778,42 @@ components:
35690
35778
  type: boolean
35691
35779
  indexListTruncated:
35692
35780
  type: boolean
35693
- noHistoryYet:
35694
- type: boolean
35695
- cannotProveGrowth:
35696
- type: boolean
35697
- postgresqlSpacePVC:
35781
+ postgresqlStorageOverview:
35698
35782
  type: object
35699
35783
  required:
35700
- - noHistoryYet
35701
- - cannotProveGrowth
35702
35784
  - source
35703
35785
  properties:
35704
- currentUsedBytes:
35786
+ totalBytes:
35705
35787
  type: integer
35706
35788
  format: int64
35707
- description: Current PVC used bytes from backend-owned metrics when available.
35708
- noHistoryYet:
35709
- type: boolean
35710
- cannotProveGrowth:
35711
- type: boolean
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.
35712
35805
  source:
35713
35806
  type: string
35714
35807
  postgresqlDatabaseSpace:
35715
35808
  type: object
35716
- required:
35717
- - noHistoryYet
35718
- - cannotProveGrowth
35719
35809
  properties:
35720
35810
  name:
35721
35811
  type: string
35722
35812
  sizeBytes:
35723
35813
  type: integer
35724
35814
  format: int64
35725
- noHistoryYet:
35726
- type: boolean
35727
- cannotProveGrowth:
35728
- type: boolean
35729
35815
  postgresqlTableSpace:
35730
35816
  type: object
35731
- required:
35732
- - noHistoryYet
35733
- - cannotProveGrowth
35734
35817
  properties:
35735
35818
  database:
35736
35819
  type: string
@@ -35776,15 +35859,8 @@ components:
35776
35859
  type: string
35777
35860
  lastAutoAnalyze:
35778
35861
  type: string
35779
- noHistoryYet:
35780
- type: boolean
35781
- cannotProveGrowth:
35782
- type: boolean
35783
35862
  postgresqlIndexSpace:
35784
35863
  type: object
35785
- required:
35786
- - noHistoryYet
35787
- - cannotProveGrowth
35788
35864
  properties:
35789
35865
  database:
35790
35866
  type: string
@@ -35816,15 +35892,8 @@ components:
35816
35892
  tuplesFetch:
35817
35893
  type: integer
35818
35894
  format: int64
35819
- noHistoryYet:
35820
- type: boolean
35821
- cannotProveGrowth:
35822
- type: boolean
35823
35895
  postgresqlToastRelationSpace:
35824
35896
  type: object
35825
- required:
35826
- - noHistoryYet
35827
- - cannotProveGrowth
35828
35897
  properties:
35829
35898
  database:
35830
35899
  type: string
@@ -35841,49 +35910,6 @@ components:
35841
35910
  toastBytes:
35842
35911
  type: integer
35843
35912
  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
35913
  postgresqlSpaceSource:
35888
35914
  type: object
35889
35915
  required:
@@ -35906,20 +35932,18 @@ components:
35906
35932
  type: object
35907
35933
  required:
35908
35934
  - summary
35909
- - pvc
35935
+ - storageOverview
35910
35936
  - databases
35911
35937
  - tables
35912
35938
  - indexes
35913
35939
  - toastRelations
35914
- - riskHints
35915
- - cannotProve
35916
35940
  - sources
35917
35941
  - collectedAt
35918
35942
  properties:
35919
35943
  summary:
35920
35944
  $ref: '#/components/schemas/postgresqlSpaceSummary'
35921
- pvc:
35922
- $ref: '#/components/schemas/postgresqlSpacePVC'
35945
+ storageOverview:
35946
+ $ref: '#/components/schemas/postgresqlStorageOverview'
35923
35947
  databases:
35924
35948
  type: array
35925
35949
  items:
@@ -35936,12 +35960,6 @@ components:
35936
35960
  type: array
35937
35961
  items:
35938
35962
  $ref: '#/components/schemas/postgresqlToastRelationSpace'
35939
- riskHints:
35940
- type: array
35941
- items:
35942
- $ref: '#/components/schemas/postgresqlSpaceRiskHint'
35943
- cannotProve:
35944
- $ref: '#/components/schemas/postgresqlSpaceCannotProve'
35945
35963
  sources:
35946
35964
  type: array
35947
35965
  items:
@@ -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
@@ -657,11 +659,9 @@ models/postgresql-lock-analysis.ts
657
659
  models/postgresql-lock-row.ts
658
660
  models/postgresql-session.ts
659
661
  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
662
  models/postgresql-space-source.ts
664
663
  models/postgresql-space-summary.ts
664
+ models/postgresql-storage-overview.ts
665
665
  models/postgresql-table-space.ts
666
666
  models/postgresql-toast-relation-space.ts
667
667
  models/postgresql-wait-graph-edge-evidence.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
@@ -134,7 +134,7 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
134
134
  };
135
135
  },
136
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.
137
+ * 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.
138
138
  * @summary Get PostgreSQL space analysis
139
139
  * @param {string} orgName Organization name
140
140
  * @param {string} clusterName Cluster name
@@ -269,7 +269,7 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
269
269
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
270
270
  },
271
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.
272
+ * 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.
273
273
  * @summary Get PostgreSQL space analysis
274
274
  * @param {string} orgName Organization name
275
275
  * @param {string} clusterName Cluster name
@@ -328,7 +328,7 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
328
328
  return localVarFp.getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath));
329
329
  },
330
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.
331
+ * 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.
332
332
  * @summary Get PostgreSQL space analysis
333
333
  * @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters.
334
334
  * @param {*} [options] Override http request option.
@@ -377,7 +377,7 @@ export interface DiagnosticsApiInterface {
377
377
  getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlLockAnalysis>;
378
378
 
379
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.
380
+ * 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.
381
381
  * @summary Get PostgreSQL space analysis
382
382
  * @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters.
383
383
  * @param {*} [options] Override http request option.
@@ -535,7 +535,7 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
535
535
  }
536
536
 
537
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.
538
+ * 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.
539
539
  * @summary Get PostgreSQL space analysis
540
540
  * @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters.
541
541
  * @param {*} [options] Override http request option.