kb-cloud-client-typescript 2.3.0-alpha.138 → 2.3.0-alpha.140
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/inspection-api.d.ts +10 -2
- package/dist/adminapi/apis/inspection-api.d.ts.map +1 -1
- package/dist/adminapi/apis/inspection-api.js +10 -5
- package/dist/adminapi/apis/inspection-api.js.map +1 -1
- package/dist/adminapi/models/auto-inspection.d.ts +6 -0
- package/dist/adminapi/models/auto-inspection.d.ts.map +1 -1
- 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/adminapi/models/inspection-task.d.ts +12 -0
- package/dist/adminapi/models/inspection-task.d.ts.map +1 -1
- package/dist/openapi/apis/inspection-api.d.ts +10 -2
- package/dist/openapi/apis/inspection-api.d.ts.map +1 -1
- package/dist/openapi/apis/inspection-api.js +10 -5
- package/dist/openapi/apis/inspection-api.js.map +1 -1
- package/dist/openapi/models/auto-inspection.d.ts +6 -0
- package/dist/openapi/models/auto-inspection.d.ts.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/dist/openapi/models/inspection-task.d.ts +12 -0
- package/dist/openapi/models/inspection-task.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/adminapi/.openapi-generator/FILES +4 -0
- package/src/adminapi/apis/inspection-api.ts +18 -5
- package/src/adminapi/models/auto-inspection.ts +6 -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/models/inspection-task.ts +12 -0
- package/src/adminapi.yaml +90 -0
- package/src/openapi/.openapi-generator/FILES +4 -0
- package/src/openapi/apis/inspection-api.ts +18 -5
- package/src/openapi/models/auto-inspection.ts +6 -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/models/inspection-task.ts +12 -0
- package/src/openapi.yaml +90 -0
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
// 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
|
+
* 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 { 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
|
+
* 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 { 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
|
+
* 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';
|
|
@@ -89,6 +89,18 @@ export interface InspectionTask {
|
|
|
89
89
|
* @memberof InspectionTask
|
|
90
90
|
*/
|
|
91
91
|
'isAuto'?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {number}
|
|
95
|
+
* @memberof InspectionTask
|
|
96
|
+
*/
|
|
97
|
+
'savedDays'?: number;
|
|
98
|
+
/**
|
|
99
|
+
* Expiration timestamp fixed when the inspection report is created from savedDays.
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof InspectionTask
|
|
102
|
+
*/
|
|
103
|
+
'expiredAt'?: string;
|
|
92
104
|
/**
|
|
93
105
|
*
|
|
94
106
|
* @type {number}
|
package/src/adminapi.yaml
CHANGED
|
@@ -15494,6 +15494,12 @@ paths:
|
|
|
15494
15494
|
required: false
|
|
15495
15495
|
schema:
|
|
15496
15496
|
type: string
|
|
15497
|
+
- description: name of the cluster, must be used with orgName
|
|
15498
|
+
in: query
|
|
15499
|
+
name: clusterName
|
|
15500
|
+
required: false
|
|
15501
|
+
schema:
|
|
15502
|
+
type: string
|
|
15497
15503
|
responses:
|
|
15498
15504
|
'200':
|
|
15499
15505
|
description: A successful response.
|
|
@@ -27681,6 +27687,80 @@ components:
|
|
|
27681
27687
|
type: array
|
|
27682
27688
|
pagination:
|
|
27683
27689
|
$ref: '#/components/schemas/clusterLogPagination'
|
|
27690
|
+
clusterSlowLogLocalizedText:
|
|
27691
|
+
type: object
|
|
27692
|
+
description: Localized slow log diagnosis text with dynamic arguments
|
|
27693
|
+
properties:
|
|
27694
|
+
message:
|
|
27695
|
+
$ref: '#/components/schemas/localizedDescription'
|
|
27696
|
+
args:
|
|
27697
|
+
type: object
|
|
27698
|
+
additionalProperties:
|
|
27699
|
+
type: string
|
|
27700
|
+
description: Dynamic values used by the message
|
|
27701
|
+
clusterSlowLogDiagnosisIssue:
|
|
27702
|
+
type: object
|
|
27703
|
+
description: A single detected slow log diagnosis issue
|
|
27704
|
+
properties:
|
|
27705
|
+
code:
|
|
27706
|
+
type: string
|
|
27707
|
+
x-omitempty: false
|
|
27708
|
+
severity:
|
|
27709
|
+
type: string
|
|
27710
|
+
description: Issue severity. Current values are info, low, medium, and high.
|
|
27711
|
+
x-omitempty: false
|
|
27712
|
+
source:
|
|
27713
|
+
type: string
|
|
27714
|
+
description: Evidence source used by the local rule
|
|
27715
|
+
x-omitempty: false
|
|
27716
|
+
message:
|
|
27717
|
+
$ref: '#/components/schemas/localizedDescription'
|
|
27718
|
+
evidence:
|
|
27719
|
+
type: array
|
|
27720
|
+
items:
|
|
27721
|
+
$ref: '#/components/schemas/clusterSlowLogLocalizedText'
|
|
27722
|
+
nodeId:
|
|
27723
|
+
type: string
|
|
27724
|
+
clusterSlowLogRecommendation:
|
|
27725
|
+
type: object
|
|
27726
|
+
description: A rule-based recommendation for a slow log diagnosis
|
|
27727
|
+
properties:
|
|
27728
|
+
type:
|
|
27729
|
+
type: string
|
|
27730
|
+
description: Recommendation type. Current values are create_index, rewrite_sql, reduce_result_set, and investigate_lock.
|
|
27731
|
+
x-omitempty: false
|
|
27732
|
+
sql:
|
|
27733
|
+
type: string
|
|
27734
|
+
description:
|
|
27735
|
+
$ref: '#/components/schemas/clusterSlowLogLocalizedText'
|
|
27736
|
+
source:
|
|
27737
|
+
type: string
|
|
27738
|
+
description: Evidence source used by the local rule
|
|
27739
|
+
x-omitempty: false
|
|
27740
|
+
safety:
|
|
27741
|
+
type: string
|
|
27742
|
+
description: Recommendation safety level. Current values are manual_review_required and safe_hint_only.
|
|
27743
|
+
x-omitempty: false
|
|
27744
|
+
clusterSlowLogDiagnosis:
|
|
27745
|
+
type: object
|
|
27746
|
+
description: Primary rule-based diagnosis card for a slow log EXPLAIN result
|
|
27747
|
+
properties:
|
|
27748
|
+
engine:
|
|
27749
|
+
type: string
|
|
27750
|
+
description: Diagnosis engine. Current value is rule_based.
|
|
27751
|
+
x-omitempty: false
|
|
27752
|
+
summary:
|
|
27753
|
+
$ref: '#/components/schemas/clusterSlowLogLocalizedText'
|
|
27754
|
+
primaryIssue:
|
|
27755
|
+
$ref: '#/components/schemas/clusterSlowLogDiagnosisIssue'
|
|
27756
|
+
optimizationStrategy:
|
|
27757
|
+
$ref: '#/components/schemas/clusterSlowLogLocalizedText'
|
|
27758
|
+
recommendedAction:
|
|
27759
|
+
$ref: '#/components/schemas/clusterSlowLogRecommendation'
|
|
27760
|
+
expectedBenefit:
|
|
27761
|
+
type: string
|
|
27762
|
+
description: Expected optimization benefit. Current values are unknown, low, medium, and high.
|
|
27763
|
+
x-omitempty: false
|
|
27684
27764
|
clusterSlowLogExplainResponse:
|
|
27685
27765
|
type: object
|
|
27686
27766
|
description: Explain response for a selected slow log template sample
|
|
@@ -27718,6 +27798,8 @@ components:
|
|
|
27718
27798
|
$ref: '#/components/schemas/clusterExecutionLogItem'
|
|
27719
27799
|
explainResult:
|
|
27720
27800
|
$ref: '#/components/schemas/DmsQueryResponse'
|
|
27801
|
+
diagnosis:
|
|
27802
|
+
$ref: '#/components/schemas/clusterSlowLogDiagnosis'
|
|
27721
27803
|
clusterSlowLogTemplate:
|
|
27722
27804
|
type: object
|
|
27723
27805
|
description: Aggregated slow log query template
|
|
@@ -35057,6 +35139,8 @@ components:
|
|
|
35057
35139
|
type: string
|
|
35058
35140
|
resourceName:
|
|
35059
35141
|
type: string
|
|
35142
|
+
orgName:
|
|
35143
|
+
type: string
|
|
35060
35144
|
creator:
|
|
35061
35145
|
type: string
|
|
35062
35146
|
schedule:
|
|
@@ -35172,6 +35256,12 @@ components:
|
|
|
35172
35256
|
type: string
|
|
35173
35257
|
isAuto:
|
|
35174
35258
|
type: boolean
|
|
35259
|
+
savedDays:
|
|
35260
|
+
type: integer
|
|
35261
|
+
expiredAt:
|
|
35262
|
+
type: string
|
|
35263
|
+
format: date-time
|
|
35264
|
+
description: Expiration timestamp fixed when the inspection report is created from savedDays.
|
|
35175
35265
|
score:
|
|
35176
35266
|
type: integer
|
|
35177
35267
|
result:
|
|
@@ -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
|
|
@@ -337,10 +337,11 @@ export const InspectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
337
337
|
* @param {string} [id] id of the auto inspection
|
|
338
338
|
* @param {string} [orgName] name of the Org
|
|
339
339
|
* @param {string} [envName] name of the environment
|
|
340
|
+
* @param {string} [clusterName] name of the cluster, must be used with orgName
|
|
340
341
|
* @param {*} [options] Override http request option.
|
|
341
342
|
* @throws {RequiredError}
|
|
342
343
|
*/
|
|
343
|
-
getAutoInspection: async (id?: string, orgName?: string, envName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
344
|
+
getAutoInspection: async (id?: string, orgName?: string, envName?: string, clusterName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
344
345
|
const localVarPath = `/api/v1/autoInspection`;
|
|
345
346
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
346
347
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -372,6 +373,10 @@ export const InspectionApiAxiosParamCreator = function (configuration?: Configur
|
|
|
372
373
|
localVarQueryParameter['envName'] = envName;
|
|
373
374
|
}
|
|
374
375
|
|
|
376
|
+
if (clusterName !== undefined) {
|
|
377
|
+
localVarQueryParameter['clusterName'] = clusterName;
|
|
378
|
+
}
|
|
379
|
+
|
|
375
380
|
|
|
376
381
|
|
|
377
382
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -734,11 +739,12 @@ export const InspectionApiFp = function(configuration?: Configuration) {
|
|
|
734
739
|
* @param {string} [id] id of the auto inspection
|
|
735
740
|
* @param {string} [orgName] name of the Org
|
|
736
741
|
* @param {string} [envName] name of the environment
|
|
742
|
+
* @param {string} [clusterName] name of the cluster, must be used with orgName
|
|
737
743
|
* @param {*} [options] Override http request option.
|
|
738
744
|
* @throws {RequiredError}
|
|
739
745
|
*/
|
|
740
|
-
async getAutoInspection(id?: string, orgName?: string, envName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoInspection>> {
|
|
741
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getAutoInspection(id, orgName, envName, options);
|
|
746
|
+
async getAutoInspection(id?: string, orgName?: string, envName?: string, clusterName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoInspection>> {
|
|
747
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getAutoInspection(id, orgName, envName, clusterName, options);
|
|
742
748
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
743
749
|
const localVarOperationServerBasePath = operationServerMap['InspectionApi.getAutoInspection']?.[localVarOperationServerIndex]?.url;
|
|
744
750
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -894,7 +900,7 @@ export const InspectionApiFactory = function (configuration?: Configuration, bas
|
|
|
894
900
|
* @throws {RequiredError}
|
|
895
901
|
*/
|
|
896
902
|
getAutoInspection(requestParameters: InspectionApiGetAutoInspectionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<AutoInspection> {
|
|
897
|
-
return localVarFp.getAutoInspection(requestParameters.id, requestParameters.orgName, requestParameters.envName, options).then((request) => request(axios, basePath));
|
|
903
|
+
return localVarFp.getAutoInspection(requestParameters.id, requestParameters.orgName, requestParameters.envName, requestParameters.clusterName, options).then((request) => request(axios, basePath));
|
|
898
904
|
},
|
|
899
905
|
/**
|
|
900
906
|
*
|
|
@@ -1229,6 +1235,13 @@ export interface InspectionApiGetAutoInspectionRequest {
|
|
|
1229
1235
|
* @memberof InspectionApiGetAutoInspection
|
|
1230
1236
|
*/
|
|
1231
1237
|
readonly envName?: string
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* name of the cluster, must be used with orgName
|
|
1241
|
+
* @type {string}
|
|
1242
|
+
* @memberof InspectionApiGetAutoInspection
|
|
1243
|
+
*/
|
|
1244
|
+
readonly clusterName?: string
|
|
1232
1245
|
}
|
|
1233
1246
|
|
|
1234
1247
|
/**
|
|
@@ -1445,7 +1458,7 @@ export class InspectionApi extends BaseAPI implements InspectionApiInterface {
|
|
|
1445
1458
|
* @memberof InspectionApi
|
|
1446
1459
|
*/
|
|
1447
1460
|
public getAutoInspection(requestParameters: InspectionApiGetAutoInspectionRequest = {}, options?: RawAxiosRequestConfig) {
|
|
1448
|
-
return InspectionApiFp(this.configuration).getAutoInspection(requestParameters.id, requestParameters.orgName, requestParameters.envName, options).then((request) => request(this.axios, this.basePath));
|
|
1461
|
+
return InspectionApiFp(this.configuration).getAutoInspection(requestParameters.id, requestParameters.orgName, requestParameters.envName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath));
|
|
1449
1462
|
}
|
|
1450
1463
|
|
|
1451
1464
|
/**
|
|
@@ -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
|
|