kb-cloud-client-typescript 2.3.0-alpha.176 → 2.3.0-alpha.178
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 +392 -0
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +415 -0
- package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
- package/dist/adminapi/models/dameng-index-item.d.ts +55 -0
- package/dist/adminapi/models/dameng-index-item.d.ts.map +1 -0
- package/dist/adminapi/models/dameng-index-item.js +16 -0
- package/dist/adminapi/models/dameng-index-item.js.map +1 -0
- package/dist/adminapi/models/dameng-large-mem-sqlentry.d.ts +55 -0
- package/dist/adminapi/models/dameng-large-mem-sqlentry.d.ts.map +1 -0
- package/dist/adminapi/models/dameng-large-mem-sqlentry.js +16 -0
- package/dist/adminapi/models/dameng-large-mem-sqlentry.js.map +1 -0
- package/dist/adminapi/models/dameng-lock-analysis.d.ts +39 -0
- package/dist/adminapi/models/dameng-lock-analysis.d.ts.map +1 -0
- package/dist/adminapi/models/dameng-lock-analysis.js +16 -0
- package/dist/adminapi/models/dameng-lock-analysis.js.map +1 -0
- package/dist/adminapi/models/dameng-lock-row.d.ts +61 -0
- package/dist/adminapi/models/dameng-lock-row.d.ts.map +1 -0
- package/dist/adminapi/models/dameng-lock-row.js +16 -0
- package/dist/adminapi/models/dameng-lock-row.js.map +1 -0
- package/dist/adminapi/models/dameng-long-exec-sqlentry.d.ts +55 -0
- package/dist/adminapi/models/dameng-long-exec-sqlentry.d.ts.map +1 -0
- package/dist/adminapi/models/dameng-long-exec-sqlentry.js +16 -0
- package/dist/adminapi/models/dameng-long-exec-sqlentry.js.map +1 -0
- package/dist/adminapi/models/dameng-schema-item.d.ts +31 -0
- package/dist/adminapi/models/dameng-schema-item.d.ts.map +1 -0
- package/dist/adminapi/models/dameng-schema-item.js +16 -0
- package/dist/adminapi/models/dameng-schema-item.js.map +1 -0
- package/dist/adminapi/models/dameng-session-detail.d.ts +103 -0
- package/dist/adminapi/models/dameng-session-detail.d.ts.map +1 -0
- package/dist/adminapi/models/dameng-session-detail.js +16 -0
- package/dist/adminapi/models/dameng-session-detail.js.map +1 -0
- package/dist/adminapi/models/dameng-session-list-item.d.ts +91 -0
- package/dist/adminapi/models/dameng-session-list-item.d.ts.map +1 -0
- package/dist/adminapi/models/dameng-session-list-item.js +16 -0
- package/dist/adminapi/models/dameng-session-list-item.js.map +1 -0
- package/dist/adminapi/models/dameng-space-analysis.d.ts +47 -0
- package/dist/adminapi/models/dameng-space-analysis.d.ts.map +1 -0
- package/dist/adminapi/models/dameng-space-analysis.js +16 -0
- package/dist/adminapi/models/dameng-space-analysis.js.map +1 -0
- package/dist/adminapi/models/dameng-sqlanalysis.d.ts +33 -0
- package/dist/adminapi/models/dameng-sqlanalysis.d.ts.map +1 -0
- package/dist/adminapi/models/dameng-sqlanalysis.js +16 -0
- package/dist/adminapi/models/dameng-sqlanalysis.js.map +1 -0
- package/dist/adminapi/models/dameng-table-size-item.d.ts +43 -0
- package/dist/adminapi/models/dameng-table-size-item.d.ts.map +1 -0
- package/dist/adminapi/models/dameng-table-size-item.js +16 -0
- package/dist/adminapi/models/dameng-table-size-item.js.map +1 -0
- package/dist/adminapi/models/dameng-tablespace-item.d.ts +49 -0
- package/dist/adminapi/models/dameng-tablespace-item.d.ts.map +1 -0
- package/dist/adminapi/models/dameng-tablespace-item.js +16 -0
- package/dist/adminapi/models/dameng-tablespace-item.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +12 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +12 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/openapi/apis/diagnostics-api.d.ts +392 -0
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +415 -0
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/models/dameng-index-item.d.ts +55 -0
- package/dist/openapi/models/dameng-index-item.d.ts.map +1 -0
- package/dist/openapi/models/dameng-index-item.js +16 -0
- package/dist/openapi/models/dameng-index-item.js.map +1 -0
- package/dist/openapi/models/dameng-large-mem-sqlentry.d.ts +55 -0
- package/dist/openapi/models/dameng-large-mem-sqlentry.d.ts.map +1 -0
- package/dist/openapi/models/dameng-large-mem-sqlentry.js +16 -0
- package/dist/openapi/models/dameng-large-mem-sqlentry.js.map +1 -0
- package/dist/openapi/models/dameng-lock-analysis.d.ts +39 -0
- package/dist/openapi/models/dameng-lock-analysis.d.ts.map +1 -0
- package/dist/openapi/models/dameng-lock-analysis.js +16 -0
- package/dist/openapi/models/dameng-lock-analysis.js.map +1 -0
- package/dist/openapi/models/dameng-lock-row.d.ts +61 -0
- package/dist/openapi/models/dameng-lock-row.d.ts.map +1 -0
- package/dist/openapi/models/dameng-lock-row.js +16 -0
- package/dist/openapi/models/dameng-lock-row.js.map +1 -0
- package/dist/openapi/models/dameng-long-exec-sqlentry.d.ts +55 -0
- package/dist/openapi/models/dameng-long-exec-sqlentry.d.ts.map +1 -0
- package/dist/openapi/models/dameng-long-exec-sqlentry.js +16 -0
- package/dist/openapi/models/dameng-long-exec-sqlentry.js.map +1 -0
- package/dist/openapi/models/dameng-schema-item.d.ts +31 -0
- package/dist/openapi/models/dameng-schema-item.d.ts.map +1 -0
- package/dist/openapi/models/dameng-schema-item.js +16 -0
- package/dist/openapi/models/dameng-schema-item.js.map +1 -0
- package/dist/openapi/models/dameng-session-detail.d.ts +103 -0
- package/dist/openapi/models/dameng-session-detail.d.ts.map +1 -0
- package/dist/openapi/models/dameng-session-detail.js +16 -0
- package/dist/openapi/models/dameng-session-detail.js.map +1 -0
- package/dist/openapi/models/dameng-session-list-item.d.ts +91 -0
- package/dist/openapi/models/dameng-session-list-item.d.ts.map +1 -0
- package/dist/openapi/models/dameng-session-list-item.js +16 -0
- package/dist/openapi/models/dameng-session-list-item.js.map +1 -0
- package/dist/openapi/models/dameng-space-analysis.d.ts +47 -0
- package/dist/openapi/models/dameng-space-analysis.d.ts.map +1 -0
- package/dist/openapi/models/dameng-space-analysis.js +16 -0
- package/dist/openapi/models/dameng-space-analysis.js.map +1 -0
- package/dist/openapi/models/dameng-sqlanalysis.d.ts +33 -0
- package/dist/openapi/models/dameng-sqlanalysis.d.ts.map +1 -0
- package/dist/openapi/models/dameng-sqlanalysis.js +16 -0
- package/dist/openapi/models/dameng-sqlanalysis.js.map +1 -0
- package/dist/openapi/models/dameng-table-size-item.d.ts +43 -0
- package/dist/openapi/models/dameng-table-size-item.d.ts.map +1 -0
- package/dist/openapi/models/dameng-table-size-item.js +16 -0
- package/dist/openapi/models/dameng-table-size-item.js.map +1 -0
- package/dist/openapi/models/dameng-tablespace-item.d.ts +49 -0
- package/dist/openapi/models/dameng-tablespace-item.d.ts.map +1 -0
- package/dist/openapi/models/dameng-tablespace-item.js +16 -0
- package/dist/openapi/models/dameng-tablespace-item.js.map +1 -0
- package/dist/openapi/models/index.d.ts +12 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +12 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +12 -0
- package/src/adminapi/apis/diagnostics-api.ts +685 -0
- package/src/adminapi/models/dameng-index-item.ts +60 -0
- package/src/adminapi/models/dameng-large-mem-sqlentry.ts +60 -0
- package/src/adminapi/models/dameng-lock-analysis.ts +48 -0
- package/src/adminapi/models/dameng-lock-row.ts +66 -0
- package/src/adminapi/models/dameng-long-exec-sqlentry.ts +60 -0
- package/src/adminapi/models/dameng-schema-item.ts +36 -0
- package/src/adminapi/models/dameng-session-detail.ts +108 -0
- package/src/adminapi/models/dameng-session-list-item.ts +96 -0
- package/src/adminapi/models/dameng-space-analysis.ts +60 -0
- package/src/adminapi/models/dameng-sqlanalysis.ts +42 -0
- package/src/adminapi/models/dameng-table-size-item.ts +48 -0
- package/src/adminapi/models/dameng-tablespace-item.ts +54 -0
- package/src/adminapi/models/index.ts +12 -0
- package/src/adminapi.yaml +575 -0
- package/src/openapi/.openapi-generator/FILES +12 -0
- package/src/openapi/apis/diagnostics-api.ts +685 -0
- package/src/openapi/models/dameng-index-item.ts +60 -0
- package/src/openapi/models/dameng-large-mem-sqlentry.ts +60 -0
- package/src/openapi/models/dameng-lock-analysis.ts +48 -0
- package/src/openapi/models/dameng-lock-row.ts +66 -0
- package/src/openapi/models/dameng-long-exec-sqlentry.ts +60 -0
- package/src/openapi/models/dameng-schema-item.ts +36 -0
- package/src/openapi/models/dameng-session-detail.ts +108 -0
- package/src/openapi/models/dameng-session-list-item.ts +96 -0
- package/src/openapi/models/dameng-space-analysis.ts +60 -0
- package/src/openapi/models/dameng-sqlanalysis.ts +42 -0
- package/src/openapi/models/dameng-table-size-item.ts +48 -0
- package/src/openapi/models/dameng-tablespace-item.ts +54 -0
- package/src/openapi/models/index.ts +12 -0
- package/src/openapi.yaml +575 -0
|
@@ -0,0 +1,54 @@
|
|
|
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 DamengTablespaceItem
|
|
21
|
+
*/
|
|
22
|
+
export interface DamengTablespaceItem {
|
|
23
|
+
/**
|
|
24
|
+
* Tablespace name.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof DamengTablespaceItem
|
|
27
|
+
*/
|
|
28
|
+
'name': string;
|
|
29
|
+
/**
|
|
30
|
+
* Total size in megabytes.
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof DamengTablespaceItem
|
|
33
|
+
*/
|
|
34
|
+
'totalMb': number;
|
|
35
|
+
/**
|
|
36
|
+
* Free size in megabytes.
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof DamengTablespaceItem
|
|
39
|
+
*/
|
|
40
|
+
'freeMb': number;
|
|
41
|
+
/**
|
|
42
|
+
* Used size in megabytes.
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof DamengTablespaceItem
|
|
45
|
+
*/
|
|
46
|
+
'usedMb': number;
|
|
47
|
+
/**
|
|
48
|
+
* Usage ratio as percentage (0-100).
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof DamengTablespaceItem
|
|
51
|
+
*/
|
|
52
|
+
'usageRatio': number;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -214,6 +214,18 @@ export * from './custom-endpoint-create';
|
|
|
214
214
|
export * from './dmsconsole-enable-opt';
|
|
215
215
|
export * from './dmsconsole-net-mode';
|
|
216
216
|
export * from './dmsconsole-svc-type';
|
|
217
|
+
export * from './dameng-index-item';
|
|
218
|
+
export * from './dameng-large-mem-sqlentry';
|
|
219
|
+
export * from './dameng-lock-analysis';
|
|
220
|
+
export * from './dameng-lock-row';
|
|
221
|
+
export * from './dameng-long-exec-sqlentry';
|
|
222
|
+
export * from './dameng-sqlanalysis';
|
|
223
|
+
export * from './dameng-schema-item';
|
|
224
|
+
export * from './dameng-session-detail';
|
|
225
|
+
export * from './dameng-session-list-item';
|
|
226
|
+
export * from './dameng-space-analysis';
|
|
227
|
+
export * from './dameng-table-size-item';
|
|
228
|
+
export * from './dameng-tablespace-item';
|
|
217
229
|
export * from './dashboard-option';
|
|
218
230
|
export * from './dashboard-option-instance-panels-inner';
|
|
219
231
|
export * from './dashboard-option-instance-panels-inner-panels-inner';
|
package/src/openapi.yaml
CHANGED
|
@@ -5102,6 +5102,258 @@ paths:
|
|
|
5102
5102
|
$ref: '#/components/responses/404'
|
|
5103
5103
|
'500':
|
|
5104
5104
|
$ref: '#/components/responses/500'
|
|
5105
|
+
/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/spaceAnalysis:
|
|
5106
|
+
get:
|
|
5107
|
+
tags:
|
|
5108
|
+
- diagnostics
|
|
5109
|
+
summary: Get Dameng space analysis
|
|
5110
|
+
description: Get a read-only Dameng space snapshot including tablespace usage, schema sizes, top tables, and top indexes. Queries dba_free_space, dba_data_files, DBA_SEGMENTS, DBA_TABLES, DBA_INDEXES, and DBA_IND_COLUMNS.
|
|
5111
|
+
operationId: getDiagnosticsDamengSpaceAnalysis
|
|
5112
|
+
parameters:
|
|
5113
|
+
- name: orgName
|
|
5114
|
+
in: path
|
|
5115
|
+
description: Organization name
|
|
5116
|
+
required: true
|
|
5117
|
+
schema:
|
|
5118
|
+
type: string
|
|
5119
|
+
- name: clusterName
|
|
5120
|
+
in: path
|
|
5121
|
+
description: Cluster name
|
|
5122
|
+
required: true
|
|
5123
|
+
schema:
|
|
5124
|
+
type: string
|
|
5125
|
+
- name: tableLimit
|
|
5126
|
+
in: query
|
|
5127
|
+
description: Maximum number of top tables to return (0 or omitted = not collected)
|
|
5128
|
+
required: false
|
|
5129
|
+
schema:
|
|
5130
|
+
type: integer
|
|
5131
|
+
format: int64
|
|
5132
|
+
minimum: 0
|
|
5133
|
+
default: 0
|
|
5134
|
+
- name: indexLimit
|
|
5135
|
+
in: query
|
|
5136
|
+
description: Maximum number of top indexes to return (0 or omitted = not collected)
|
|
5137
|
+
required: false
|
|
5138
|
+
schema:
|
|
5139
|
+
type: integer
|
|
5140
|
+
format: int64
|
|
5141
|
+
minimum: 0
|
|
5142
|
+
default: 0
|
|
5143
|
+
- name: schema
|
|
5144
|
+
in: query
|
|
5145
|
+
description: Filter tables and indexes by schema (owner). Omit or empty = all schemas.
|
|
5146
|
+
required: false
|
|
5147
|
+
schema:
|
|
5148
|
+
type: string
|
|
5149
|
+
- name: skipBasic
|
|
5150
|
+
in: query
|
|
5151
|
+
description: Set to true to skip tablespace and schema queries, returning only tables and indexes.
|
|
5152
|
+
required: false
|
|
5153
|
+
schema:
|
|
5154
|
+
type: boolean
|
|
5155
|
+
default: false
|
|
5156
|
+
responses:
|
|
5157
|
+
'200':
|
|
5158
|
+
description: OK
|
|
5159
|
+
content:
|
|
5160
|
+
application/json:
|
|
5161
|
+
schema:
|
|
5162
|
+
$ref: '#/components/schemas/damengSpaceAnalysis'
|
|
5163
|
+
'400':
|
|
5164
|
+
$ref: '#/components/responses/400'
|
|
5165
|
+
'401':
|
|
5166
|
+
$ref: '#/components/responses/401'
|
|
5167
|
+
'403':
|
|
5168
|
+
$ref: '#/components/responses/403'
|
|
5169
|
+
'404':
|
|
5170
|
+
$ref: '#/components/responses/404'
|
|
5171
|
+
'500':
|
|
5172
|
+
$ref: '#/components/responses/500'
|
|
5173
|
+
/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sqlAnalysis:
|
|
5174
|
+
get:
|
|
5175
|
+
tags:
|
|
5176
|
+
- diagnostics
|
|
5177
|
+
summary: Get Dameng SQL analysis
|
|
5178
|
+
description: Get a read-only Dameng SQL analysis snapshot from V$SYSTEM_LONG_EXEC_SQLS (long-running SQL) and V$SYSTEM_LARGE_MEM_SQLS (high-memory SQL). The response does not expose execution plans or remediation actions.
|
|
5179
|
+
operationId: getDiagnosticsDamengSQLAnalysis
|
|
5180
|
+
parameters:
|
|
5181
|
+
- name: orgName
|
|
5182
|
+
in: path
|
|
5183
|
+
description: Organization name
|
|
5184
|
+
required: true
|
|
5185
|
+
schema:
|
|
5186
|
+
type: string
|
|
5187
|
+
- name: clusterName
|
|
5188
|
+
in: path
|
|
5189
|
+
description: Cluster name
|
|
5190
|
+
required: true
|
|
5191
|
+
schema:
|
|
5192
|
+
type: string
|
|
5193
|
+
- name: limit
|
|
5194
|
+
in: query
|
|
5195
|
+
description: Maximum number of SQL entries per category. Defaults to 20.
|
|
5196
|
+
required: false
|
|
5197
|
+
schema:
|
|
5198
|
+
type: integer
|
|
5199
|
+
format: int64
|
|
5200
|
+
responses:
|
|
5201
|
+
'200':
|
|
5202
|
+
description: OK
|
|
5203
|
+
content:
|
|
5204
|
+
application/json:
|
|
5205
|
+
schema:
|
|
5206
|
+
$ref: '#/components/schemas/damengSQLAnalysis'
|
|
5207
|
+
'400':
|
|
5208
|
+
$ref: '#/components/responses/400'
|
|
5209
|
+
'401':
|
|
5210
|
+
$ref: '#/components/responses/401'
|
|
5211
|
+
'403':
|
|
5212
|
+
$ref: '#/components/responses/403'
|
|
5213
|
+
'404':
|
|
5214
|
+
$ref: '#/components/responses/404'
|
|
5215
|
+
'500':
|
|
5216
|
+
$ref: '#/components/responses/500'
|
|
5217
|
+
/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sessions/{sessionId}/lockAnalysis:
|
|
5218
|
+
get:
|
|
5219
|
+
tags:
|
|
5220
|
+
- diagnostics
|
|
5221
|
+
summary: Get Dameng session lock analysis
|
|
5222
|
+
description: Get lock and blocking analysis for a Dameng session. Queries V$LOCK and V$SESSIONS to identify blocking/blocked relationships and lock details.
|
|
5223
|
+
operationId: getDiagnosticsDamengSessionLockAnalysis
|
|
5224
|
+
parameters:
|
|
5225
|
+
- name: orgName
|
|
5226
|
+
in: path
|
|
5227
|
+
description: Organization name
|
|
5228
|
+
required: true
|
|
5229
|
+
schema:
|
|
5230
|
+
type: string
|
|
5231
|
+
- name: clusterName
|
|
5232
|
+
in: path
|
|
5233
|
+
description: Cluster name
|
|
5234
|
+
required: true
|
|
5235
|
+
schema:
|
|
5236
|
+
type: string
|
|
5237
|
+
- name: sessionId
|
|
5238
|
+
in: path
|
|
5239
|
+
description: Dameng session ID (SESS_ID)
|
|
5240
|
+
required: true
|
|
5241
|
+
schema:
|
|
5242
|
+
type: integer
|
|
5243
|
+
format: int64
|
|
5244
|
+
responses:
|
|
5245
|
+
'200':
|
|
5246
|
+
description: OK
|
|
5247
|
+
content:
|
|
5248
|
+
application/json:
|
|
5249
|
+
schema:
|
|
5250
|
+
$ref: '#/components/schemas/damengLockAnalysis'
|
|
5251
|
+
'400':
|
|
5252
|
+
$ref: '#/components/responses/400'
|
|
5253
|
+
'401':
|
|
5254
|
+
$ref: '#/components/responses/401'
|
|
5255
|
+
'403':
|
|
5256
|
+
$ref: '#/components/responses/403'
|
|
5257
|
+
'404':
|
|
5258
|
+
$ref: '#/components/responses/404'
|
|
5259
|
+
'500':
|
|
5260
|
+
$ref: '#/components/responses/500'
|
|
5261
|
+
/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sessions/{sessionId}:
|
|
5262
|
+
get:
|
|
5263
|
+
tags:
|
|
5264
|
+
- diagnostics
|
|
5265
|
+
summary: Get Dameng session detail
|
|
5266
|
+
description: Get a single Dameng session detail by session ID from V$SESSIONS, including SQL text, transaction info, and client details.
|
|
5267
|
+
operationId: getDiagnosticsDamengSession
|
|
5268
|
+
parameters:
|
|
5269
|
+
- name: orgName
|
|
5270
|
+
in: path
|
|
5271
|
+
description: Organization name
|
|
5272
|
+
required: true
|
|
5273
|
+
schema:
|
|
5274
|
+
type: string
|
|
5275
|
+
- name: clusterName
|
|
5276
|
+
in: path
|
|
5277
|
+
description: Cluster name
|
|
5278
|
+
required: true
|
|
5279
|
+
schema:
|
|
5280
|
+
type: string
|
|
5281
|
+
- name: sessionId
|
|
5282
|
+
in: path
|
|
5283
|
+
description: Dameng session ID (SESS_ID)
|
|
5284
|
+
required: true
|
|
5285
|
+
schema:
|
|
5286
|
+
type: integer
|
|
5287
|
+
format: int64
|
|
5288
|
+
responses:
|
|
5289
|
+
'200':
|
|
5290
|
+
description: OK
|
|
5291
|
+
content:
|
|
5292
|
+
application/json:
|
|
5293
|
+
schema:
|
|
5294
|
+
$ref: '#/components/schemas/damengSessionDetail'
|
|
5295
|
+
'400':
|
|
5296
|
+
$ref: '#/components/responses/400'
|
|
5297
|
+
'401':
|
|
5298
|
+
$ref: '#/components/responses/401'
|
|
5299
|
+
'403':
|
|
5300
|
+
$ref: '#/components/responses/403'
|
|
5301
|
+
'404':
|
|
5302
|
+
$ref: '#/components/responses/404'
|
|
5303
|
+
'500':
|
|
5304
|
+
$ref: '#/components/responses/500'
|
|
5305
|
+
/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sessions:
|
|
5306
|
+
get:
|
|
5307
|
+
tags:
|
|
5308
|
+
- diagnostics
|
|
5309
|
+
summary: List Dameng sessions
|
|
5310
|
+
description: List Dameng sessions from V$SESSIONS with lock status from V$LOCK. Returns session ID, user, state, client IP, transaction ID, lock status, SQL text, schema, duration, and more.
|
|
5311
|
+
operationId: listDiagnosticsDamengSessions
|
|
5312
|
+
parameters:
|
|
5313
|
+
- name: orgName
|
|
5314
|
+
in: path
|
|
5315
|
+
description: Organization name
|
|
5316
|
+
required: true
|
|
5317
|
+
schema:
|
|
5318
|
+
type: string
|
|
5319
|
+
- name: clusterName
|
|
5320
|
+
in: path
|
|
5321
|
+
description: Cluster name
|
|
5322
|
+
required: true
|
|
5323
|
+
schema:
|
|
5324
|
+
type: string
|
|
5325
|
+
- name: limit
|
|
5326
|
+
in: query
|
|
5327
|
+
description: Maximum number of sessions to return. Defaults to 200.
|
|
5328
|
+
required: false
|
|
5329
|
+
schema:
|
|
5330
|
+
type: integer
|
|
5331
|
+
format: int64
|
|
5332
|
+
- name: state
|
|
5333
|
+
in: query
|
|
5334
|
+
description: Filter sessions by state (e.g. ACTIVE, IDLE). Matches against V$SESSIONS.STATE.
|
|
5335
|
+
required: false
|
|
5336
|
+
schema:
|
|
5337
|
+
type: string
|
|
5338
|
+
responses:
|
|
5339
|
+
'200':
|
|
5340
|
+
description: OK
|
|
5341
|
+
content:
|
|
5342
|
+
application/json:
|
|
5343
|
+
schema:
|
|
5344
|
+
type: array
|
|
5345
|
+
items:
|
|
5346
|
+
$ref: '#/components/schemas/damengSessionListItem'
|
|
5347
|
+
'400':
|
|
5348
|
+
$ref: '#/components/responses/400'
|
|
5349
|
+
'401':
|
|
5350
|
+
$ref: '#/components/responses/401'
|
|
5351
|
+
'403':
|
|
5352
|
+
$ref: '#/components/responses/403'
|
|
5353
|
+
'404':
|
|
5354
|
+
$ref: '#/components/responses/404'
|
|
5355
|
+
'500':
|
|
5356
|
+
$ref: '#/components/responses/500'
|
|
5105
5357
|
/api/v1/organizations/{orgName}/clusters/{clusterName}/metrics:
|
|
5106
5358
|
get:
|
|
5107
5359
|
description: Query cluster metrics by specified metric name and instance name, support instant and range query
|
|
@@ -24177,6 +24429,329 @@ components:
|
|
|
24177
24429
|
capturedAt:
|
|
24178
24430
|
type: string
|
|
24179
24431
|
description: Snapshot capture timestamp in UTC.
|
|
24432
|
+
damengTablespaceItem:
|
|
24433
|
+
type: object
|
|
24434
|
+
required:
|
|
24435
|
+
- name
|
|
24436
|
+
- totalMb
|
|
24437
|
+
- freeMb
|
|
24438
|
+
- usedMb
|
|
24439
|
+
- usageRatio
|
|
24440
|
+
properties:
|
|
24441
|
+
name:
|
|
24442
|
+
type: string
|
|
24443
|
+
description: Tablespace name.
|
|
24444
|
+
totalMb:
|
|
24445
|
+
type: number
|
|
24446
|
+
format: double
|
|
24447
|
+
description: Total size in megabytes.
|
|
24448
|
+
freeMb:
|
|
24449
|
+
type: number
|
|
24450
|
+
format: double
|
|
24451
|
+
description: Free size in megabytes.
|
|
24452
|
+
usedMb:
|
|
24453
|
+
type: number
|
|
24454
|
+
format: double
|
|
24455
|
+
description: Used size in megabytes.
|
|
24456
|
+
usageRatio:
|
|
24457
|
+
type: number
|
|
24458
|
+
format: double
|
|
24459
|
+
description: Usage ratio as percentage (0-100).
|
|
24460
|
+
damengSchemaItem:
|
|
24461
|
+
type: object
|
|
24462
|
+
required:
|
|
24463
|
+
- name
|
|
24464
|
+
- sizeBytes
|
|
24465
|
+
properties:
|
|
24466
|
+
name:
|
|
24467
|
+
type: string
|
|
24468
|
+
description: Schema (owner) name.
|
|
24469
|
+
sizeBytes:
|
|
24470
|
+
type: integer
|
|
24471
|
+
format: int64
|
|
24472
|
+
description: Total segment size in bytes across all objects owned by this schema.
|
|
24473
|
+
damengTableSizeItem:
|
|
24474
|
+
type: object
|
|
24475
|
+
required:
|
|
24476
|
+
- schema
|
|
24477
|
+
- tableName
|
|
24478
|
+
- sizeBytes
|
|
24479
|
+
properties:
|
|
24480
|
+
schema:
|
|
24481
|
+
type: string
|
|
24482
|
+
description: Schema (owner) name.
|
|
24483
|
+
tableName:
|
|
24484
|
+
type: string
|
|
24485
|
+
description: Table name.
|
|
24486
|
+
sizeBytes:
|
|
24487
|
+
type: integer
|
|
24488
|
+
format: int64
|
|
24489
|
+
description: Total segment size in bytes for this table.
|
|
24490
|
+
rowCount:
|
|
24491
|
+
type: integer
|
|
24492
|
+
format: int64
|
|
24493
|
+
description: Estimated number of rows from DBA_TABLES.NUM_ROWS.
|
|
24494
|
+
damengIndexItem:
|
|
24495
|
+
type: object
|
|
24496
|
+
required:
|
|
24497
|
+
- schema
|
|
24498
|
+
- indexName
|
|
24499
|
+
- tableName
|
|
24500
|
+
- sizeBytes
|
|
24501
|
+
- isUnique
|
|
24502
|
+
properties:
|
|
24503
|
+
schema:
|
|
24504
|
+
type: string
|
|
24505
|
+
description: Schema (owner) name.
|
|
24506
|
+
indexName:
|
|
24507
|
+
type: string
|
|
24508
|
+
description: Index name.
|
|
24509
|
+
tableName:
|
|
24510
|
+
type: string
|
|
24511
|
+
description: Parent table name.
|
|
24512
|
+
sizeBytes:
|
|
24513
|
+
type: integer
|
|
24514
|
+
format: int64
|
|
24515
|
+
description: Segment size in bytes from DBA_SEGMENTS.
|
|
24516
|
+
indexType:
|
|
24517
|
+
type: string
|
|
24518
|
+
description: Index type (e.g. NORMAL, BITMAP, CLUSTER).
|
|
24519
|
+
isUnique:
|
|
24520
|
+
type: boolean
|
|
24521
|
+
description: Whether the index enforces uniqueness.
|
|
24522
|
+
damengSpaceAnalysis:
|
|
24523
|
+
type: object
|
|
24524
|
+
required:
|
|
24525
|
+
- tablespaces
|
|
24526
|
+
properties:
|
|
24527
|
+
tablespaces:
|
|
24528
|
+
type: array
|
|
24529
|
+
description: Tablespace size and usage information from dba_free_space and dba_data_files.
|
|
24530
|
+
items:
|
|
24531
|
+
$ref: '#/components/schemas/damengTablespaceItem'
|
|
24532
|
+
schemas:
|
|
24533
|
+
type: array
|
|
24534
|
+
description: Schema-level size aggregation from DBA_SEGMENTS grouped by OWNER.
|
|
24535
|
+
items:
|
|
24536
|
+
$ref: '#/components/schemas/damengSchemaItem'
|
|
24537
|
+
tables:
|
|
24538
|
+
type: array
|
|
24539
|
+
description: Top-N tables ordered by total size from DBA_SEGMENTS (SEGMENT_TYPE='TABLE').
|
|
24540
|
+
items:
|
|
24541
|
+
$ref: '#/components/schemas/damengTableSizeItem'
|
|
24542
|
+
indexes:
|
|
24543
|
+
type: array
|
|
24544
|
+
description: Top-N indexes ordered by size from DBA_INDEXES joined with DBA_SEGMENTS.
|
|
24545
|
+
items:
|
|
24546
|
+
$ref: '#/components/schemas/damengIndexItem'
|
|
24547
|
+
damengLongExecSQLEntry:
|
|
24548
|
+
type: object
|
|
24549
|
+
required:
|
|
24550
|
+
- sqlText
|
|
24551
|
+
- execTimeMs
|
|
24552
|
+
- nRuns
|
|
24553
|
+
properties:
|
|
24554
|
+
sqlText:
|
|
24555
|
+
type: string
|
|
24556
|
+
description: SQL text from V$SYSTEM_LONG_EXEC_SQLS.
|
|
24557
|
+
execTimeMs:
|
|
24558
|
+
type: integer
|
|
24559
|
+
format: int64
|
|
24560
|
+
description: Execution time in milliseconds.
|
|
24561
|
+
sessionId:
|
|
24562
|
+
type: string
|
|
24563
|
+
description: Session ID, when available.
|
|
24564
|
+
sqlId:
|
|
24565
|
+
type: string
|
|
24566
|
+
description: SQL ID, when available.
|
|
24567
|
+
nRuns:
|
|
24568
|
+
type: integer
|
|
24569
|
+
format: int64
|
|
24570
|
+
description: Number of executions.
|
|
24571
|
+
finishTime:
|
|
24572
|
+
type: string
|
|
24573
|
+
description: SQL finish time in UTC, when available.
|
|
24574
|
+
damengLargeMemSQLEntry:
|
|
24575
|
+
type: object
|
|
24576
|
+
required:
|
|
24577
|
+
- sqlText
|
|
24578
|
+
- memUsedKb
|
|
24579
|
+
- nRuns
|
|
24580
|
+
properties:
|
|
24581
|
+
sqlText:
|
|
24582
|
+
type: string
|
|
24583
|
+
description: SQL text from V$SYSTEM_LARGE_MEM_SQLS.
|
|
24584
|
+
memUsedKb:
|
|
24585
|
+
type: integer
|
|
24586
|
+
format: int64
|
|
24587
|
+
description: Memory used in kilobytes.
|
|
24588
|
+
sessionId:
|
|
24589
|
+
type: string
|
|
24590
|
+
description: Session ID, when available.
|
|
24591
|
+
sqlId:
|
|
24592
|
+
type: string
|
|
24593
|
+
description: SQL ID, when available.
|
|
24594
|
+
finishTime:
|
|
24595
|
+
type: string
|
|
24596
|
+
description: SQL finish time in UTC, when available.
|
|
24597
|
+
nRuns:
|
|
24598
|
+
type: integer
|
|
24599
|
+
format: int64
|
|
24600
|
+
description: Number of executions.
|
|
24601
|
+
damengSQLAnalysis:
|
|
24602
|
+
type: object
|
|
24603
|
+
required:
|
|
24604
|
+
- topLongExecSql
|
|
24605
|
+
- topLargeMemSql
|
|
24606
|
+
properties:
|
|
24607
|
+
topLongExecSql:
|
|
24608
|
+
type: array
|
|
24609
|
+
description: Top long-running SQL entries from V$SYSTEM_LONG_EXEC_SQLS ordered by execution time descending.
|
|
24610
|
+
items:
|
|
24611
|
+
$ref: '#/components/schemas/damengLongExecSQLEntry'
|
|
24612
|
+
topLargeMemSql:
|
|
24613
|
+
type: array
|
|
24614
|
+
description: Top high-memory SQL entries from V$SYSTEM_LARGE_MEM_SQLS ordered by memory usage descending.
|
|
24615
|
+
items:
|
|
24616
|
+
$ref: '#/components/schemas/damengLargeMemSQLEntry'
|
|
24617
|
+
damengSessionDetail:
|
|
24618
|
+
type: object
|
|
24619
|
+
required:
|
|
24620
|
+
- sessId
|
|
24621
|
+
properties:
|
|
24622
|
+
sessId:
|
|
24623
|
+
type: integer
|
|
24624
|
+
format: int64
|
|
24625
|
+
description: Dameng session ID from V$SESSIONS.
|
|
24626
|
+
userName:
|
|
24627
|
+
type: string
|
|
24628
|
+
description: Database user name.
|
|
24629
|
+
state:
|
|
24630
|
+
type: string
|
|
24631
|
+
description: Session state (ACTIVE, IDLE, etc.).
|
|
24632
|
+
clientIp:
|
|
24633
|
+
type: string
|
|
24634
|
+
description: Client IP address.
|
|
24635
|
+
clientType:
|
|
24636
|
+
type: string
|
|
24637
|
+
description: Client type.
|
|
24638
|
+
createTime:
|
|
24639
|
+
type: string
|
|
24640
|
+
description: Session creation time.
|
|
24641
|
+
lastSendTime:
|
|
24642
|
+
type: string
|
|
24643
|
+
description: Last SQL send time.
|
|
24644
|
+
sqlText:
|
|
24645
|
+
type: string
|
|
24646
|
+
description: Current or last SQL text from V$SESSIONS.
|
|
24647
|
+
fullSql:
|
|
24648
|
+
type: string
|
|
24649
|
+
description: Full SQL text via SF_GET_SESSION_SQL.
|
|
24650
|
+
trxId:
|
|
24651
|
+
type: string
|
|
24652
|
+
description: Transaction ID.
|
|
24653
|
+
trxDurationSec:
|
|
24654
|
+
type: integer
|
|
24655
|
+
format: int64
|
|
24656
|
+
description: Seconds since last SQL send time.
|
|
24657
|
+
appName:
|
|
24658
|
+
type: string
|
|
24659
|
+
description: Application name.
|
|
24660
|
+
currSchema:
|
|
24661
|
+
type: string
|
|
24662
|
+
description: Current schema.
|
|
24663
|
+
autoCommit:
|
|
24664
|
+
type: string
|
|
24665
|
+
description: Auto-commit status (Y/N).
|
|
24666
|
+
damengLockRow:
|
|
24667
|
+
type: object
|
|
24668
|
+
required:
|
|
24669
|
+
- trxId
|
|
24670
|
+
properties:
|
|
24671
|
+
trxId:
|
|
24672
|
+
type: integer
|
|
24673
|
+
format: int64
|
|
24674
|
+
description: Transaction ID holding the lock.
|
|
24675
|
+
lockType:
|
|
24676
|
+
type: string
|
|
24677
|
+
description: Lock type.
|
|
24678
|
+
lockMode:
|
|
24679
|
+
type: string
|
|
24680
|
+
description: Lock mode.
|
|
24681
|
+
sessId:
|
|
24682
|
+
type: integer
|
|
24683
|
+
format: int64
|
|
24684
|
+
description: Session ID associated with this lock.
|
|
24685
|
+
clientIp:
|
|
24686
|
+
type: string
|
|
24687
|
+
description: Client IP address for the session.
|
|
24688
|
+
sqlText:
|
|
24689
|
+
type: string
|
|
24690
|
+
description: SQL text for the session.
|
|
24691
|
+
userName:
|
|
24692
|
+
type: string
|
|
24693
|
+
description: User name for the session.
|
|
24694
|
+
damengLockAnalysis:
|
|
24695
|
+
type: object
|
|
24696
|
+
required:
|
|
24697
|
+
- selectedSession
|
|
24698
|
+
- locks
|
|
24699
|
+
- capturedAt
|
|
24700
|
+
properties:
|
|
24701
|
+
selectedSession:
|
|
24702
|
+
$ref: '#/components/schemas/damengSessionDetail'
|
|
24703
|
+
locks:
|
|
24704
|
+
type: array
|
|
24705
|
+
description: Lock records for the selected session's transaction.
|
|
24706
|
+
items:
|
|
24707
|
+
$ref: '#/components/schemas/damengLockRow'
|
|
24708
|
+
capturedAt:
|
|
24709
|
+
type: string
|
|
24710
|
+
description: Backend collection timestamp in UTC.
|
|
24711
|
+
damengSessionListItem:
|
|
24712
|
+
type: object
|
|
24713
|
+
required:
|
|
24714
|
+
- sessId
|
|
24715
|
+
- hasLock
|
|
24716
|
+
properties:
|
|
24717
|
+
sessId:
|
|
24718
|
+
type: integer
|
|
24719
|
+
format: int64
|
|
24720
|
+
description: Dameng session ID from V$SESSIONS.
|
|
24721
|
+
userName:
|
|
24722
|
+
type: string
|
|
24723
|
+
description: Database user name.
|
|
24724
|
+
state:
|
|
24725
|
+
type: string
|
|
24726
|
+
description: Session state (ACTIVE, IDLE, etc.).
|
|
24727
|
+
clientIp:
|
|
24728
|
+
type: string
|
|
24729
|
+
description: Client IP address.
|
|
24730
|
+
trxId:
|
|
24731
|
+
type: string
|
|
24732
|
+
description: Transaction ID.
|
|
24733
|
+
hasLock:
|
|
24734
|
+
type: boolean
|
|
24735
|
+
description: Whether this session has locks from V$LOCK.
|
|
24736
|
+
sqlText:
|
|
24737
|
+
type: string
|
|
24738
|
+
description: Current SQL text from V$SESSIONS.
|
|
24739
|
+
currSchema:
|
|
24740
|
+
type: string
|
|
24741
|
+
description: Current schema (database context).
|
|
24742
|
+
appName:
|
|
24743
|
+
type: string
|
|
24744
|
+
description: Application name.
|
|
24745
|
+
durationSec:
|
|
24746
|
+
type: integer
|
|
24747
|
+
format: int64
|
|
24748
|
+
description: Session duration in seconds.
|
|
24749
|
+
clientType:
|
|
24750
|
+
type: string
|
|
24751
|
+
description: Client type.
|
|
24752
|
+
autoCommit:
|
|
24753
|
+
type: string
|
|
24754
|
+
description: Auto-commit status.
|
|
24180
24755
|
metricsQueryType:
|
|
24181
24756
|
type: string
|
|
24182
24757
|
enum:
|