kb-cloud-client-typescript 2.3.0-alpha.194 → 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.
Files changed (51) hide show
  1. package/dist/adminapi/apis/diagnostics-api.d.ts +80 -0
  2. package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -1
  3. package/dist/adminapi/apis/diagnostics-api.js +84 -0
  4. package/dist/adminapi/apis/diagnostics-api.js.map +1 -1
  5. package/dist/adminapi/models/environment-module.d.ts +6 -0
  6. package/dist/adminapi/models/environment-module.d.ts.map +1 -1
  7. package/dist/adminapi/models/index.d.ts +2 -0
  8. package/dist/adminapi/models/index.d.ts.map +1 -1
  9. package/dist/adminapi/models/index.js +2 -0
  10. package/dist/adminapi/models/index.js.map +1 -1
  11. package/dist/adminapi/models/mysql-sqlanalysis.d.ts +98 -0
  12. package/dist/adminapi/models/mysql-sqlanalysis.d.ts.map +1 -0
  13. package/dist/adminapi/models/mysql-sqlanalysis.js +16 -0
  14. package/dist/adminapi/models/mysql-sqlanalysis.js.map +1 -0
  15. package/dist/adminapi/models/mysql-sqlfingerprint.d.ts +145 -0
  16. package/dist/adminapi/models/mysql-sqlfingerprint.d.ts.map +1 -0
  17. package/dist/adminapi/models/mysql-sqlfingerprint.js +16 -0
  18. package/dist/adminapi/models/mysql-sqlfingerprint.js.map +1 -0
  19. package/dist/openapi/apis/diagnostics-api.d.ts +80 -0
  20. package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -1
  21. package/dist/openapi/apis/diagnostics-api.js +84 -0
  22. package/dist/openapi/apis/diagnostics-api.js.map +1 -1
  23. package/dist/openapi/models/environment-module.d.ts +6 -0
  24. package/dist/openapi/models/environment-module.d.ts.map +1 -1
  25. package/dist/openapi/models/index.d.ts +2 -0
  26. package/dist/openapi/models/index.d.ts.map +1 -1
  27. package/dist/openapi/models/index.js +2 -0
  28. package/dist/openapi/models/index.js.map +1 -1
  29. package/dist/openapi/models/mysql-sqlanalysis.d.ts +98 -0
  30. package/dist/openapi/models/mysql-sqlanalysis.d.ts.map +1 -0
  31. package/dist/openapi/models/mysql-sqlanalysis.js +16 -0
  32. package/dist/openapi/models/mysql-sqlanalysis.js.map +1 -0
  33. package/dist/openapi/models/mysql-sqlfingerprint.d.ts +145 -0
  34. package/dist/openapi/models/mysql-sqlfingerprint.d.ts.map +1 -0
  35. package/dist/openapi/models/mysql-sqlfingerprint.js +16 -0
  36. package/dist/openapi/models/mysql-sqlfingerprint.js.map +1 -0
  37. package/package.json +1 -1
  38. package/src/adminapi/.openapi-generator/FILES +2 -0
  39. package/src/adminapi/apis/diagnostics-api.ts +140 -0
  40. package/src/adminapi/models/environment-module.ts +6 -0
  41. package/src/adminapi/models/index.ts +2 -0
  42. package/src/adminapi/models/mysql-sqlanalysis.ts +105 -0
  43. package/src/adminapi/models/mysql-sqlfingerprint.ts +150 -0
  44. package/src/adminapi.yaml +212 -0
  45. package/src/openapi/.openapi-generator/FILES +2 -0
  46. package/src/openapi/apis/diagnostics-api.ts +140 -0
  47. package/src/openapi/models/environment-module.ts +6 -0
  48. package/src/openapi/models/index.ts +2 -0
  49. package/src/openapi/models/mysql-sqlanalysis.ts +105 -0
  50. package/src/openapi/models/mysql-sqlfingerprint.ts +150 -0
  51. package/src/openapi.yaml +212 -0
@@ -0,0 +1,150 @@
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 MysqlSQLFingerprint
21
+ */
22
+ export interface MysqlSQLFingerprint {
23
+ /**
24
+ * MySQL Performance Schema DIGEST value.
25
+ * @type {string}
26
+ * @memberof MysqlSQLFingerprint
27
+ */
28
+ 'queryID': string;
29
+ /**
30
+ * Stable SQL fingerprint identifier. M1 uses DIGEST.
31
+ * @type {string}
32
+ * @memberof MysqlSQLFingerprint
33
+ */
34
+ 'fingerprint': string;
35
+ /**
36
+ * Normalized DIGEST_TEXT. Raw SQL text is intentionally not returned.
37
+ * @type {string}
38
+ * @memberof MysqlSQLFingerprint
39
+ */
40
+ 'querySummary': string;
41
+ /**
42
+ * Number of executions accumulated in the current digest row.
43
+ * @type {number}
44
+ * @memberof MysqlSQLFingerprint
45
+ */
46
+ 'calls': number;
47
+ /**
48
+ * Total statement wait time in milliseconds.
49
+ * @type {number}
50
+ * @memberof MysqlSQLFingerprint
51
+ */
52
+ 'totalTimeMs': number;
53
+ /**
54
+ * Mean statement wait time in milliseconds.
55
+ * @type {number}
56
+ * @memberof MysqlSQLFingerprint
57
+ */
58
+ 'meanTimeMs': number;
59
+ /**
60
+ * Maximum statement wait time in milliseconds.
61
+ * @type {number}
62
+ * @memberof MysqlSQLFingerprint
63
+ */
64
+ 'maxTimeMs': number;
65
+ /**
66
+ * Sum of rows sent and rows affected.
67
+ * @type {number}
68
+ * @memberof MysqlSQLFingerprint
69
+ */
70
+ 'rows': number;
71
+ /**
72
+ * Total rows sent to clients.
73
+ * @type {number}
74
+ * @memberof MysqlSQLFingerprint
75
+ */
76
+ 'rowsSent': number;
77
+ /**
78
+ * Total rows affected by statements.
79
+ * @type {number}
80
+ * @memberof MysqlSQLFingerprint
81
+ */
82
+ 'rowsAffected': number;
83
+ /**
84
+ * Total rows examined by statements.
85
+ * @type {number}
86
+ * @memberof MysqlSQLFingerprint
87
+ */
88
+ 'rowsExamined': number;
89
+ /**
90
+ * Total statement lock time in milliseconds.
91
+ * @type {number}
92
+ * @memberof MysqlSQLFingerprint
93
+ */
94
+ 'lockTimeMs': number;
95
+ /**
96
+ * Total statement errors.
97
+ * @type {number}
98
+ * @memberof MysqlSQLFingerprint
99
+ */
100
+ 'errors': number;
101
+ /**
102
+ * Total statement warnings.
103
+ * @type {number}
104
+ * @memberof MysqlSQLFingerprint
105
+ */
106
+ 'warnings': number;
107
+ /**
108
+ * Total internal temporary tables created.
109
+ * @type {number}
110
+ * @memberof MysqlSQLFingerprint
111
+ */
112
+ 'tmpTables': number;
113
+ /**
114
+ * Total internal on-disk temporary tables created.
115
+ * @type {number}
116
+ * @memberof MysqlSQLFingerprint
117
+ */
118
+ 'tmpDiskTables': number;
119
+ /**
120
+ * Executions that used no index.
121
+ * @type {number}
122
+ * @memberof MysqlSQLFingerprint
123
+ */
124
+ 'noIndexUsed': number;
125
+ /**
126
+ * Executions for which no good index was found.
127
+ * @type {number}
128
+ * @memberof MysqlSQLFingerprint
129
+ */
130
+ 'noGoodIndexUsed': number;
131
+ /**
132
+ * Default schema name associated with the digest row.
133
+ * @type {string}
134
+ * @memberof MysqlSQLFingerprint
135
+ */
136
+ 'database': string;
137
+ /**
138
+ * UTC timestamp when the digest was first observed.
139
+ * @type {string}
140
+ * @memberof MysqlSQLFingerprint
141
+ */
142
+ 'firstSeen'?: string;
143
+ /**
144
+ * UTC timestamp when the digest was most recently observed.
145
+ * @type {string}
146
+ * @memberof MysqlSQLFingerprint
147
+ */
148
+ 'lastSeen'?: string;
149
+ }
150
+
package/src/openapi.yaml CHANGED
@@ -5005,6 +5005,56 @@ paths:
5005
5005
  $ref: '#/components/responses/404'
5006
5006
  '500':
5007
5007
  $ref: '#/components/responses/500'
5008
+ /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mysql/sqlAnalysis:
5009
+ get:
5010
+ tags:
5011
+ - diagnostics
5012
+ summary: Get MySQL SQL analysis
5013
+ 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.
5014
+ operationId: getDiagnosticsMysqlSQLAnalysis
5015
+ parameters:
5016
+ - name: orgName
5017
+ in: path
5018
+ description: Organization name
5019
+ required: true
5020
+ schema:
5021
+ type: string
5022
+ - name: clusterName
5023
+ in: path
5024
+ description: Cluster name
5025
+ required: true
5026
+ schema:
5027
+ type: string
5028
+ - name: limit
5029
+ in: query
5030
+ description: Maximum number of SQL fingerprints to return. The backend applies its own upper bound.
5031
+ required: false
5032
+ schema:
5033
+ type: integer
5034
+ format: int64
5035
+ - name: orderBy
5036
+ in: query
5037
+ description: Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime.
5038
+ required: false
5039
+ schema:
5040
+ type: string
5041
+ responses:
5042
+ '200':
5043
+ description: OK
5044
+ content:
5045
+ application/json:
5046
+ schema:
5047
+ $ref: '#/components/schemas/mysqlSQLAnalysis'
5048
+ '400':
5049
+ $ref: '#/components/responses/400'
5050
+ '401':
5051
+ $ref: '#/components/responses/401'
5052
+ '403':
5053
+ $ref: '#/components/responses/403'
5054
+ '404':
5055
+ $ref: '#/components/responses/404'
5056
+ '500':
5057
+ $ref: '#/components/responses/500'
5008
5058
  /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/performanceTrends:
5009
5059
  get:
5010
5060
  tags:
@@ -20771,6 +20821,9 @@ components:
20771
20821
  location:
20772
20822
  type: string
20773
20823
  description: Deployment location
20824
+ operationTaskId:
20825
+ type: string
20826
+ 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.
20774
20827
  clusterInfo:
20775
20828
  $ref: '#/components/schemas/clusterInfo'
20776
20829
  description: Cluster information
@@ -24291,6 +24344,165 @@ components:
24291
24344
  description: SQL fingerprint ranking rows from pg_stat_statements. The list may be empty when no statement statistics exist.
24292
24345
  items:
24293
24346
  $ref: '#/components/schemas/postgresqlSQLFingerprint'
24347
+ mysqlSQLFingerprint:
24348
+ type: object
24349
+ required:
24350
+ - queryID
24351
+ - fingerprint
24352
+ - querySummary
24353
+ - calls
24354
+ - totalTimeMs
24355
+ - meanTimeMs
24356
+ - maxTimeMs
24357
+ - rows
24358
+ - rowsSent
24359
+ - rowsAffected
24360
+ - rowsExamined
24361
+ - lockTimeMs
24362
+ - errors
24363
+ - warnings
24364
+ - tmpTables
24365
+ - tmpDiskTables
24366
+ - noIndexUsed
24367
+ - noGoodIndexUsed
24368
+ - database
24369
+ properties:
24370
+ queryID:
24371
+ type: string
24372
+ description: MySQL Performance Schema DIGEST value.
24373
+ fingerprint:
24374
+ type: string
24375
+ description: Stable SQL fingerprint identifier. M1 uses DIGEST.
24376
+ querySummary:
24377
+ type: string
24378
+ description: Normalized DIGEST_TEXT. Raw SQL text is intentionally not returned.
24379
+ calls:
24380
+ type: integer
24381
+ format: int64
24382
+ description: Number of executions accumulated in the current digest row.
24383
+ totalTimeMs:
24384
+ type: number
24385
+ format: double
24386
+ description: Total statement wait time in milliseconds.
24387
+ meanTimeMs:
24388
+ type: number
24389
+ format: double
24390
+ description: Mean statement wait time in milliseconds.
24391
+ maxTimeMs:
24392
+ type: number
24393
+ format: double
24394
+ description: Maximum statement wait time in milliseconds.
24395
+ rows:
24396
+ type: integer
24397
+ format: int64
24398
+ description: Sum of rows sent and rows affected.
24399
+ rowsSent:
24400
+ type: integer
24401
+ format: int64
24402
+ description: Total rows sent to clients.
24403
+ rowsAffected:
24404
+ type: integer
24405
+ format: int64
24406
+ description: Total rows affected by statements.
24407
+ rowsExamined:
24408
+ type: integer
24409
+ format: int64
24410
+ description: Total rows examined by statements.
24411
+ lockTimeMs:
24412
+ type: number
24413
+ format: double
24414
+ description: Total statement lock time in milliseconds.
24415
+ errors:
24416
+ type: integer
24417
+ format: int64
24418
+ description: Total statement errors.
24419
+ warnings:
24420
+ type: integer
24421
+ format: int64
24422
+ description: Total statement warnings.
24423
+ tmpTables:
24424
+ type: integer
24425
+ format: int64
24426
+ description: Total internal temporary tables created.
24427
+ tmpDiskTables:
24428
+ type: integer
24429
+ format: int64
24430
+ description: Total internal on-disk temporary tables created.
24431
+ noIndexUsed:
24432
+ type: integer
24433
+ format: int64
24434
+ description: Executions that used no index.
24435
+ noGoodIndexUsed:
24436
+ type: integer
24437
+ format: int64
24438
+ description: Executions for which no good index was found.
24439
+ database:
24440
+ type: string
24441
+ description: Default schema name associated with the digest row.
24442
+ firstSeen:
24443
+ type: string
24444
+ description: UTC timestamp when the digest was first observed.
24445
+ lastSeen:
24446
+ type: string
24447
+ description: UTC timestamp when the digest was most recently observed.
24448
+ mysqlSQLAnalysis:
24449
+ type: object
24450
+ required:
24451
+ - source
24452
+ - status
24453
+ - collectedAt
24454
+ - limit
24455
+ - orderBy
24456
+ - items
24457
+ properties:
24458
+ source:
24459
+ type: string
24460
+ description: Data source. M1 uses performance_schema.events_statements_summary_by_digest.
24461
+ status:
24462
+ type: string
24463
+ description: Source status. Expected values are available or unavailable.
24464
+ unavailableReason:
24465
+ type: string
24466
+ description: Reason when status is unavailable, such as performance_schema_disabled, digest_consumer_disabled, permission_denied, or query_failed.
24467
+ message:
24468
+ type: string
24469
+ description: User-facing recovery guidance when SQL analysis is unavailable.
24470
+ collectedAt:
24471
+ type: string
24472
+ description: Backend collection timestamp in UTC. It is not a sampling-window end time.
24473
+ firstSeen:
24474
+ type: string
24475
+ description: Earliest FIRST_SEEN timestamp across currently visible digest rows, when available.
24476
+ lastSeen:
24477
+ type: string
24478
+ description: Latest LAST_SEEN timestamp across currently visible digest rows, when available.
24479
+ limit:
24480
+ type: integer
24481
+ format: int64
24482
+ description: Effective row limit after backend normalization.
24483
+ orderBy:
24484
+ type: string
24485
+ description: Effective sort key. Expected values are totalTime, meanTime, maxTime, or calls.
24486
+ totalTimeMsAll:
24487
+ type: number
24488
+ format: double
24489
+ x-nullable: true
24490
+ description: Total execution time in milliseconds across all visible digest rows, not limited to the returned top-N items.
24491
+ callsAll:
24492
+ type: integer
24493
+ format: int64
24494
+ x-nullable: true
24495
+ description: Total execution count across all visible digest rows, not limited to the returned top-N items.
24496
+ digestLost:
24497
+ type: integer
24498
+ format: int64
24499
+ x-nullable: true
24500
+ description: Number of statement digests not recorded because the digest table was full, when exposed by the server.
24501
+ items:
24502
+ type: array
24503
+ description: SQL fingerprint ranking rows from Performance Schema. The list may be empty when no statement statistics exist.
24504
+ items:
24505
+ $ref: '#/components/schemas/mysqlSQLFingerprint'
24294
24506
  performanceTrendRange:
24295
24507
  type: object
24296
24508
  required: