kb-cloud-client-typescript 2.3.0-alpha.138 → 2.3.0-alpha.139
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/models/cluster-slow-log-diagnosis-issue.d.ts +57 -0
- package/dist/adminapi/models/cluster-slow-log-diagnosis-issue.d.ts.map +1 -0
- package/dist/adminapi/models/cluster-slow-log-diagnosis-issue.js +16 -0
- package/dist/adminapi/models/cluster-slow-log-diagnosis-issue.js.map +1 -0
- package/dist/adminapi/models/cluster-slow-log-diagnosis.d.ts +58 -0
- package/dist/adminapi/models/cluster-slow-log-diagnosis.d.ts.map +1 -0
- package/dist/adminapi/models/cluster-slow-log-diagnosis.js +16 -0
- package/dist/adminapi/models/cluster-slow-log-diagnosis.js.map +1 -0
- package/dist/adminapi/models/cluster-slow-log-explain-response.d.ts +7 -0
- package/dist/adminapi/models/cluster-slow-log-explain-response.d.ts.map +1 -1
- package/dist/adminapi/models/cluster-slow-log-localized-text.d.ts +34 -0
- package/dist/adminapi/models/cluster-slow-log-localized-text.d.ts.map +1 -0
- package/dist/adminapi/models/cluster-slow-log-localized-text.js +16 -0
- package/dist/adminapi/models/cluster-slow-log-localized-text.js.map +1 -0
- package/dist/adminapi/models/cluster-slow-log-recommendation.d.ts +50 -0
- package/dist/adminapi/models/cluster-slow-log-recommendation.d.ts.map +1 -0
- package/dist/adminapi/models/cluster-slow-log-recommendation.js +16 -0
- package/dist/adminapi/models/cluster-slow-log-recommendation.js.map +1 -0
- package/dist/adminapi/models/index.d.ts +4 -0
- package/dist/adminapi/models/index.d.ts.map +1 -1
- package/dist/adminapi/models/index.js +4 -0
- package/dist/adminapi/models/index.js.map +1 -1
- package/dist/openapi/models/cluster-slow-log-diagnosis-issue.d.ts +57 -0
- package/dist/openapi/models/cluster-slow-log-diagnosis-issue.d.ts.map +1 -0
- package/dist/openapi/models/cluster-slow-log-diagnosis-issue.js +16 -0
- package/dist/openapi/models/cluster-slow-log-diagnosis-issue.js.map +1 -0
- package/dist/openapi/models/cluster-slow-log-diagnosis.d.ts +58 -0
- package/dist/openapi/models/cluster-slow-log-diagnosis.d.ts.map +1 -0
- package/dist/openapi/models/cluster-slow-log-diagnosis.js +16 -0
- package/dist/openapi/models/cluster-slow-log-diagnosis.js.map +1 -0
- package/dist/openapi/models/cluster-slow-log-explain-response.d.ts +7 -0
- package/dist/openapi/models/cluster-slow-log-explain-response.d.ts.map +1 -1
- package/dist/openapi/models/cluster-slow-log-localized-text.d.ts +34 -0
- package/dist/openapi/models/cluster-slow-log-localized-text.d.ts.map +1 -0
- package/dist/openapi/models/cluster-slow-log-localized-text.js +16 -0
- package/dist/openapi/models/cluster-slow-log-localized-text.js.map +1 -0
- package/dist/openapi/models/cluster-slow-log-recommendation.d.ts +50 -0
- package/dist/openapi/models/cluster-slow-log-recommendation.d.ts.map +1 -0
- package/dist/openapi/models/cluster-slow-log-recommendation.js +16 -0
- package/dist/openapi/models/cluster-slow-log-recommendation.js.map +1 -0
- package/dist/openapi/models/index.d.ts +4 -0
- package/dist/openapi/models/index.d.ts.map +1 -1
- package/dist/openapi/models/index.js +4 -0
- package/dist/openapi/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +4 -0
- package/src/adminapi/models/cluster-slow-log-diagnosis-issue.ts +66 -0
- package/src/adminapi/models/cluster-slow-log-diagnosis.ts +69 -0
- package/src/adminapi/models/cluster-slow-log-explain-response.ts +9 -0
- package/src/adminapi/models/cluster-slow-log-localized-text.ts +39 -0
- package/src/adminapi/models/cluster-slow-log-recommendation.ts +57 -0
- package/src/adminapi/models/index.ts +4 -0
- package/src/adminapi.yaml +76 -0
- package/src/openapi/.openapi-generator/FILES +4 -0
- package/src/openapi/models/cluster-slow-log-diagnosis-issue.ts +66 -0
- package/src/openapi/models/cluster-slow-log-diagnosis.ts +69 -0
- package/src/openapi/models/cluster-slow-log-explain-response.ts +9 -0
- package/src/openapi/models/cluster-slow-log-localized-text.ts +39 -0
- package/src/openapi/models/cluster-slow-log-recommendation.ts +57 -0
- package/src/openapi/models/index.ts +4 -0
- package/src/openapi.yaml +76 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Admin API
|
|
5
|
+
* The Admin API is used to manage the ApeCloud platform.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
* Contact: support@apecloud.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import type { ClusterSlowLogLocalizedText } from './cluster-slow-log-localized-text';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* A rule-based recommendation for a slow log diagnosis
|
|
22
|
+
* @export
|
|
23
|
+
* @interface ClusterSlowLogRecommendation
|
|
24
|
+
*/
|
|
25
|
+
export interface ClusterSlowLogRecommendation {
|
|
26
|
+
/**
|
|
27
|
+
* Recommendation type. Current values are create_index, rewrite_sql, reduce_result_set, and investigate_lock.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ClusterSlowLogRecommendation
|
|
30
|
+
*/
|
|
31
|
+
'type'?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ClusterSlowLogRecommendation
|
|
36
|
+
*/
|
|
37
|
+
'sql'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {ClusterSlowLogLocalizedText}
|
|
41
|
+
* @memberof ClusterSlowLogRecommendation
|
|
42
|
+
*/
|
|
43
|
+
'description'?: ClusterSlowLogLocalizedText;
|
|
44
|
+
/**
|
|
45
|
+
* Evidence source used by the local rule
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ClusterSlowLogRecommendation
|
|
48
|
+
*/
|
|
49
|
+
'source'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Recommendation safety level. Current values are manual_review_required and safe_hint_only.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ClusterSlowLogRecommendation
|
|
54
|
+
*/
|
|
55
|
+
'safety'?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -175,7 +175,11 @@ export * from './cluster-raw-log-response';
|
|
|
175
175
|
export * from './cluster-scheduling-policy';
|
|
176
176
|
export * from './cluster-slow-log-database-distribution';
|
|
177
177
|
export * from './cluster-slow-log-detail';
|
|
178
|
+
export * from './cluster-slow-log-diagnosis';
|
|
179
|
+
export * from './cluster-slow-log-diagnosis-issue';
|
|
178
180
|
export * from './cluster-slow-log-explain-response';
|
|
181
|
+
export * from './cluster-slow-log-localized-text';
|
|
182
|
+
export * from './cluster-slow-log-recommendation';
|
|
179
183
|
export * from './cluster-slow-log-stats';
|
|
180
184
|
export * from './cluster-slow-log-template';
|
|
181
185
|
export * from './cluster-slow-log-template-list';
|
package/src/adminapi.yaml
CHANGED
|
@@ -27681,6 +27681,80 @@ components:
|
|
|
27681
27681
|
type: array
|
|
27682
27682
|
pagination:
|
|
27683
27683
|
$ref: '#/components/schemas/clusterLogPagination'
|
|
27684
|
+
clusterSlowLogLocalizedText:
|
|
27685
|
+
type: object
|
|
27686
|
+
description: Localized slow log diagnosis text with dynamic arguments
|
|
27687
|
+
properties:
|
|
27688
|
+
message:
|
|
27689
|
+
$ref: '#/components/schemas/localizedDescription'
|
|
27690
|
+
args:
|
|
27691
|
+
type: object
|
|
27692
|
+
additionalProperties:
|
|
27693
|
+
type: string
|
|
27694
|
+
description: Dynamic values used by the message
|
|
27695
|
+
clusterSlowLogDiagnosisIssue:
|
|
27696
|
+
type: object
|
|
27697
|
+
description: A single detected slow log diagnosis issue
|
|
27698
|
+
properties:
|
|
27699
|
+
code:
|
|
27700
|
+
type: string
|
|
27701
|
+
x-omitempty: false
|
|
27702
|
+
severity:
|
|
27703
|
+
type: string
|
|
27704
|
+
description: Issue severity. Current values are info, low, medium, and high.
|
|
27705
|
+
x-omitempty: false
|
|
27706
|
+
source:
|
|
27707
|
+
type: string
|
|
27708
|
+
description: Evidence source used by the local rule
|
|
27709
|
+
x-omitempty: false
|
|
27710
|
+
message:
|
|
27711
|
+
$ref: '#/components/schemas/localizedDescription'
|
|
27712
|
+
evidence:
|
|
27713
|
+
type: array
|
|
27714
|
+
items:
|
|
27715
|
+
$ref: '#/components/schemas/clusterSlowLogLocalizedText'
|
|
27716
|
+
nodeId:
|
|
27717
|
+
type: string
|
|
27718
|
+
clusterSlowLogRecommendation:
|
|
27719
|
+
type: object
|
|
27720
|
+
description: A rule-based recommendation for a slow log diagnosis
|
|
27721
|
+
properties:
|
|
27722
|
+
type:
|
|
27723
|
+
type: string
|
|
27724
|
+
description: Recommendation type. Current values are create_index, rewrite_sql, reduce_result_set, and investigate_lock.
|
|
27725
|
+
x-omitempty: false
|
|
27726
|
+
sql:
|
|
27727
|
+
type: string
|
|
27728
|
+
description:
|
|
27729
|
+
$ref: '#/components/schemas/clusterSlowLogLocalizedText'
|
|
27730
|
+
source:
|
|
27731
|
+
type: string
|
|
27732
|
+
description: Evidence source used by the local rule
|
|
27733
|
+
x-omitempty: false
|
|
27734
|
+
safety:
|
|
27735
|
+
type: string
|
|
27736
|
+
description: Recommendation safety level. Current values are manual_review_required and safe_hint_only.
|
|
27737
|
+
x-omitempty: false
|
|
27738
|
+
clusterSlowLogDiagnosis:
|
|
27739
|
+
type: object
|
|
27740
|
+
description: Primary rule-based diagnosis card for a slow log EXPLAIN result
|
|
27741
|
+
properties:
|
|
27742
|
+
engine:
|
|
27743
|
+
type: string
|
|
27744
|
+
description: Diagnosis engine. Current value is rule_based.
|
|
27745
|
+
x-omitempty: false
|
|
27746
|
+
summary:
|
|
27747
|
+
$ref: '#/components/schemas/clusterSlowLogLocalizedText'
|
|
27748
|
+
primaryIssue:
|
|
27749
|
+
$ref: '#/components/schemas/clusterSlowLogDiagnosisIssue'
|
|
27750
|
+
optimizationStrategy:
|
|
27751
|
+
$ref: '#/components/schemas/clusterSlowLogLocalizedText'
|
|
27752
|
+
recommendedAction:
|
|
27753
|
+
$ref: '#/components/schemas/clusterSlowLogRecommendation'
|
|
27754
|
+
expectedBenefit:
|
|
27755
|
+
type: string
|
|
27756
|
+
description: Expected optimization benefit. Current values are unknown, low, medium, and high.
|
|
27757
|
+
x-omitempty: false
|
|
27684
27758
|
clusterSlowLogExplainResponse:
|
|
27685
27759
|
type: object
|
|
27686
27760
|
description: Explain response for a selected slow log template sample
|
|
@@ -27718,6 +27792,8 @@ components:
|
|
|
27718
27792
|
$ref: '#/components/schemas/clusterExecutionLogItem'
|
|
27719
27793
|
explainResult:
|
|
27720
27794
|
$ref: '#/components/schemas/DmsQueryResponse'
|
|
27795
|
+
diagnosis:
|
|
27796
|
+
$ref: '#/components/schemas/clusterSlowLogDiagnosis'
|
|
27721
27797
|
clusterSlowLogTemplate:
|
|
27722
27798
|
type: object
|
|
27723
27799
|
description: Aggregated slow log query template
|
|
@@ -252,7 +252,11 @@ models/cluster-raw-log-item.ts
|
|
|
252
252
|
models/cluster-raw-log-response.ts
|
|
253
253
|
models/cluster-slow-log-database-distribution.ts
|
|
254
254
|
models/cluster-slow-log-detail.ts
|
|
255
|
+
models/cluster-slow-log-diagnosis-issue.ts
|
|
256
|
+
models/cluster-slow-log-diagnosis.ts
|
|
255
257
|
models/cluster-slow-log-explain-response.ts
|
|
258
|
+
models/cluster-slow-log-localized-text.ts
|
|
259
|
+
models/cluster-slow-log-recommendation.ts
|
|
256
260
|
models/cluster-slow-log-stats.ts
|
|
257
261
|
models/cluster-slow-log-template-list.ts
|
|
258
262
|
models/cluster-slow-log-template.ts
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { ClusterSlowLogLocalizedText } from './cluster-slow-log-localized-text';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { LocalizedDescription } from './localized-description';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A single detected slow log diagnosis issue
|
|
25
|
+
* @export
|
|
26
|
+
* @interface ClusterSlowLogDiagnosisIssue
|
|
27
|
+
*/
|
|
28
|
+
export interface ClusterSlowLogDiagnosisIssue {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof ClusterSlowLogDiagnosisIssue
|
|
33
|
+
*/
|
|
34
|
+
'code'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Issue severity. Current values are info, low, medium, and high.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof ClusterSlowLogDiagnosisIssue
|
|
39
|
+
*/
|
|
40
|
+
'severity'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Evidence source used by the local rule
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ClusterSlowLogDiagnosisIssue
|
|
45
|
+
*/
|
|
46
|
+
'source'?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {LocalizedDescription}
|
|
50
|
+
* @memberof ClusterSlowLogDiagnosisIssue
|
|
51
|
+
*/
|
|
52
|
+
'message'?: LocalizedDescription;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Array<ClusterSlowLogLocalizedText>}
|
|
56
|
+
* @memberof ClusterSlowLogDiagnosisIssue
|
|
57
|
+
*/
|
|
58
|
+
'evidence'?: Array<ClusterSlowLogLocalizedText>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ClusterSlowLogDiagnosisIssue
|
|
63
|
+
*/
|
|
64
|
+
'nodeId'?: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { ClusterSlowLogDiagnosisIssue } from './cluster-slow-log-diagnosis-issue';
|
|
19
|
+
// May contain unused imports in some cases
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
import type { ClusterSlowLogLocalizedText } from './cluster-slow-log-localized-text';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import type { ClusterSlowLogRecommendation } from './cluster-slow-log-recommendation';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Primary rule-based diagnosis card for a slow log EXPLAIN result
|
|
28
|
+
* @export
|
|
29
|
+
* @interface ClusterSlowLogDiagnosis
|
|
30
|
+
*/
|
|
31
|
+
export interface ClusterSlowLogDiagnosis {
|
|
32
|
+
/**
|
|
33
|
+
* Diagnosis engine. Current value is rule_based.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ClusterSlowLogDiagnosis
|
|
36
|
+
*/
|
|
37
|
+
'engine'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {ClusterSlowLogLocalizedText}
|
|
41
|
+
* @memberof ClusterSlowLogDiagnosis
|
|
42
|
+
*/
|
|
43
|
+
'summary'?: ClusterSlowLogLocalizedText;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {ClusterSlowLogDiagnosisIssue}
|
|
47
|
+
* @memberof ClusterSlowLogDiagnosis
|
|
48
|
+
*/
|
|
49
|
+
'primaryIssue'?: ClusterSlowLogDiagnosisIssue;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {ClusterSlowLogLocalizedText}
|
|
53
|
+
* @memberof ClusterSlowLogDiagnosis
|
|
54
|
+
*/
|
|
55
|
+
'optimizationStrategy'?: ClusterSlowLogLocalizedText;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ClusterSlowLogRecommendation}
|
|
59
|
+
* @memberof ClusterSlowLogDiagnosis
|
|
60
|
+
*/
|
|
61
|
+
'recommendedAction'?: ClusterSlowLogRecommendation;
|
|
62
|
+
/**
|
|
63
|
+
* Expected optimization benefit. Current values are unknown, low, medium, and high.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ClusterSlowLogDiagnosis
|
|
66
|
+
*/
|
|
67
|
+
'expectedBenefit'?: string;
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
import type { ClusterExecutionLogItem } from './cluster-execution-log-item';
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
|
+
import type { ClusterSlowLogDiagnosis } from './cluster-slow-log-diagnosis';
|
|
22
|
+
// May contain unused imports in some cases
|
|
23
|
+
// @ts-ignore
|
|
21
24
|
import type { DmsQueryResponse } from './dms-query-response';
|
|
22
25
|
|
|
23
26
|
/**
|
|
@@ -80,5 +83,11 @@ export interface ClusterSlowLogExplainResponse {
|
|
|
80
83
|
* @memberof ClusterSlowLogExplainResponse
|
|
81
84
|
*/
|
|
82
85
|
'explainResult'?: DmsQueryResponse;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {ClusterSlowLogDiagnosis}
|
|
89
|
+
* @memberof ClusterSlowLogExplainResponse
|
|
90
|
+
*/
|
|
91
|
+
'diagnosis'?: ClusterSlowLogDiagnosis;
|
|
83
92
|
}
|
|
84
93
|
|
|
@@ -0,0 +1,39 @@
|
|
|
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 { LocalizedDescription } from './localized-description';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Localized slow log diagnosis text with dynamic arguments
|
|
22
|
+
* @export
|
|
23
|
+
* @interface ClusterSlowLogLocalizedText
|
|
24
|
+
*/
|
|
25
|
+
export interface ClusterSlowLogLocalizedText {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {LocalizedDescription}
|
|
29
|
+
* @memberof ClusterSlowLogLocalizedText
|
|
30
|
+
*/
|
|
31
|
+
'message'?: LocalizedDescription;
|
|
32
|
+
/**
|
|
33
|
+
* Dynamic values used by the message
|
|
34
|
+
* @type {{ [key: string]: string; }}
|
|
35
|
+
* @memberof ClusterSlowLogLocalizedText
|
|
36
|
+
*/
|
|
37
|
+
'args'?: { [key: string]: string; };
|
|
38
|
+
}
|
|
39
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
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 { ClusterSlowLogLocalizedText } from './cluster-slow-log-localized-text';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* A rule-based recommendation for a slow log diagnosis
|
|
22
|
+
* @export
|
|
23
|
+
* @interface ClusterSlowLogRecommendation
|
|
24
|
+
*/
|
|
25
|
+
export interface ClusterSlowLogRecommendation {
|
|
26
|
+
/**
|
|
27
|
+
* Recommendation type. Current values are create_index, rewrite_sql, reduce_result_set, and investigate_lock.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof ClusterSlowLogRecommendation
|
|
30
|
+
*/
|
|
31
|
+
'type'?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof ClusterSlowLogRecommendation
|
|
36
|
+
*/
|
|
37
|
+
'sql'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {ClusterSlowLogLocalizedText}
|
|
41
|
+
* @memberof ClusterSlowLogRecommendation
|
|
42
|
+
*/
|
|
43
|
+
'description'?: ClusterSlowLogLocalizedText;
|
|
44
|
+
/**
|
|
45
|
+
* Evidence source used by the local rule
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ClusterSlowLogRecommendation
|
|
48
|
+
*/
|
|
49
|
+
'source'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Recommendation safety level. Current values are manual_review_required and safe_hint_only.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ClusterSlowLogRecommendation
|
|
54
|
+
*/
|
|
55
|
+
'safety'?: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -168,7 +168,11 @@ export * from './cluster-raw-log-item';
|
|
|
168
168
|
export * from './cluster-raw-log-response';
|
|
169
169
|
export * from './cluster-slow-log-database-distribution';
|
|
170
170
|
export * from './cluster-slow-log-detail';
|
|
171
|
+
export * from './cluster-slow-log-diagnosis';
|
|
172
|
+
export * from './cluster-slow-log-diagnosis-issue';
|
|
171
173
|
export * from './cluster-slow-log-explain-response';
|
|
174
|
+
export * from './cluster-slow-log-localized-text';
|
|
175
|
+
export * from './cluster-slow-log-recommendation';
|
|
172
176
|
export * from './cluster-slow-log-stats';
|
|
173
177
|
export * from './cluster-slow-log-template';
|
|
174
178
|
export * from './cluster-slow-log-template-list';
|
package/src/openapi.yaml
CHANGED
|
@@ -21668,6 +21668,80 @@ components:
|
|
|
21668
21668
|
items:
|
|
21669
21669
|
type: string
|
|
21670
21670
|
nullable: true
|
|
21671
|
+
clusterSlowLogLocalizedText:
|
|
21672
|
+
type: object
|
|
21673
|
+
description: Localized slow log diagnosis text with dynamic arguments
|
|
21674
|
+
properties:
|
|
21675
|
+
message:
|
|
21676
|
+
$ref: '#/components/schemas/localizedDescription'
|
|
21677
|
+
args:
|
|
21678
|
+
type: object
|
|
21679
|
+
additionalProperties:
|
|
21680
|
+
type: string
|
|
21681
|
+
description: Dynamic values used by the message
|
|
21682
|
+
clusterSlowLogDiagnosisIssue:
|
|
21683
|
+
type: object
|
|
21684
|
+
description: A single detected slow log diagnosis issue
|
|
21685
|
+
properties:
|
|
21686
|
+
code:
|
|
21687
|
+
type: string
|
|
21688
|
+
x-omitempty: false
|
|
21689
|
+
severity:
|
|
21690
|
+
type: string
|
|
21691
|
+
description: Issue severity. Current values are info, low, medium, and high.
|
|
21692
|
+
x-omitempty: false
|
|
21693
|
+
source:
|
|
21694
|
+
type: string
|
|
21695
|
+
description: Evidence source used by the local rule
|
|
21696
|
+
x-omitempty: false
|
|
21697
|
+
message:
|
|
21698
|
+
$ref: '#/components/schemas/localizedDescription'
|
|
21699
|
+
evidence:
|
|
21700
|
+
type: array
|
|
21701
|
+
items:
|
|
21702
|
+
$ref: '#/components/schemas/clusterSlowLogLocalizedText'
|
|
21703
|
+
nodeId:
|
|
21704
|
+
type: string
|
|
21705
|
+
clusterSlowLogRecommendation:
|
|
21706
|
+
type: object
|
|
21707
|
+
description: A rule-based recommendation for a slow log diagnosis
|
|
21708
|
+
properties:
|
|
21709
|
+
type:
|
|
21710
|
+
type: string
|
|
21711
|
+
description: Recommendation type. Current values are create_index, rewrite_sql, reduce_result_set, and investigate_lock.
|
|
21712
|
+
x-omitempty: false
|
|
21713
|
+
sql:
|
|
21714
|
+
type: string
|
|
21715
|
+
description:
|
|
21716
|
+
$ref: '#/components/schemas/clusterSlowLogLocalizedText'
|
|
21717
|
+
source:
|
|
21718
|
+
type: string
|
|
21719
|
+
description: Evidence source used by the local rule
|
|
21720
|
+
x-omitempty: false
|
|
21721
|
+
safety:
|
|
21722
|
+
type: string
|
|
21723
|
+
description: Recommendation safety level. Current values are manual_review_required and safe_hint_only.
|
|
21724
|
+
x-omitempty: false
|
|
21725
|
+
clusterSlowLogDiagnosis:
|
|
21726
|
+
type: object
|
|
21727
|
+
description: Primary rule-based diagnosis card for a slow log EXPLAIN result
|
|
21728
|
+
properties:
|
|
21729
|
+
engine:
|
|
21730
|
+
type: string
|
|
21731
|
+
description: Diagnosis engine. Current value is rule_based.
|
|
21732
|
+
x-omitempty: false
|
|
21733
|
+
summary:
|
|
21734
|
+
$ref: '#/components/schemas/clusterSlowLogLocalizedText'
|
|
21735
|
+
primaryIssue:
|
|
21736
|
+
$ref: '#/components/schemas/clusterSlowLogDiagnosisIssue'
|
|
21737
|
+
optimizationStrategy:
|
|
21738
|
+
$ref: '#/components/schemas/clusterSlowLogLocalizedText'
|
|
21739
|
+
recommendedAction:
|
|
21740
|
+
$ref: '#/components/schemas/clusterSlowLogRecommendation'
|
|
21741
|
+
expectedBenefit:
|
|
21742
|
+
type: string
|
|
21743
|
+
description: Expected optimization benefit. Current values are unknown, low, medium, and high.
|
|
21744
|
+
x-omitempty: false
|
|
21671
21745
|
clusterSlowLogExplainResponse:
|
|
21672
21746
|
type: object
|
|
21673
21747
|
description: Explain response for a selected slow log template sample
|
|
@@ -21705,6 +21779,8 @@ components:
|
|
|
21705
21779
|
$ref: '#/components/schemas/clusterExecutionLogItem'
|
|
21706
21780
|
explainResult:
|
|
21707
21781
|
$ref: '#/components/schemas/DmsQueryResponse'
|
|
21782
|
+
diagnosis:
|
|
21783
|
+
$ref: '#/components/schemas/clusterSlowLogDiagnosis'
|
|
21708
21784
|
clusterSlowLogTemplate:
|
|
21709
21785
|
type: object
|
|
21710
21786
|
description: Aggregated slow log query template
|