kb-cloud-client-typescript 2.3.0-alpha.195 → 2.3.0-alpha.196
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 +80 -0
- package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/adminapi/apis/diagnostics-api.js +84 -0
- package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
- package/dist/adminapi/models/environment-module.d.ts +6 -0
- package/dist/adminapi/models/environment-module.d.ts.map +1 -1
- package/dist/adminapi/models/index.d.ts +2 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +2 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/adminapi/models/mysql-sqlanalysis.d.ts +98 -0
- package/dist/adminapi/models/mysql-sqlanalysis.d.ts.map +1 -0
- package/dist/adminapi/models/mysql-sqlanalysis.js +16 -0
- package/dist/adminapi/models/mysql-sqlanalysis.js.map +1 -0
- package/dist/adminapi/models/mysql-sqlfingerprint.d.ts +145 -0
- package/dist/adminapi/models/mysql-sqlfingerprint.d.ts.map +1 -0
- package/dist/adminapi/models/mysql-sqlfingerprint.js +16 -0
- package/dist/adminapi/models/mysql-sqlfingerprint.js.map +1 -0
- package/dist/openapi/apis/diagnostics-api.d.ts +80 -0
- package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
- package/dist/openapi/apis/diagnostics-api.js +84 -0
- package/dist/openapi/apis/diagnostics-api.js.map +1 -1
- package/dist/openapi/models/environment-module.d.ts +6 -0
- package/dist/openapi/models/environment-module.d.ts.map +1 -1
- package/dist/openapi/models/index.d.ts +2 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +2 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/dist/openapi/models/mysql-sqlanalysis.d.ts +98 -0
- package/dist/openapi/models/mysql-sqlanalysis.d.ts.map +1 -0
- package/dist/openapi/models/mysql-sqlanalysis.js +16 -0
- package/dist/openapi/models/mysql-sqlanalysis.js.map +1 -0
- package/dist/openapi/models/mysql-sqlfingerprint.d.ts +145 -0
- package/dist/openapi/models/mysql-sqlfingerprint.d.ts.map +1 -0
- package/dist/openapi/models/mysql-sqlfingerprint.js +16 -0
- package/dist/openapi/models/mysql-sqlfingerprint.js.map +1 -0
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +2 -0
- package/src/adminapi/apis/diagnostics-api.ts +140 -0
- package/src/adminapi/models/environment-module.ts +6 -0
- package/src/adminapi/models/index.ts +2 -0
- package/src/adminapi/models/mysql-sqlanalysis.ts +105 -0
- package/src/adminapi/models/mysql-sqlfingerprint.ts +150 -0
- package/src/adminapi.yaml +212 -0
- package/src/openapi/.openapi-generator/FILES +2 -0
- package/src/openapi/apis/diagnostics-api.ts +140 -0
- package/src/openapi/models/environment-module.ts +6 -0
- package/src/openapi/models/index.ts +2 -0
- package/src/openapi/models/mysql-sqlanalysis.ts +105 -0
- package/src/openapi/models/mysql-sqlfingerprint.ts +150 -0
- package/src/openapi.yaml +212 -0
package/src/adminapi.yaml
CHANGED
|
@@ -21195,6 +21195,56 @@ paths:
|
|
|
21195
21195
|
$ref: '#/components/responses/404'
|
|
21196
21196
|
'500':
|
|
21197
21197
|
$ref: '#/components/responses/500'
|
|
21198
|
+
/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mysql/sqlAnalysis:
|
|
21199
|
+
get:
|
|
21200
|
+
tags:
|
|
21201
|
+
- diagnostics
|
|
21202
|
+
summary: Get MySQL SQL analysis
|
|
21203
|
+
description: Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
|
|
21204
|
+
operationId: getDiagnosticsMysqlSQLAnalysis
|
|
21205
|
+
parameters:
|
|
21206
|
+
- name: orgName
|
|
21207
|
+
in: path
|
|
21208
|
+
description: Organization name
|
|
21209
|
+
required: true
|
|
21210
|
+
schema:
|
|
21211
|
+
type: string
|
|
21212
|
+
- name: clusterName
|
|
21213
|
+
in: path
|
|
21214
|
+
description: Cluster name
|
|
21215
|
+
required: true
|
|
21216
|
+
schema:
|
|
21217
|
+
type: string
|
|
21218
|
+
- name: limit
|
|
21219
|
+
in: query
|
|
21220
|
+
description: Maximum number of SQL fingerprints to return. The backend applies its own upper bound.
|
|
21221
|
+
required: false
|
|
21222
|
+
schema:
|
|
21223
|
+
type: integer
|
|
21224
|
+
format: int64
|
|
21225
|
+
- name: orderBy
|
|
21226
|
+
in: query
|
|
21227
|
+
description: Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime.
|
|
21228
|
+
required: false
|
|
21229
|
+
schema:
|
|
21230
|
+
type: string
|
|
21231
|
+
responses:
|
|
21232
|
+
'200':
|
|
21233
|
+
description: OK
|
|
21234
|
+
content:
|
|
21235
|
+
application/json:
|
|
21236
|
+
schema:
|
|
21237
|
+
$ref: '#/components/schemas/mysqlSQLAnalysis'
|
|
21238
|
+
'400':
|
|
21239
|
+
$ref: '#/components/responses/400'
|
|
21240
|
+
'401':
|
|
21241
|
+
$ref: '#/components/responses/401'
|
|
21242
|
+
'403':
|
|
21243
|
+
$ref: '#/components/responses/403'
|
|
21244
|
+
'404':
|
|
21245
|
+
$ref: '#/components/responses/404'
|
|
21246
|
+
'500':
|
|
21247
|
+
$ref: '#/components/responses/500'
|
|
21198
21248
|
/admin/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/performanceTrends:
|
|
21199
21249
|
get:
|
|
21200
21250
|
tags:
|
|
@@ -30537,6 +30587,9 @@ components:
|
|
|
30537
30587
|
location:
|
|
30538
30588
|
type: string
|
|
30539
30589
|
description: Deployment location
|
|
30590
|
+
operationTaskId:
|
|
30591
|
+
type: string
|
|
30592
|
+
description: ID of the asynchronous task associated with the module's current operation state. It is omitted when the current state is not associated with a task.
|
|
30540
30593
|
clusterInfo:
|
|
30541
30594
|
$ref: '#/components/schemas/clusterInfo'
|
|
30542
30595
|
description: Cluster information
|
|
@@ -40036,6 +40089,165 @@ components:
|
|
|
40036
40089
|
description: SQL fingerprint ranking rows from pg_stat_statements. The list may be empty when no statement statistics exist.
|
|
40037
40090
|
items:
|
|
40038
40091
|
$ref: '#/components/schemas/postgresqlSQLFingerprint'
|
|
40092
|
+
mysqlSQLFingerprint:
|
|
40093
|
+
type: object
|
|
40094
|
+
required:
|
|
40095
|
+
- queryID
|
|
40096
|
+
- fingerprint
|
|
40097
|
+
- querySummary
|
|
40098
|
+
- calls
|
|
40099
|
+
- totalTimeMs
|
|
40100
|
+
- meanTimeMs
|
|
40101
|
+
- maxTimeMs
|
|
40102
|
+
- rows
|
|
40103
|
+
- rowsSent
|
|
40104
|
+
- rowsAffected
|
|
40105
|
+
- rowsExamined
|
|
40106
|
+
- lockTimeMs
|
|
40107
|
+
- errors
|
|
40108
|
+
- warnings
|
|
40109
|
+
- tmpTables
|
|
40110
|
+
- tmpDiskTables
|
|
40111
|
+
- noIndexUsed
|
|
40112
|
+
- noGoodIndexUsed
|
|
40113
|
+
- database
|
|
40114
|
+
properties:
|
|
40115
|
+
queryID:
|
|
40116
|
+
type: string
|
|
40117
|
+
description: MySQL Performance Schema DIGEST value.
|
|
40118
|
+
fingerprint:
|
|
40119
|
+
type: string
|
|
40120
|
+
description: Stable SQL fingerprint identifier. M1 uses DIGEST.
|
|
40121
|
+
querySummary:
|
|
40122
|
+
type: string
|
|
40123
|
+
description: Normalized DIGEST_TEXT. Raw SQL text is intentionally not returned.
|
|
40124
|
+
calls:
|
|
40125
|
+
type: integer
|
|
40126
|
+
format: int64
|
|
40127
|
+
description: Number of executions accumulated in the current digest row.
|
|
40128
|
+
totalTimeMs:
|
|
40129
|
+
type: number
|
|
40130
|
+
format: double
|
|
40131
|
+
description: Total statement wait time in milliseconds.
|
|
40132
|
+
meanTimeMs:
|
|
40133
|
+
type: number
|
|
40134
|
+
format: double
|
|
40135
|
+
description: Mean statement wait time in milliseconds.
|
|
40136
|
+
maxTimeMs:
|
|
40137
|
+
type: number
|
|
40138
|
+
format: double
|
|
40139
|
+
description: Maximum statement wait time in milliseconds.
|
|
40140
|
+
rows:
|
|
40141
|
+
type: integer
|
|
40142
|
+
format: int64
|
|
40143
|
+
description: Sum of rows sent and rows affected.
|
|
40144
|
+
rowsSent:
|
|
40145
|
+
type: integer
|
|
40146
|
+
format: int64
|
|
40147
|
+
description: Total rows sent to clients.
|
|
40148
|
+
rowsAffected:
|
|
40149
|
+
type: integer
|
|
40150
|
+
format: int64
|
|
40151
|
+
description: Total rows affected by statements.
|
|
40152
|
+
rowsExamined:
|
|
40153
|
+
type: integer
|
|
40154
|
+
format: int64
|
|
40155
|
+
description: Total rows examined by statements.
|
|
40156
|
+
lockTimeMs:
|
|
40157
|
+
type: number
|
|
40158
|
+
format: double
|
|
40159
|
+
description: Total statement lock time in milliseconds.
|
|
40160
|
+
errors:
|
|
40161
|
+
type: integer
|
|
40162
|
+
format: int64
|
|
40163
|
+
description: Total statement errors.
|
|
40164
|
+
warnings:
|
|
40165
|
+
type: integer
|
|
40166
|
+
format: int64
|
|
40167
|
+
description: Total statement warnings.
|
|
40168
|
+
tmpTables:
|
|
40169
|
+
type: integer
|
|
40170
|
+
format: int64
|
|
40171
|
+
description: Total internal temporary tables created.
|
|
40172
|
+
tmpDiskTables:
|
|
40173
|
+
type: integer
|
|
40174
|
+
format: int64
|
|
40175
|
+
description: Total internal on-disk temporary tables created.
|
|
40176
|
+
noIndexUsed:
|
|
40177
|
+
type: integer
|
|
40178
|
+
format: int64
|
|
40179
|
+
description: Executions that used no index.
|
|
40180
|
+
noGoodIndexUsed:
|
|
40181
|
+
type: integer
|
|
40182
|
+
format: int64
|
|
40183
|
+
description: Executions for which no good index was found.
|
|
40184
|
+
database:
|
|
40185
|
+
type: string
|
|
40186
|
+
description: Default schema name associated with the digest row.
|
|
40187
|
+
firstSeen:
|
|
40188
|
+
type: string
|
|
40189
|
+
description: UTC timestamp when the digest was first observed.
|
|
40190
|
+
lastSeen:
|
|
40191
|
+
type: string
|
|
40192
|
+
description: UTC timestamp when the digest was most recently observed.
|
|
40193
|
+
mysqlSQLAnalysis:
|
|
40194
|
+
type: object
|
|
40195
|
+
required:
|
|
40196
|
+
- source
|
|
40197
|
+
- status
|
|
40198
|
+
- collectedAt
|
|
40199
|
+
- limit
|
|
40200
|
+
- orderBy
|
|
40201
|
+
- items
|
|
40202
|
+
properties:
|
|
40203
|
+
source:
|
|
40204
|
+
type: string
|
|
40205
|
+
description: Data source. M1 uses performance_schema.events_statements_summary_by_digest.
|
|
40206
|
+
status:
|
|
40207
|
+
type: string
|
|
40208
|
+
description: Source status. Expected values are available or unavailable.
|
|
40209
|
+
unavailableReason:
|
|
40210
|
+
type: string
|
|
40211
|
+
description: Reason when status is unavailable, such as performance_schema_disabled, digest_consumer_disabled, permission_denied, or query_failed.
|
|
40212
|
+
message:
|
|
40213
|
+
type: string
|
|
40214
|
+
description: User-facing recovery guidance when SQL analysis is unavailable.
|
|
40215
|
+
collectedAt:
|
|
40216
|
+
type: string
|
|
40217
|
+
description: Backend collection timestamp in UTC. It is not a sampling-window end time.
|
|
40218
|
+
firstSeen:
|
|
40219
|
+
type: string
|
|
40220
|
+
description: Earliest FIRST_SEEN timestamp across currently visible digest rows, when available.
|
|
40221
|
+
lastSeen:
|
|
40222
|
+
type: string
|
|
40223
|
+
description: Latest LAST_SEEN timestamp across currently visible digest rows, when available.
|
|
40224
|
+
limit:
|
|
40225
|
+
type: integer
|
|
40226
|
+
format: int64
|
|
40227
|
+
description: Effective row limit after backend normalization.
|
|
40228
|
+
orderBy:
|
|
40229
|
+
type: string
|
|
40230
|
+
description: Effective sort key. Expected values are totalTime, meanTime, maxTime, or calls.
|
|
40231
|
+
totalTimeMsAll:
|
|
40232
|
+
type: number
|
|
40233
|
+
format: double
|
|
40234
|
+
x-nullable: true
|
|
40235
|
+
description: Total execution time in milliseconds across all visible digest rows, not limited to the returned top-N items.
|
|
40236
|
+
callsAll:
|
|
40237
|
+
type: integer
|
|
40238
|
+
format: int64
|
|
40239
|
+
x-nullable: true
|
|
40240
|
+
description: Total execution count across all visible digest rows, not limited to the returned top-N items.
|
|
40241
|
+
digestLost:
|
|
40242
|
+
type: integer
|
|
40243
|
+
format: int64
|
|
40244
|
+
x-nullable: true
|
|
40245
|
+
description: Number of statement digests not recorded because the digest table was full, when exposed by the server.
|
|
40246
|
+
items:
|
|
40247
|
+
type: array
|
|
40248
|
+
description: SQL fingerprint ranking rows from Performance Schema. The list may be empty when no statement statistics exist.
|
|
40249
|
+
items:
|
|
40250
|
+
$ref: '#/components/schemas/mysqlSQLFingerprint'
|
|
40039
40251
|
performanceTrendRange:
|
|
40040
40252
|
type: object
|
|
40041
40253
|
required:
|
|
@@ -621,6 +621,8 @@ models/mongo-update-request.ts
|
|
|
621
621
|
models/mongo-validation-info.ts
|
|
622
622
|
models/mongo-write-response.ts
|
|
623
623
|
models/mongo-write-result.ts
|
|
624
|
+
models/mysql-sqlanalysis.ts
|
|
625
|
+
models/mysql-sqlfingerprint.ts
|
|
624
626
|
models/network-config.ts
|
|
625
627
|
models/network-mode-option-inner.ts
|
|
626
628
|
models/network-mode.ts
|
|
@@ -34,6 +34,8 @@ import type { DamengSessionListItem } from '../models';
|
|
|
34
34
|
// @ts-ignore
|
|
35
35
|
import type { DamengSpaceAnalysis } from '../models';
|
|
36
36
|
// @ts-ignore
|
|
37
|
+
import type { MysqlSQLAnalysis } from '../models';
|
|
38
|
+
// @ts-ignore
|
|
37
39
|
import type { PerformanceTrends } from '../models';
|
|
38
40
|
// @ts-ignore
|
|
39
41
|
import type { PostgresqlLockAnalysis } from '../models';
|
|
@@ -253,6 +255,61 @@ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
253
255
|
|
|
254
256
|
|
|
255
257
|
|
|
258
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
259
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
260
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
261
|
+
|
|
262
|
+
return {
|
|
263
|
+
url: toPathString(localVarUrlObj),
|
|
264
|
+
options: localVarRequestOptions,
|
|
265
|
+
};
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
|
|
269
|
+
* @summary Get MySQL SQL analysis
|
|
270
|
+
* @param {string} orgName Organization name
|
|
271
|
+
* @param {string} clusterName Cluster name
|
|
272
|
+
* @param {number} [limit] Maximum number of SQL fingerprints to return. The backend applies its own upper bound.
|
|
273
|
+
* @param {string} [orderBy] Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime.
|
|
274
|
+
* @param {*} [options] Override http request option.
|
|
275
|
+
* @throws {RequiredError}
|
|
276
|
+
*/
|
|
277
|
+
getDiagnosticsMysqlSQLAnalysis: async (orgName: string, clusterName: string, limit?: number, orderBy?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
278
|
+
// verify required parameter 'orgName' is not null or undefined
|
|
279
|
+
assertParamExists('getDiagnosticsMysqlSQLAnalysis', 'orgName', orgName)
|
|
280
|
+
// verify required parameter 'clusterName' is not null or undefined
|
|
281
|
+
assertParamExists('getDiagnosticsMysqlSQLAnalysis', 'clusterName', clusterName)
|
|
282
|
+
const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mysql/sqlAnalysis`
|
|
283
|
+
.replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
|
|
284
|
+
.replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName)));
|
|
285
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
286
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
287
|
+
let baseOptions;
|
|
288
|
+
if (configuration) {
|
|
289
|
+
baseOptions = configuration.baseOptions;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
293
|
+
const localVarHeaderParameter = {} as any;
|
|
294
|
+
const localVarQueryParameter = {} as any;
|
|
295
|
+
|
|
296
|
+
// authentication BearerToken required
|
|
297
|
+
// http bearer authentication required
|
|
298
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
299
|
+
|
|
300
|
+
// authentication DigestAuth required
|
|
301
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
302
|
+
|
|
303
|
+
if (limit !== undefined) {
|
|
304
|
+
localVarQueryParameter['limit'] = limit;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
if (orderBy !== undefined) {
|
|
308
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
256
313
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
257
314
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
258
315
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -698,6 +755,22 @@ export const DiagnosticsApiFp = function(configuration?: Configuration) {
|
|
|
698
755
|
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsDamengSpaceAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
699
756
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
700
757
|
},
|
|
758
|
+
/**
|
|
759
|
+
* Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
|
|
760
|
+
* @summary Get MySQL SQL analysis
|
|
761
|
+
* @param {string} orgName Organization name
|
|
762
|
+
* @param {string} clusterName Cluster name
|
|
763
|
+
* @param {number} [limit] Maximum number of SQL fingerprints to return. The backend applies its own upper bound.
|
|
764
|
+
* @param {string} [orderBy] Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime.
|
|
765
|
+
* @param {*} [options] Override http request option.
|
|
766
|
+
* @throws {RequiredError}
|
|
767
|
+
*/
|
|
768
|
+
async getDiagnosticsMysqlSQLAnalysis(orgName: string, clusterName: string, limit?: number, orderBy?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MysqlSQLAnalysis>> {
|
|
769
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMysqlSQLAnalysis(orgName, clusterName, limit, orderBy, options);
|
|
770
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
771
|
+
const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMysqlSQLAnalysis']?.[localVarOperationServerIndex]?.url;
|
|
772
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
773
|
+
},
|
|
701
774
|
/**
|
|
702
775
|
* Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
|
|
703
776
|
* @summary Get PostgreSQL performance trends
|
|
@@ -856,6 +929,16 @@ export const DiagnosticsApiFactory = function (configuration?: Configuration, ba
|
|
|
856
929
|
getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSpaceAnalysis> {
|
|
857
930
|
return localVarFp.getDiagnosticsDamengSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.tableLimit, requestParameters.indexLimit, requestParameters.schema, requestParameters.skipBasic, options).then((request) => request(axios, basePath));
|
|
858
931
|
},
|
|
932
|
+
/**
|
|
933
|
+
* Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
|
|
934
|
+
* @summary Get MySQL SQL analysis
|
|
935
|
+
* @param {DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest} requestParameters Request parameters.
|
|
936
|
+
* @param {*} [options] Override http request option.
|
|
937
|
+
* @throws {RequiredError}
|
|
938
|
+
*/
|
|
939
|
+
getDiagnosticsMysqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<MysqlSQLAnalysis> {
|
|
940
|
+
return localVarFp.getDiagnosticsMysqlSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(axios, basePath));
|
|
941
|
+
},
|
|
859
942
|
/**
|
|
860
943
|
* Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
|
|
861
944
|
* @summary Get PostgreSQL performance trends
|
|
@@ -975,6 +1058,16 @@ export interface DiagnosticsApiInterface {
|
|
|
975
1058
|
*/
|
|
976
1059
|
getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<DamengSpaceAnalysis>;
|
|
977
1060
|
|
|
1061
|
+
/**
|
|
1062
|
+
* Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
|
|
1063
|
+
* @summary Get MySQL SQL analysis
|
|
1064
|
+
* @param {DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest} requestParameters Request parameters.
|
|
1065
|
+
* @param {*} [options] Override http request option.
|
|
1066
|
+
* @throws {RequiredError}
|
|
1067
|
+
* @memberof DiagnosticsApiInterface
|
|
1068
|
+
*/
|
|
1069
|
+
getDiagnosticsMysqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise<MysqlSQLAnalysis>;
|
|
1070
|
+
|
|
978
1071
|
/**
|
|
979
1072
|
* Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
|
|
980
1073
|
* @summary Get PostgreSQL performance trends
|
|
@@ -1180,6 +1273,41 @@ export interface DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest {
|
|
|
1180
1273
|
readonly skipBasic?: boolean
|
|
1181
1274
|
}
|
|
1182
1275
|
|
|
1276
|
+
/**
|
|
1277
|
+
* Request parameters for getDiagnosticsMysqlSQLAnalysis operation in DiagnosticsApi.
|
|
1278
|
+
* @export
|
|
1279
|
+
* @interface DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest
|
|
1280
|
+
*/
|
|
1281
|
+
export interface DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest {
|
|
1282
|
+
/**
|
|
1283
|
+
* Organization name
|
|
1284
|
+
* @type {string}
|
|
1285
|
+
* @memberof DiagnosticsApiGetDiagnosticsMysqlSQLAnalysis
|
|
1286
|
+
*/
|
|
1287
|
+
readonly orgName: string
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* Cluster name
|
|
1291
|
+
* @type {string}
|
|
1292
|
+
* @memberof DiagnosticsApiGetDiagnosticsMysqlSQLAnalysis
|
|
1293
|
+
*/
|
|
1294
|
+
readonly clusterName: string
|
|
1295
|
+
|
|
1296
|
+
/**
|
|
1297
|
+
* Maximum number of SQL fingerprints to return. The backend applies its own upper bound.
|
|
1298
|
+
* @type {number}
|
|
1299
|
+
* @memberof DiagnosticsApiGetDiagnosticsMysqlSQLAnalysis
|
|
1300
|
+
*/
|
|
1301
|
+
readonly limit?: number
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime.
|
|
1305
|
+
* @type {string}
|
|
1306
|
+
* @memberof DiagnosticsApiGetDiagnosticsMysqlSQLAnalysis
|
|
1307
|
+
*/
|
|
1308
|
+
readonly orderBy?: string
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1183
1311
|
/**
|
|
1184
1312
|
* Request parameters for getDiagnosticsPostgresqlPerformanceTrends operation in DiagnosticsApi.
|
|
1185
1313
|
* @export
|
|
@@ -1452,6 +1580,18 @@ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface {
|
|
|
1452
1580
|
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
1581
|
}
|
|
1454
1582
|
|
|
1583
|
+
/**
|
|
1584
|
+
* Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions.
|
|
1585
|
+
* @summary Get MySQL SQL analysis
|
|
1586
|
+
* @param {DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest} requestParameters Request parameters.
|
|
1587
|
+
* @param {*} [options] Override http request option.
|
|
1588
|
+
* @throws {RequiredError}
|
|
1589
|
+
* @memberof DiagnosticsApi
|
|
1590
|
+
*/
|
|
1591
|
+
public getDiagnosticsMysqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest, options?: RawAxiosRequestConfig) {
|
|
1592
|
+
return DiagnosticsApiFp(this.configuration).getDiagnosticsMysqlSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath));
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1455
1595
|
/**
|
|
1456
1596
|
* Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions.
|
|
1457
1597
|
* @summary Get PostgreSQL performance trends
|
|
@@ -59,6 +59,12 @@ export interface EnvironmentModule {
|
|
|
59
59
|
* @memberof EnvironmentModule
|
|
60
60
|
*/
|
|
61
61
|
'location'?: string;
|
|
62
|
+
/**
|
|
63
|
+
* ID of the asynchronous task associated with the module\'s current operation state. It is omitted when the current state is not associated with a task.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof EnvironmentModule
|
|
66
|
+
*/
|
|
67
|
+
'operationTaskId'?: string;
|
|
62
68
|
/**
|
|
63
69
|
*
|
|
64
70
|
* @type {ClusterInfo}
|
|
@@ -533,6 +533,8 @@ export * from './mongo-update-request';
|
|
|
533
533
|
export * from './mongo-validation-info';
|
|
534
534
|
export * from './mongo-write-response';
|
|
535
535
|
export * from './mongo-write-result';
|
|
536
|
+
export * from './mysql-sqlanalysis';
|
|
537
|
+
export * from './mysql-sqlfingerprint';
|
|
536
538
|
export * from './network-config';
|
|
537
539
|
export * from './network-mode';
|
|
538
540
|
export * from './network-mode-option-inner';
|
|
@@ -0,0 +1,105 @@
|
|
|
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
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { MysqlSQLFingerprint } from './mysql-sqlfingerprint';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface MysqlSQLAnalysis
|
|
24
|
+
*/
|
|
25
|
+
export interface MysqlSQLAnalysis {
|
|
26
|
+
/**
|
|
27
|
+
* Data source. M1 uses performance_schema.events_statements_summary_by_digest.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof MysqlSQLAnalysis
|
|
30
|
+
*/
|
|
31
|
+
'source': string;
|
|
32
|
+
/**
|
|
33
|
+
* Source status. Expected values are available or unavailable.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof MysqlSQLAnalysis
|
|
36
|
+
*/
|
|
37
|
+
'status': string;
|
|
38
|
+
/**
|
|
39
|
+
* Reason when status is unavailable, such as performance_schema_disabled, digest_consumer_disabled, permission_denied, or query_failed.
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof MysqlSQLAnalysis
|
|
42
|
+
*/
|
|
43
|
+
'unavailableReason'?: string;
|
|
44
|
+
/**
|
|
45
|
+
* User-facing recovery guidance when SQL analysis is unavailable.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof MysqlSQLAnalysis
|
|
48
|
+
*/
|
|
49
|
+
'message'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Backend collection timestamp in UTC. It is not a sampling-window end time.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof MysqlSQLAnalysis
|
|
54
|
+
*/
|
|
55
|
+
'collectedAt': string;
|
|
56
|
+
/**
|
|
57
|
+
* Earliest FIRST_SEEN timestamp across currently visible digest rows, when available.
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof MysqlSQLAnalysis
|
|
60
|
+
*/
|
|
61
|
+
'firstSeen'?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Latest LAST_SEEN timestamp across currently visible digest rows, when available.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof MysqlSQLAnalysis
|
|
66
|
+
*/
|
|
67
|
+
'lastSeen'?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Effective row limit after backend normalization.
|
|
70
|
+
* @type {number}
|
|
71
|
+
* @memberof MysqlSQLAnalysis
|
|
72
|
+
*/
|
|
73
|
+
'limit': number;
|
|
74
|
+
/**
|
|
75
|
+
* Effective sort key. Expected values are totalTime, meanTime, maxTime, or calls.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof MysqlSQLAnalysis
|
|
78
|
+
*/
|
|
79
|
+
'orderBy': string;
|
|
80
|
+
/**
|
|
81
|
+
* Total execution time in milliseconds across all visible digest rows, not limited to the returned top-N items.
|
|
82
|
+
* @type {number}
|
|
83
|
+
* @memberof MysqlSQLAnalysis
|
|
84
|
+
*/
|
|
85
|
+
'totalTimeMsAll'?: number | null;
|
|
86
|
+
/**
|
|
87
|
+
* Total execution count across all visible digest rows, not limited to the returned top-N items.
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof MysqlSQLAnalysis
|
|
90
|
+
*/
|
|
91
|
+
'callsAll'?: number | null;
|
|
92
|
+
/**
|
|
93
|
+
* Number of statement digests not recorded because the digest table was full, when exposed by the server.
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof MysqlSQLAnalysis
|
|
96
|
+
*/
|
|
97
|
+
'digestLost'?: number | null;
|
|
98
|
+
/**
|
|
99
|
+
* SQL fingerprint ranking rows from Performance Schema. The list may be empty when no statement statistics exist.
|
|
100
|
+
* @type {Array<MysqlSQLFingerprint>}
|
|
101
|
+
* @memberof MysqlSQLAnalysis
|
|
102
|
+
*/
|
|
103
|
+
'items': Array<MysqlSQLFingerprint>;
|
|
104
|
+
}
|
|
105
|
+
|