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
|
@@ -24,6 +24,16 @@ import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError
|
|
|
24
24
|
// @ts-ignore
|
|
25
25
|
import type { APIErrorResponse } from '../models';
|
|
26
26
|
// @ts-ignore
|
|
27
|
+
import type { DamengLockAnalysis } from '../models';
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import type { DamengSQLAnalysis } from '../models';
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import type { DamengSessionDetail } from '../models';
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import type { DamengSessionListItem } from '../models';
|
|
34
|
+
// @ts-ignore
|
|
35
|
+
import type { DamengSpaceAnalysis } from '../models';
|
|
36
|
+
// @ts-ignore
|
|
27
37
|
import type { PerformanceTrends } from '../models';
|
|
28
38
|
// @ts-ignore
|
|
29
39
|
import type { PostgresqlLockAnalysis } from '../models';
|
|
@@ -39,6 +49,219 @@ import type { PostgresqlSpaceAnalysis } from '../models';
|
|
|
39
49
|
*/
|
|
40
50
|
export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
41
51
|
return {
|
|
52
|
+
/**
|
|
53
|
+
* 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.
|
|
54
|
+
* @summary Get Dameng SQL analysis
|
|
55
|
+
* @param {string} orgName Organization name
|
|
56
|
+
* @param {string} clusterName Cluster name
|
|
57
|
+
* @param {number} [limit] Maximum number of SQL entries per category. Defaults to 20.
|
|
58
|
+
* @param {*} [options] Override http request option.
|
|
59
|
+
* @throws {RequiredError}
|
|
60
|
+
*/
|
|
61
|
+
getDiagnosticsDamengSQLAnalysis: async (orgName: string, clusterName: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
62
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
63
|
+
assertParamExists('getDiagnosticsDamengSQLAnalysis', 'orgName', orgName)
|
|
64
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
65
|
+
assertParamExists('getDiagnosticsDamengSQLAnalysis', 'clusterName', clusterName)
|
|
66
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sqlAnalysis`
|
|
67
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
68
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
69
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
70
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
71
|
+
let baseOptions;
|
|
72
|
+
if (configuration) {
|
|
73
|
+
baseOptions = configuration.baseOptions;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
77
|
+
const localVarHeaderParameter = {} as any;
|
|
78
|
+
const localVarQueryParameter = {} as any;
|
|
79
|
+
|
|
80
|
+
// authentication BearerToken required
|
|
81
|
+
// http bearer authentication required
|
|
82
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
83
|
+
|
|
84
|
+
// authentication DigestAuth required
|
|
85
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
86
|
+
|
|
87
|
+
if (limit !== undefined) {
|
|
88
|
+
localVarQueryParameter['limit'] = limit;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
94
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
95
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
url: toPathString(localVarUrlObj),
|
|
99
|
+
options: localVarRequestOptions,
|
|
100
|
+
};
|
|
101
|
+
},
|
|
102
|
+
/**
|
|
103
|
+
* Get a single Dameng session detail by session ID from V$SESSIONS, including SQL text, transaction info, and client details.
|
|
104
|
+
* @summary Get Dameng session detail
|
|
105
|
+
* @param {string} orgName Organization name
|
|
106
|
+
* @param {string} clusterName Cluster name
|
|
107
|
+
* @param {number} sessionId Dameng session ID (SESS_ID)
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
getDiagnosticsDamengSession: async (orgName: string, clusterName: string, sessionId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
112
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
113
|
+
assertParamExists('getDiagnosticsDamengSession', 'orgName', orgName)
|
|
114
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
115
|
+
assertParamExists('getDiagnosticsDamengSession', 'clusterName', clusterName)
|
|
116
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
117
|
+
assertParamExists('getDiagnosticsDamengSession', 'sessionId', sessionId)
|
|
118
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sessions/{sessionId}`
|
|
119
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
120
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
121
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
122
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
123
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
124
|
+
let baseOptions;
|
|
125
|
+
if (configuration) {
|
|
126
|
+
baseOptions = configuration.baseOptions;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
130
|
+
const localVarHeaderParameter = {} as any;
|
|
131
|
+
const localVarQueryParameter = {} as any;
|
|
132
|
+
|
|
133
|
+
// authentication BearerToken required
|
|
134
|
+
// http bearer authentication required
|
|
135
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
136
|
+
|
|
137
|
+
// authentication DigestAuth required
|
|
138
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
145
|
+
|
|
146
|
+
return {
|
|
147
|
+
url: toPathString(localVarUrlObj),
|
|
148
|
+
options: localVarRequestOptions,
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
/**
|
|
152
|
+
* Get lock and blocking analysis for a Dameng session. Queries V$LOCK and V$SESSIONS to identify blocking/blocked relationships and lock details.
|
|
153
|
+
* @summary Get Dameng session lock analysis
|
|
154
|
+
* @param {string} orgName Organization name
|
|
155
|
+
* @param {string} clusterName Cluster name
|
|
156
|
+
* @param {number} sessionId Dameng session ID (SESS_ID)
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
getDiagnosticsDamengSessionLockAnalysis: async (orgName: string, clusterName: string, sessionId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
161
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
162
|
+
assertParamExists('getDiagnosticsDamengSessionLockAnalysis', 'orgName', orgName)
|
|
163
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
164
|
+
assertParamExists('getDiagnosticsDamengSessionLockAnalysis', 'clusterName', clusterName)
|
|
165
|
+
// verify required parameter 'sessionId' is not null or undefined
|
|
166
|
+
assertParamExists('getDiagnosticsDamengSessionLockAnalysis', 'sessionId', sessionId)
|
|
167
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sessions/{sessionId}/lockAnalysis`
|
|
168
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
169
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)))
|
|
170
|
+
.replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId)));
|
|
171
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
172
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
173
|
+
let baseOptions;
|
|
174
|
+
if (configuration) {
|
|
175
|
+
baseOptions = configuration.baseOptions;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
179
|
+
const localVarHeaderParameter = {} as any;
|
|
180
|
+
const localVarQueryParameter = {} as any;
|
|
181
|
+
|
|
182
|
+
// authentication BearerToken required
|
|
183
|
+
// http bearer authentication required
|
|
184
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
185
|
+
|
|
186
|
+
// authentication DigestAuth required
|
|
187
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
192
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
193
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
194
|
+
|
|
195
|
+
return {
|
|
196
|
+
url: toPathString(localVarUrlObj),
|
|
197
|
+
options: localVarRequestOptions,
|
|
198
|
+
};
|
|
199
|
+
},
|
|
200
|
+
/**
|
|
201
|
+
* 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.
|
|
202
|
+
* @summary Get Dameng space analysis
|
|
203
|
+
* @param {string} orgName Organization name
|
|
204
|
+
* @param {string} clusterName Cluster name
|
|
205
|
+
* @param {number} [tableLimit] Maximum number of top tables to return (0 or omitted = not collected)
|
|
206
|
+
* @param {number} [indexLimit] Maximum number of top indexes to return (0 or omitted = not collected)
|
|
207
|
+
* @param {string} [schema] Filter tables and indexes by schema (owner). Omit or empty = all schemas.
|
|
208
|
+
* @param {boolean} [skipBasic] Set to true to skip tablespace and schema queries, returning only tables and indexes.
|
|
209
|
+
* @param {*} [options] Override http request option.
|
|
210
|
+
* @throws {RequiredError}
|
|
211
|
+
*/
|
|
212
|
+
getDiagnosticsDamengSpaceAnalysis: async (orgName: string, clusterName: string, tableLimit?: number, indexLimit?: number, schema?: string, skipBasic?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
213
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
214
|
+
assertParamExists('getDiagnosticsDamengSpaceAnalysis', 'orgName', orgName)
|
|
215
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
216
|
+
assertParamExists('getDiagnosticsDamengSpaceAnalysis', 'clusterName', clusterName)
|
|
217
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/spaceAnalysis`
|
|
218
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
219
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
220
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
221
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
222
|
+
let baseOptions;
|
|
223
|
+
if (configuration) {
|
|
224
|
+
baseOptions = configuration.baseOptions;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
228
|
+
const localVarHeaderParameter = {} as any;
|
|
229
|
+
const localVarQueryParameter = {} as any;
|
|
230
|
+
|
|
231
|
+
// authentication BearerToken required
|
|
232
|
+
// http bearer authentication required
|
|
233
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
234
|
+
|
|
235
|
+
// authentication DigestAuth required
|
|
236
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
237
|
+
|
|
238
|
+
if (tableLimit !== undefined) {
|
|
239
|
+
localVarQueryParameter['tableLimit'] = tableLimit;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
if (indexLimit !== undefined) {
|
|
243
|
+
localVarQueryParameter['indexLimit'] = indexLimit;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
if (schema !== undefined) {
|
|
247
|
+
localVarQueryParameter['schema'] = schema;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
if (skipBasic !== undefined) {
|
|
251
|
+
localVarQueryParameter['skipBasic'] = skipBasic;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
257
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
258
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
259
|
+
|
|
260
|
+
return {
|
|
261
|
+
url: toPathString(localVarUrlObj),
|
|
262
|
+
options: localVarRequestOptions,
|
|
263
|
+
};
|
|
264
|
+
},
|
|
42
265
|
/**
|
|
43
266
|
* Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
|
|
44
267
|
* @summary Get PostgreSQL performance trends
|
|
@@ -288,6 +511,61 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
288
511
|
|
|
289
512
|
|
|
290
513
|
|
|
514
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
515
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
516
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
517
|
+
|
|
518
|
+
return {
|
|
519
|
+
url: toPathString(localVarUrlObj),
|
|
520
|
+
options: localVarRequestOptions,
|
|
521
|
+
};
|
|
522
|
+
},
|
|
523
|
+
/**
|
|
524
|
+
* 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.
|
|
525
|
+
* @summary List Dameng sessions
|
|
526
|
+
* @param {string} orgName Organization name
|
|
527
|
+
* @param {string} clusterName Cluster name
|
|
528
|
+
* @param {number} [limit] Maximum number of sessions to return. Defaults to 200.
|
|
529
|
+
* @param {string} [state] Filter sessions by state (e.g. ACTIVE, IDLE). Matches against V$SESSIONS.STATE.
|
|
530
|
+
* @param {*} [options] Override http request option.
|
|
531
|
+
* @throws {RequiredError}
|
|
532
|
+
*/
|
|
533
|
+
listDiagnosticsDamengSessions: async (orgName: string, clusterName: string, limit?: number, state?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
534
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
535
|
+
assertParamExists('listDiagnosticsDamengSessions', 'orgName', orgName)
|
|
536
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
537
|
+
assertParamExists('listDiagnosticsDamengSessions', 'clusterName', clusterName)
|
|
538
|
+
const localVarPath = `/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sessions`
|
|
539
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
540
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
541
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
542
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
543
|
+
let baseOptions;
|
|
544
|
+
if (configuration) {
|
|
545
|
+
baseOptions = configuration.baseOptions;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
549
|
+
const localVarHeaderParameter = {} as any;
|
|
550
|
+
const localVarQueryParameter = {} as any;
|
|
551
|
+
|
|
552
|
+
// authentication BearerToken required
|
|
553
|
+
// http bearer authentication required
|
|
554
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
555
|
+
|
|
556
|
+
// authentication DigestAuth required
|
|
557
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
558
|
+
|
|
559
|
+
if (limit !== undefined) {
|
|
560
|
+
localVarQueryParameter['limit'] = limit;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
if (state !== undefined) {
|
|
564
|
+
localVarQueryParameter['state'] = state;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
|
|
291
569
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
292
570
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
571
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -357,6 +635,69 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
357
635
|
export const DiagnosticsApiFp = function(configuration?: Configuration) {
|
|
358
636
|
const localVarAxiosParamCreator = DiagnosticsApiAxiosParamCreator(configuration)
|
|
359
637
|
return {
|
|
638
|
+
/**
|
|
639
|
+
* 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.
|
|
640
|
+
* @summary Get Dameng SQL analysis
|
|
641
|
+
* @param {string} orgName Organization name
|
|
642
|
+
* @param {string} clusterName Cluster name
|
|
643
|
+
* @param {number} [limit] Maximum number of SQL entries per category. Defaults to 20.
|
|
644
|
+
* @param {*} [options] Override http request option.
|
|
645
|
+
* @throws {RequiredError}
|
|
646
|
+
*/
|
|
647
|
+
async getDiagnosticsDamengSQLAnalysis(orgName: string, clusterName: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DamengSQLAnalysis>> {
|
|
648
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsDamengSQLAnalysis(orgName, clusterName, limit, options);
|
|
649
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
650
|
+
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsDamengSQLAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
651
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
652
|
+
},
|
|
653
|
+
/**
|
|
654
|
+
* Get a single Dameng session detail by session ID from V$SESSIONS, including SQL text, transaction info, and client details.
|
|
655
|
+
* @summary Get Dameng session detail
|
|
656
|
+
* @param {string} orgName Organization name
|
|
657
|
+
* @param {string} clusterName Cluster name
|
|
658
|
+
* @param {number} sessionId Dameng session ID (SESS_ID)
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
*/
|
|
662
|
+
async getDiagnosticsDamengSession(orgName: string, clusterName: string, sessionId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DamengSessionDetail>> {
|
|
663
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsDamengSession(orgName, clusterName, sessionId, options);
|
|
664
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
665
|
+
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsDamengSession']?.[localVarOperationServerIndex]?.url;
|
|
666
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
667
|
+
},
|
|
668
|
+
/**
|
|
669
|
+
* Get lock and blocking analysis for a Dameng session. Queries V$LOCK and V$SESSIONS to identify blocking/blocked relationships and lock details.
|
|
670
|
+
* @summary Get Dameng session lock analysis
|
|
671
|
+
* @param {string} orgName Organization name
|
|
672
|
+
* @param {string} clusterName Cluster name
|
|
673
|
+
* @param {number} sessionId Dameng session ID (SESS_ID)
|
|
674
|
+
* @param {*} [options] Override http request option.
|
|
675
|
+
* @throws {RequiredError}
|
|
676
|
+
*/
|
|
677
|
+
async getDiagnosticsDamengSessionLockAnalysis(orgName: string, clusterName: string, sessionId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DamengLockAnalysis>> {
|
|
678
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsDamengSessionLockAnalysis(orgName, clusterName, sessionId, options);
|
|
679
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
680
|
+
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsDamengSessionLockAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
681
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
682
|
+
},
|
|
683
|
+
/**
|
|
684
|
+
* 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.
|
|
685
|
+
* @summary Get Dameng space analysis
|
|
686
|
+
* @param {string} orgName Organization name
|
|
687
|
+
* @param {string} clusterName Cluster name
|
|
688
|
+
* @param {number} [tableLimit] Maximum number of top tables to return (0 or omitted = not collected)
|
|
689
|
+
* @param {number} [indexLimit] Maximum number of top indexes to return (0 or omitted = not collected)
|
|
690
|
+
* @param {string} [schema] Filter tables and indexes by schema (owner). Omit or empty = all schemas.
|
|
691
|
+
* @param {boolean} [skipBasic] Set to true to skip tablespace and schema queries, returning only tables and indexes.
|
|
692
|
+
* @param {*} [options] Override http request option.
|
|
693
|
+
* @throws {RequiredError}
|
|
694
|
+
*/
|
|
695
|
+
async getDiagnosticsDamengSpaceAnalysis(orgName: string, clusterName: string, tableLimit?: number, indexLimit?: number, schema?: string, skipBasic?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DamengSpaceAnalysis>> {
|
|
696
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsDamengSpaceAnalysis(orgName, clusterName, tableLimit, indexLimit, schema, skipBasic, options);
|
|
697
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
698
|
+
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsDamengSpaceAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
699
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
700
|
+
},
|
|
360
701
|
/**
|
|
361
702
|
* Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
|
|
362
703
|
* @summary Get PostgreSQL performance trends
|
|
@@ -434,6 +775,22 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
|
|
|
434
775
|
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSpaceAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
435
776
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
436
777
|
},
|
|
778
|
+
/**
|
|
779
|
+
* 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.
|
|
780
|
+
* @summary List Dameng sessions
|
|
781
|
+
* @param {string} orgName Organization name
|
|
782
|
+
* @param {string} clusterName Cluster name
|
|
783
|
+
* @param {number} [limit] Maximum number of sessions to return. Defaults to 200.
|
|
784
|
+
* @param {string} [state] Filter sessions by state (e.g. ACTIVE, IDLE). Matches against V$SESSIONS.STATE.
|
|
785
|
+
* @param {*} [options] Override http request option.
|
|
786
|
+
* @throws {RequiredError}
|
|
787
|
+
*/
|
|
788
|
+
async listDiagnosticsDamengSessions(orgName: string, clusterName: string, limit?: number, state?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<DamengSessionListItem>>> {
|
|
789
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDiagnosticsDamengSessions(orgName, clusterName, limit, state, options);
|
|
790
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
791
|
+
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsDamengSessions']?.[localVarOperationServerIndex]?.url;
|
|
792
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
793
|
+
},
|
|
437
794
|
/**
|
|
438
795
|
* List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
439
796
|
* @summary List PostgreSQL session basic diagnostics
|
|
@@ -459,6 +816,46 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
|
|
|
459
816
|
export const DiagnosticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
460
817
|
const localVarFp = DiagnosticsApiFp(configuration)
|
|
461
818
|
return {
|
|
819
|
+
/**
|
|
820
|
+
* 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.
|
|
821
|
+
* @summary Get Dameng SQL analysis
|
|
822
|
+
* @param {DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest} requestParameters Request parameters.
|
|
823
|
+
* @param {*} [options] Override http request option.
|
|
824
|
+
* @throws {RequiredError}
|
|
825
|
+
*/
|
|
826
|
+
getDiagnosticsDamengSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSQLAnalysis> {
|
|
827
|
+
return localVarFp.getDiagnosticsDamengSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(axios, basePath));
|
|
828
|
+
},
|
|
829
|
+
/**
|
|
830
|
+
* Get a single Dameng session detail by session ID from V$SESSIONS, including SQL text, transaction info, and client details.
|
|
831
|
+
* @summary Get Dameng session detail
|
|
832
|
+
* @param {DiagnosticsApiGetDiagnosticsDamengSessionRequest} requestParameters Request parameters.
|
|
833
|
+
* @param {*} [options] Override http request option.
|
|
834
|
+
* @throws {RequiredError}
|
|
835
|
+
*/
|
|
836
|
+
getDiagnosticsDamengSession(requestParameters: DiagnosticsApiGetDiagnosticsDamengSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSessionDetail> {
|
|
837
|
+
return localVarFp.getDiagnosticsDamengSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
838
|
+
},
|
|
839
|
+
/**
|
|
840
|
+
* Get lock and blocking analysis for a Dameng session. Queries V$LOCK and V$SESSIONS to identify blocking/blocked relationships and lock details.
|
|
841
|
+
* @summary Get Dameng session lock analysis
|
|
842
|
+
* @param {DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest} requestParameters Request parameters.
|
|
843
|
+
* @param {*} [options] Override http request option.
|
|
844
|
+
* @throws {RequiredError}
|
|
845
|
+
*/
|
|
846
|
+
getDiagnosticsDamengSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengLockAnalysis> {
|
|
847
|
+
return localVarFp.getDiagnosticsDamengSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, options).then((request) => request(axios, basePath));
|
|
848
|
+
},
|
|
849
|
+
/**
|
|
850
|
+
* 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.
|
|
851
|
+
* @summary Get Dameng space analysis
|
|
852
|
+
* @param {DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest} requestParameters Request parameters.
|
|
853
|
+
* @param {*} [options] Override http request option.
|
|
854
|
+
* @throws {RequiredError}
|
|
855
|
+
*/
|
|
856
|
+
getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSpaceAnalysis> {
|
|
857
|
+
return localVarFp.getDiagnosticsDamengSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.tableLimit, requestParameters.indexLimit, requestParameters.schema, requestParameters.skipBasic, options).then((request) => request(axios, basePath));
|
|
858
|
+
},
|
|
462
859
|
/**
|
|
463
860
|
* Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
|
|
464
861
|
* @summary Get PostgreSQL performance trends
|
|
@@ -509,6 +906,16 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
|
|
|
509
906
|
getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSpaceAnalysis> {
|
|
510
907
|
return localVarFp.getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(axios, basePath));
|
|
511
908
|
},
|
|
909
|
+
/**
|
|
910
|
+
* 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.
|
|
911
|
+
* @summary List Dameng sessions
|
|
912
|
+
* @param {DiagnosticsApiListDiagnosticsDamengSessionsRequest} requestParameters Request parameters.
|
|
913
|
+
* @param {*} [options] Override http request option.
|
|
914
|
+
* @throws {RequiredError}
|
|
915
|
+
*/
|
|
916
|
+
listDiagnosticsDamengSessions(requestParameters: DiagnosticsApiListDiagnosticsDamengSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DamengSessionListItem>> {
|
|
917
|
+
return localVarFp.listDiagnosticsDamengSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.state, options).then((request) => request(axios, basePath));
|
|
918
|
+
},
|
|
512
919
|
/**
|
|
513
920
|
* List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
514
921
|
* @summary List PostgreSQL session basic diagnostics
|
|
@@ -528,6 +935,46 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
|
|
|
528
935
|
* @interface DiagnosticsApi
|
|
529
936
|
*/
|
|
530
937
|
export interface DiagnosticsApiInterface {
|
|
938
|
+
/**
|
|
939
|
+
* 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.
|
|
940
|
+
* @summary Get Dameng SQL analysis
|
|
941
|
+
* @param {DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest} requestParameters Request parameters.
|
|
942
|
+
* @param {*} [options] Override http request option.
|
|
943
|
+
* @throws {RequiredError}
|
|
944
|
+
* @memberof DiagnosticsApiInterface
|
|
945
|
+
*/
|
|
946
|
+
getDiagnosticsDamengSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSQLAnalysis>;
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* Get a single Dameng session detail by session ID from V$SESSIONS, including SQL text, transaction info, and client details.
|
|
950
|
+
* @summary Get Dameng session detail
|
|
951
|
+
* @param {DiagnosticsApiGetDiagnosticsDamengSessionRequest} requestParameters Request parameters.
|
|
952
|
+
* @param {*} [options] Override http request option.
|
|
953
|
+
* @throws {RequiredError}
|
|
954
|
+
* @memberof DiagnosticsApiInterface
|
|
955
|
+
*/
|
|
956
|
+
getDiagnosticsDamengSession(requestParameters: DiagnosticsApiGetDiagnosticsDamengSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSessionDetail>;
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* Get lock and blocking analysis for a Dameng session. Queries V$LOCK and V$SESSIONS to identify blocking/blocked relationships and lock details.
|
|
960
|
+
* @summary Get Dameng session lock analysis
|
|
961
|
+
* @param {DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest} requestParameters Request parameters.
|
|
962
|
+
* @param {*} [options] Override http request option.
|
|
963
|
+
* @throws {RequiredError}
|
|
964
|
+
* @memberof DiagnosticsApiInterface
|
|
965
|
+
*/
|
|
966
|
+
getDiagnosticsDamengSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengLockAnalysis>;
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* 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.
|
|
970
|
+
* @summary Get Dameng space analysis
|
|
971
|
+
* @param {DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest} requestParameters Request parameters.
|
|
972
|
+
* @param {*} [options] Override http request option.
|
|
973
|
+
* @throws {RequiredError}
|
|
974
|
+
* @memberof DiagnosticsApiInterface
|
|
975
|
+
*/
|
|
976
|
+
getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSpaceAnalysis>;
|
|
977
|
+
|
|
531
978
|
/**
|
|
532
979
|
* Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
|
|
533
980
|
* @summary Get PostgreSQL performance trends
|
|
@@ -578,6 +1025,16 @@ export interface DiagnosticsApiInterface {
|
|
|
578
1025
|
*/
|
|
579
1026
|
getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<PostgresqlSpaceAnalysis>;
|
|
580
1027
|
|
|
1028
|
+
/**
|
|
1029
|
+
* 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.
|
|
1030
|
+
* @summary List Dameng sessions
|
|
1031
|
+
* @param {DiagnosticsApiListDiagnosticsDamengSessionsRequest} requestParameters Request parameters.
|
|
1032
|
+
* @param {*} [options] Override http request option.
|
|
1033
|
+
* @throws {RequiredError}
|
|
1034
|
+
* @memberof DiagnosticsApiInterface
|
|
1035
|
+
*/
|
|
1036
|
+
listDiagnosticsDamengSessions(requestParameters: DiagnosticsApiListDiagnosticsDamengSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<DamengSessionListItem>>;
|
|
1037
|
+
|
|
581
1038
|
/**
|
|
582
1039
|
* List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
583
1040
|
* @summary List PostgreSQL session basic diagnostics
|
|
@@ -590,6 +1047,139 @@ export interface DiagnosticsApiInterface {
|
|
|
590
1047
|
|
|
591
1048
|
}
|
|
592
1049
|
|
|
1050
|
+
/**
|
|
1051
|
+
* Request parameters for getDiagnosticsDamengSQLAnalysis operation in DiagnosticsApi.
|
|
1052
|
+
* @export
|
|
1053
|
+
* @interface DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest
|
|
1054
|
+
*/
|
|
1055
|
+
export interface DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest {
|
|
1056
|
+
/**
|
|
1057
|
+
* Organization name
|
|
1058
|
+
* @type {string}
|
|
1059
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSQLAnalysis
|
|
1060
|
+
*/
|
|
1061
|
+
readonly orgName: string
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Cluster name
|
|
1065
|
+
* @type {string}
|
|
1066
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSQLAnalysis
|
|
1067
|
+
*/
|
|
1068
|
+
readonly clusterName: string
|
|
1069
|
+
|
|
1070
|
+
/**
|
|
1071
|
+
* Maximum number of SQL entries per category. Defaults to 20.
|
|
1072
|
+
* @type {number}
|
|
1073
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSQLAnalysis
|
|
1074
|
+
*/
|
|
1075
|
+
readonly limit?: number
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Request parameters for getDiagnosticsDamengSession operation in DiagnosticsApi.
|
|
1080
|
+
* @export
|
|
1081
|
+
* @interface DiagnosticsApiGetDiagnosticsDamengSessionRequest
|
|
1082
|
+
*/
|
|
1083
|
+
export interface DiagnosticsApiGetDiagnosticsDamengSessionRequest {
|
|
1084
|
+
/**
|
|
1085
|
+
* Organization name
|
|
1086
|
+
* @type {string}
|
|
1087
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSession
|
|
1088
|
+
*/
|
|
1089
|
+
readonly orgName: string
|
|
1090
|
+
|
|
1091
|
+
/**
|
|
1092
|
+
* Cluster name
|
|
1093
|
+
* @type {string}
|
|
1094
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSession
|
|
1095
|
+
*/
|
|
1096
|
+
readonly clusterName: string
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* Dameng session ID (SESS_ID)
|
|
1100
|
+
* @type {number}
|
|
1101
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSession
|
|
1102
|
+
*/
|
|
1103
|
+
readonly sessionId: number
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
/**
|
|
1107
|
+
* Request parameters for getDiagnosticsDamengSessionLockAnalysis operation in DiagnosticsApi.
|
|
1108
|
+
* @export
|
|
1109
|
+
* @interface DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest
|
|
1110
|
+
*/
|
|
1111
|
+
export interface DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest {
|
|
1112
|
+
/**
|
|
1113
|
+
* Organization name
|
|
1114
|
+
* @type {string}
|
|
1115
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysis
|
|
1116
|
+
*/
|
|
1117
|
+
readonly orgName: string
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
* Cluster name
|
|
1121
|
+
* @type {string}
|
|
1122
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysis
|
|
1123
|
+
*/
|
|
1124
|
+
readonly clusterName: string
|
|
1125
|
+
|
|
1126
|
+
/**
|
|
1127
|
+
* Dameng session ID (SESS_ID)
|
|
1128
|
+
* @type {number}
|
|
1129
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysis
|
|
1130
|
+
*/
|
|
1131
|
+
readonly sessionId: number
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* Request parameters for getDiagnosticsDamengSpaceAnalysis operation in DiagnosticsApi.
|
|
1136
|
+
* @export
|
|
1137
|
+
* @interface DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest
|
|
1138
|
+
*/
|
|
1139
|
+
export interface DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest {
|
|
1140
|
+
/**
|
|
1141
|
+
* Organization name
|
|
1142
|
+
* @type {string}
|
|
1143
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSpaceAnalysis
|
|
1144
|
+
*/
|
|
1145
|
+
readonly orgName: string
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Cluster name
|
|
1149
|
+
* @type {string}
|
|
1150
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSpaceAnalysis
|
|
1151
|
+
*/
|
|
1152
|
+
readonly clusterName: string
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* Maximum number of top tables to return (0 or omitted = not collected)
|
|
1156
|
+
* @type {number}
|
|
1157
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSpaceAnalysis
|
|
1158
|
+
*/
|
|
1159
|
+
readonly tableLimit?: number
|
|
1160
|
+
|
|
1161
|
+
/**
|
|
1162
|
+
* Maximum number of top indexes to return (0 or omitted = not collected)
|
|
1163
|
+
* @type {number}
|
|
1164
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSpaceAnalysis
|
|
1165
|
+
*/
|
|
1166
|
+
readonly indexLimit?: number
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Filter tables and indexes by schema (owner). Omit or empty = all schemas.
|
|
1170
|
+
* @type {string}
|
|
1171
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSpaceAnalysis
|
|
1172
|
+
*/
|
|
1173
|
+
readonly schema?: string
|
|
1174
|
+
|
|
1175
|
+
/**
|
|
1176
|
+
* Set to true to skip tablespace and schema queries, returning only tables and indexes.
|
|
1177
|
+
* @type {boolean}
|
|
1178
|
+
* @memberof DiagnosticsApiGetDiagnosticsDamengSpaceAnalysis
|
|
1179
|
+
*/
|
|
1180
|
+
readonly skipBasic?: boolean
|
|
1181
|
+
}
|
|
1182
|
+
|
|
593
1183
|
/**
|
|
594
1184
|
* Request parameters for getDiagnosticsPostgresqlPerformanceTrends operation in DiagnosticsApi.
|
|
595
1185
|
* @export
|
|
@@ -744,6 +1334,41 @@ export interface DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest {
|
|
|
744
1334
|
readonly databaseName?: string
|
|
745
1335
|
}
|
|
746
1336
|
|
|
1337
|
+
/**
|
|
1338
|
+
* Request parameters for listDiagnosticsDamengSessions operation in DiagnosticsApi.
|
|
1339
|
+
* @export
|
|
1340
|
+
* @interface DiagnosticsApiListDiagnosticsDamengSessionsRequest
|
|
1341
|
+
*/
|
|
1342
|
+
export interface DiagnosticsApiListDiagnosticsDamengSessionsRequest {
|
|
1343
|
+
/**
|
|
1344
|
+
* Organization name
|
|
1345
|
+
* @type {string}
|
|
1346
|
+
* @memberof DiagnosticsApiListDiagnosticsDamengSessions
|
|
1347
|
+
*/
|
|
1348
|
+
readonly orgName: string
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* Cluster name
|
|
1352
|
+
* @type {string}
|
|
1353
|
+
* @memberof DiagnosticsApiListDiagnosticsDamengSessions
|
|
1354
|
+
*/
|
|
1355
|
+
readonly clusterName: string
|
|
1356
|
+
|
|
1357
|
+
/**
|
|
1358
|
+
* Maximum number of sessions to return. Defaults to 200.
|
|
1359
|
+
* @type {number}
|
|
1360
|
+
* @memberof DiagnosticsApiListDiagnosticsDamengSessions
|
|
1361
|
+
*/
|
|
1362
|
+
readonly limit?: number
|
|
1363
|
+
|
|
1364
|
+
/**
|
|
1365
|
+
* Filter sessions by state (e.g. ACTIVE, IDLE). Matches against V$SESSIONS.STATE.
|
|
1366
|
+
* @type {string}
|
|
1367
|
+
* @memberof DiagnosticsApiListDiagnosticsDamengSessions
|
|
1368
|
+
*/
|
|
1369
|
+
readonly state?: string
|
|
1370
|
+
}
|
|
1371
|
+
|
|
747
1372
|
/**
|
|
748
1373
|
* Request parameters for listDiagnosticsPostgresqlSessions operation in DiagnosticsApi.
|
|
749
1374
|
* @export
|
|
@@ -779,6 +1404,54 @@ export interface DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest {
|
|
|
779
1404
|
* @extends {BaseAPI}
|
|
780
1405
|
*/
|
|
781
1406
|
export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
|
|
1407
|
+
/**
|
|
1408
|
+
* 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.
|
|
1409
|
+
* @summary Get Dameng SQL analysis
|
|
1410
|
+
* @param {DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest} requestParameters Request parameters.
|
|
1411
|
+
* @param {*} [options] Override http request option.
|
|
1412
|
+
* @throws {RequiredError}
|
|
1413
|
+
* @memberof DiagnosticsApi
|
|
1414
|
+
*/
|
|
1415
|
+
public getDiagnosticsDamengSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest, options?: RawAxiosRequestConfig) {
|
|
1416
|
+
return DiagnosticsApiFp(this.configuration).getDiagnosticsDamengSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* Get a single Dameng session detail by session ID from V$SESSIONS, including SQL text, transaction info, and client details.
|
|
1421
|
+
* @summary Get Dameng session detail
|
|
1422
|
+
* @param {DiagnosticsApiGetDiagnosticsDamengSessionRequest} requestParameters Request parameters.
|
|
1423
|
+
* @param {*} [options] Override http request option.
|
|
1424
|
+
* @throws {RequiredError}
|
|
1425
|
+
* @memberof DiagnosticsApi
|
|
1426
|
+
*/
|
|
1427
|
+
public getDiagnosticsDamengSession(requestParameters: DiagnosticsApiGetDiagnosticsDamengSessionRequest, options?: RawAxiosRequestConfig) {
|
|
1428
|
+
return DiagnosticsApiFp(this.configuration).getDiagnosticsDamengSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
* Get lock and blocking analysis for a Dameng session. Queries V$LOCK and V$SESSIONS to identify blocking/blocked relationships and lock details.
|
|
1433
|
+
* @summary Get Dameng session lock analysis
|
|
1434
|
+
* @param {DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest} requestParameters Request parameters.
|
|
1435
|
+
* @param {*} [options] Override http request option.
|
|
1436
|
+
* @throws {RequiredError}
|
|
1437
|
+
* @memberof DiagnosticsApi
|
|
1438
|
+
*/
|
|
1439
|
+
public getDiagnosticsDamengSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest, options?: RawAxiosRequestConfig) {
|
|
1440
|
+
return DiagnosticsApiFp(this.configuration).getDiagnosticsDamengSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
/**
|
|
1444
|
+
* 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.
|
|
1445
|
+
* @summary Get Dameng space analysis
|
|
1446
|
+
* @param {DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest} requestParameters Request parameters.
|
|
1447
|
+
* @param {*} [options] Override http request option.
|
|
1448
|
+
* @throws {RequiredError}
|
|
1449
|
+
* @memberof DiagnosticsApi
|
|
1450
|
+
*/
|
|
1451
|
+
public getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig) {
|
|
1452
|
+
return DiagnosticsApiFp(this.configuration).getDiagnosticsDamengSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.tableLimit, requestParameters.indexLimit, requestParameters.schema, requestParameters.skipBasic, options).then((request) => request(this.axios, this.basePath));
|
|
1453
|
+
}
|
|
1454
|
+
|
|
782
1455
|
/**
|
|
783
1456
|
* Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
|
|
784
1457
|
* @summary Get PostgreSQL performance trends
|
|
@@ -839,6 +1512,18 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
|
|
|
839
1512
|
return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(this.axios, this.basePath));
|
|
840
1513
|
}
|
|
841
1514
|
|
|
1515
|
+
/**
|
|
1516
|
+
* 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.
|
|
1517
|
+
* @summary List Dameng sessions
|
|
1518
|
+
* @param {DiagnosticsApiListDiagnosticsDamengSessionsRequest} requestParameters Request parameters.
|
|
1519
|
+
* @param {*} [options] Override http request option.
|
|
1520
|
+
* @throws {RequiredError}
|
|
1521
|
+
* @memberof DiagnosticsApi
|
|
1522
|
+
*/
|
|
1523
|
+
public listDiagnosticsDamengSessions(requestParameters: DiagnosticsApiListDiagnosticsDamengSessionsRequest, options?: RawAxiosRequestConfig) {
|
|
1524
|
+
return DiagnosticsApiFp(this.configuration).listDiagnosticsDamengSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.state, options).then((request) => request(this.axios, this.basePath));
|
|
1525
|
+
}
|
|
1526
|
+
|
|
842
1527
|
/**
|
|
843
1528
|
* List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows.
|
|
844
1529
|
* @summary List PostgreSQL session basic diagnostics
|