@alicloud/adb20211201 5.3.0 → 5.5.0
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/client.d.ts +159 -0
- package/dist/client.js +360 -0
- package/dist/client.js.map +1 -1
- package/dist/models/CancelSqlPatternCompareReportRequest.d.ts +43 -0
- package/dist/models/CancelSqlPatternCompareReportRequest.js +62 -0
- package/dist/models/CancelSqlPatternCompareReportRequest.js.map +1 -0
- package/dist/models/CancelSqlPatternCompareReportResponse.d.ts +19 -0
- package/dist/models/CancelSqlPatternCompareReportResponse.js +69 -0
- package/dist/models/CancelSqlPatternCompareReportResponse.js.map +1 -0
- package/dist/models/CancelSqlPatternCompareReportResponseBody.d.ts +45 -0
- package/dist/models/CancelSqlPatternCompareReportResponseBody.js +64 -0
- package/dist/models/CancelSqlPatternCompareReportResponseBody.js.map +1 -0
- package/dist/models/CreateSqlPatternCompareReportRequest.d.ts +86 -0
- package/dist/models/CreateSqlPatternCompareReportRequest.js +70 -0
- package/dist/models/CreateSqlPatternCompareReportRequest.js.map +1 -0
- package/dist/models/CreateSqlPatternCompareReportResponse.d.ts +19 -0
- package/dist/models/CreateSqlPatternCompareReportResponse.js +69 -0
- package/dist/models/CreateSqlPatternCompareReportResponse.js.map +1 -0
- package/dist/models/CreateSqlPatternCompareReportResponseBody.d.ts +29 -0
- package/dist/models/CreateSqlPatternCompareReportResponseBody.js +60 -0
- package/dist/models/CreateSqlPatternCompareReportResponseBody.js.map +1 -0
- package/dist/models/DescribeSqlPatternCompareReportRequest.d.ts +131 -0
- package/dist/models/DescribeSqlPatternCompareReportRequest.js +74 -0
- package/dist/models/DescribeSqlPatternCompareReportRequest.js.map +1 -0
- package/dist/models/DescribeSqlPatternCompareReportResponse.d.ts +19 -0
- package/dist/models/DescribeSqlPatternCompareReportResponse.js +69 -0
- package/dist/models/DescribeSqlPatternCompareReportResponse.js.map +1 -0
- package/dist/models/DescribeSqlPatternCompareReportResponseBody.d.ts +220 -0
- package/dist/models/DescribeSqlPatternCompareReportResponseBody.js +124 -0
- package/dist/models/DescribeSqlPatternCompareReportResponseBody.js.map +1 -0
- package/dist/models/DescribeSqlPatternCompareReportsRequest.d.ts +101 -0
- package/dist/models/DescribeSqlPatternCompareReportsRequest.js +70 -0
- package/dist/models/DescribeSqlPatternCompareReportsRequest.js.map +1 -0
- package/dist/models/DescribeSqlPatternCompareReportsResponse.d.ts +19 -0
- package/dist/models/DescribeSqlPatternCompareReportsResponse.js +69 -0
- package/dist/models/DescribeSqlPatternCompareReportsResponse.js.map +1 -0
- package/dist/models/DescribeSqlPatternCompareReportsResponseBody.d.ts +186 -0
- package/dist/models/DescribeSqlPatternCompareReportsResponseBody.js +114 -0
- package/dist/models/DescribeSqlPatternCompareReportsResponseBody.js.map +1 -0
- package/dist/models/ItemsMetricValuesValue.d.ts +333 -0
- package/dist/models/ItemsMetricValuesValue.js +204 -0
- package/dist/models/ItemsMetricValuesValue.js.map +1 -0
- package/dist/models/ListKnowledgeFilesRequest.d.ts +70 -0
- package/dist/models/ListKnowledgeFilesRequest.js +68 -0
- package/dist/models/ListKnowledgeFilesRequest.js.map +1 -0
- package/dist/models/ListKnowledgeFilesResponse.d.ts +19 -0
- package/dist/models/ListKnowledgeFilesResponse.js +69 -0
- package/dist/models/ListKnowledgeFilesResponse.js.map +1 -0
- package/dist/models/ListKnowledgeFilesResponseBody.d.ts +189 -0
- package/dist/models/ListKnowledgeFilesResponseBody.js +134 -0
- package/dist/models/ListKnowledgeFilesResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +24 -0
- package/dist/models/model.js +72 -23
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +402 -0
- package/src/models/CancelSqlPatternCompareReportRequest.ts +60 -0
- package/src/models/CancelSqlPatternCompareReportResponse.ts +40 -0
- package/src/models/CancelSqlPatternCompareReportResponseBody.ts +64 -0
- package/src/models/CreateSqlPatternCompareReportRequest.ts +111 -0
- package/src/models/CreateSqlPatternCompareReportResponse.ts +40 -0
- package/src/models/CreateSqlPatternCompareReportResponseBody.ts +44 -0
- package/src/models/DescribeSqlPatternCompareReportRequest.ts +160 -0
- package/src/models/DescribeSqlPatternCompareReportResponse.ts +40 -0
- package/src/models/DescribeSqlPatternCompareReportResponseBody.ts +287 -0
- package/src/models/DescribeSqlPatternCompareReportsRequest.ts +126 -0
- package/src/models/DescribeSqlPatternCompareReportsResponse.ts +40 -0
- package/src/models/DescribeSqlPatternCompareReportsResponseBody.ts +246 -0
- package/src/models/ItemsMetricValuesValue.ts +456 -0
- package/src/models/ListKnowledgeFilesRequest.ts +93 -0
- package/src/models/ListKnowledgeFilesResponse.ts +40 -0
- package/src/models/ListKnowledgeFilesResponseBody.ts +260 -0
- package/src/models/model.ts +24 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CancelSqlPatternCompareReportRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The AnalyticDB for MySQL instance ID.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* am-2ze1234567890****
|
|
14
|
+
*/
|
|
15
|
+
DBClusterId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The region ID of the instance.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* cn-beijing
|
|
24
|
+
*/
|
|
25
|
+
regionId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* The SQL Pattern comparison report ID.
|
|
29
|
+
*
|
|
30
|
+
* This parameter is required.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* 1001
|
|
34
|
+
*/
|
|
35
|
+
reportId?: number;
|
|
36
|
+
static names(): { [key: string]: string } {
|
|
37
|
+
return {
|
|
38
|
+
DBClusterId: 'DBClusterId',
|
|
39
|
+
regionId: 'RegionId',
|
|
40
|
+
reportId: 'ReportId',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static types(): { [key: string]: any } {
|
|
45
|
+
return {
|
|
46
|
+
DBClusterId: 'string',
|
|
47
|
+
regionId: 'string',
|
|
48
|
+
reportId: 'number',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
validate() {
|
|
53
|
+
super.validate();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
constructor(map?: { [key: string]: any }) {
|
|
57
|
+
super(map);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CancelSqlPatternCompareReportResponseBody } from "./CancelSqlPatternCompareReportResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CancelSqlPatternCompareReportResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CancelSqlPatternCompareReportResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CancelSqlPatternCompareReportResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CancelSqlPatternCompareReportResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The time when the report was first canceled. The time is in UTC in the yyyy-MM-ddTHH:mmZ format.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 2026-09-08T01:06Z
|
|
12
|
+
*/
|
|
13
|
+
cancelTime?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Indicates whether the report is canceled. The value true is returned when the report is successfully canceled or canceled again.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* true
|
|
20
|
+
*/
|
|
21
|
+
canceled?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The SQL Pattern comparison report ID.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 1001
|
|
28
|
+
*/
|
|
29
|
+
reportId?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The request ID.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 9A1B2C3D-4E5F-6789-ABCD-0123456789AB
|
|
36
|
+
*/
|
|
37
|
+
requestId?: string;
|
|
38
|
+
static names(): { [key: string]: string } {
|
|
39
|
+
return {
|
|
40
|
+
cancelTime: 'CancelTime',
|
|
41
|
+
canceled: 'Canceled',
|
|
42
|
+
reportId: 'ReportId',
|
|
43
|
+
requestId: 'RequestId',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static types(): { [key: string]: any } {
|
|
48
|
+
return {
|
|
49
|
+
cancelTime: 'string',
|
|
50
|
+
canceled: 'boolean',
|
|
51
|
+
reportId: 'number',
|
|
52
|
+
requestId: 'string',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
validate() {
|
|
57
|
+
super.validate();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
constructor(map?: { [key: string]: any }) {
|
|
61
|
+
super(map);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateSqlPatternCompareReportRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The end time of time window 2. Specify the time in UTC in the yyyy-MM-ddTHH:mmZ or yyyy-MM-ddTHH:mm:ssZ format.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* 2026-09-08T01:00Z
|
|
14
|
+
*/
|
|
15
|
+
compareEndTime?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The start time of time window 2. Specify the time in UTC in the yyyy-MM-ddTHH:mmZ or yyyy-MM-ddTHH:mm:ssZ format.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* 2026-09-08T00:00Z
|
|
24
|
+
*/
|
|
25
|
+
compareStartTime?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* The ID of the AnalyticDB for MySQL cluster.
|
|
29
|
+
*
|
|
30
|
+
* This parameter is required.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* am-2ze1234567890****
|
|
34
|
+
*/
|
|
35
|
+
DBClusterId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The end time of time window 1. Specify the time in UTC in the yyyy-MM-ddTHH:mmZ or yyyy-MM-ddTHH:mm:ssZ format.
|
|
39
|
+
*
|
|
40
|
+
* This parameter is required.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* 2026-09-07T01:00Z
|
|
44
|
+
*/
|
|
45
|
+
endTime?: string;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The report type. Valid values:
|
|
49
|
+
*
|
|
50
|
+
* - `NEW`: Patterns that are new in time window 2.
|
|
51
|
+
* - `CHANGED`: Patterns that exist in both time windows and have an increased average value in at least one metric.
|
|
52
|
+
*
|
|
53
|
+
* This parameter is required.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* CHANGED
|
|
57
|
+
*/
|
|
58
|
+
patternType?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* The region ID of the instance.
|
|
62
|
+
*
|
|
63
|
+
* This parameter is required.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* cn-beijing
|
|
67
|
+
*/
|
|
68
|
+
regionId?: string;
|
|
69
|
+
/**
|
|
70
|
+
* @remarks
|
|
71
|
+
* The start time of time window 1. Specify the time in UTC in the yyyy-MM-ddTHH:mmZ or yyyy-MM-ddTHH:mm:ssZ format.
|
|
72
|
+
*
|
|
73
|
+
* This parameter is required.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* 2026-09-07T00:00Z
|
|
77
|
+
*/
|
|
78
|
+
startTime?: string;
|
|
79
|
+
static names(): { [key: string]: string } {
|
|
80
|
+
return {
|
|
81
|
+
compareEndTime: 'CompareEndTime',
|
|
82
|
+
compareStartTime: 'CompareStartTime',
|
|
83
|
+
DBClusterId: 'DBClusterId',
|
|
84
|
+
endTime: 'EndTime',
|
|
85
|
+
patternType: 'PatternType',
|
|
86
|
+
regionId: 'RegionId',
|
|
87
|
+
startTime: 'StartTime',
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
static types(): { [key: string]: any } {
|
|
92
|
+
return {
|
|
93
|
+
compareEndTime: 'string',
|
|
94
|
+
compareStartTime: 'string',
|
|
95
|
+
DBClusterId: 'string',
|
|
96
|
+
endTime: 'string',
|
|
97
|
+
patternType: 'string',
|
|
98
|
+
regionId: 'string',
|
|
99
|
+
startTime: 'string',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
validate() {
|
|
104
|
+
super.validate();
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
constructor(map?: { [key: string]: any }) {
|
|
108
|
+
super(map);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CreateSqlPatternCompareReportResponseBody } from "./CreateSqlPatternCompareReportResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CreateSqlPatternCompareReportResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CreateSqlPatternCompareReportResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CreateSqlPatternCompareReportResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CreateSqlPatternCompareReportResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The ID of the created report. This value only indicates that the request has been accepted.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 1001
|
|
12
|
+
*/
|
|
13
|
+
reportId?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The request ID.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 9A1B2C3D-4E5F-6789-ABCD-0123456789AB
|
|
20
|
+
*/
|
|
21
|
+
requestId?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
reportId: 'ReportId',
|
|
25
|
+
requestId: 'RequestId',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
reportId: 'number',
|
|
32
|
+
requestId: 'string',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeSqlPatternCompareReportRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The average change rate filter range for CHANGED reports. The format is `left~right`, where values are expressed as percentages and the interval is left-exclusive and right-inclusive. Examples:
|
|
9
|
+
*
|
|
10
|
+
* - `100~500`: greater than 100% and less than or equal to 500%.
|
|
11
|
+
* - `100~`: greater than 100% with no upper limit.
|
|
12
|
+
*
|
|
13
|
+
* > - The left boundary is required and must be no less than 0. The right boundary must be no less than the left boundary.
|
|
14
|
+
* > - This parameter is ignored for NEW reports.
|
|
15
|
+
* > - When the time window 1 metric value is 0 and the time window 2 value is greater than 0, the Pattern is classified as zero-baseline growth and is categorized as `SEVERE` (significant change). To exclude such Patterns, set an upper limit for the change rate.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* 100~500
|
|
19
|
+
*/
|
|
20
|
+
changeRate?: string;
|
|
21
|
+
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* The ID of the AnalyticDB for MySQL instance.
|
|
24
|
+
*
|
|
25
|
+
* This parameter is required.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* am-2ze1234567890****
|
|
29
|
+
*/
|
|
30
|
+
DBClusterId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* Specifies whether to return the parameterized SQL Pattern text. Valid values:
|
|
34
|
+
*
|
|
35
|
+
* - `true`: Returns the Pattern text.
|
|
36
|
+
* - `false`: Does not return the Pattern text, which reduces the response size.
|
|
37
|
+
*
|
|
38
|
+
* Default value: `true`.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* true
|
|
42
|
+
*/
|
|
43
|
+
includePattern?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The analysis metric. Valid values:
|
|
47
|
+
*
|
|
48
|
+
* - `QUERY_COUNT`: the number of query executions.
|
|
49
|
+
* - `CPU_COST`: the CPU consumption.
|
|
50
|
+
* - `SHUFFLE_SIZE`: the amount of shuffle data.
|
|
51
|
+
* - `PEAK_MEMORY`: the peak memory consumption.
|
|
52
|
+
* - `SCAN_SIZE`: the amount of scanned data.
|
|
53
|
+
*
|
|
54
|
+
* This parameter is required.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* CPU_COST
|
|
58
|
+
*/
|
|
59
|
+
metricType?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* Sorts the query results by a specified field. The value is a JSON array string, such as `[{"Field":"Time2SumValue","Type":"Desc"}]`. The array can contain only one object. Parameters:
|
|
63
|
+
*
|
|
64
|
+
* - `Field`: the sort field. This parameter is case-sensitive. Valid values:
|
|
65
|
+
* - NEW report: `Time2SumValue`, `Time2AvgValue`, `Time2MaxValue`.
|
|
66
|
+
* - CHANGED report: `AvgChangeRatePercent`, `AvgTime1Value`, `AvgTime2Value`, `SumChangeRatePercent`, `SumTime1Value`, `SumTime2Value`, `MaxChangeRatePercent`, `MaxTime1Value`, `MaxTime2Value`.
|
|
67
|
+
* - All report types and analysis metrics: `AvgRt`, `MaxRt`.
|
|
68
|
+
* - `QUERY_COUNT`: `TotalQueryTime`.
|
|
69
|
+
* - `CPU_COST`: `QueryCount`, `AvgPlanningTime`, `MaxPlanningTime`, `AvgExecutionTime`, `MaxExecutionTime`.
|
|
70
|
+
* - `SHUFFLE_SIZE`, `PEAK_MEMORY`: `QueryCount`.
|
|
71
|
+
* - `SCAN_SIZE`: `QueryCount`, `TotalScanCost`.
|
|
72
|
+
* - `Type`: the sort order. This parameter is case-insensitive. Valid values:
|
|
73
|
+
* - `Asc`: ascending order.
|
|
74
|
+
* - `Desc`: descending order.
|
|
75
|
+
*
|
|
76
|
+
* > - NEW reports are sorted by `Time2SumValue` in descending order by default.
|
|
77
|
+
* > - CHANGED reports are sorted by `AvgChangeRatePercent` in descending order by default.
|
|
78
|
+
* > - The value of `Field` must be applicable to the current report type and `MetricType`.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* [{"Field":"AvgChangeRatePercent","Type":"Desc"}]
|
|
82
|
+
*/
|
|
83
|
+
order?: string;
|
|
84
|
+
/**
|
|
85
|
+
* @remarks
|
|
86
|
+
* The page number. Pages start from page 1.
|
|
87
|
+
*
|
|
88
|
+
* Default value: 1.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* 1
|
|
92
|
+
*/
|
|
93
|
+
pageNumber?: number;
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* The number of entries per page. Valid values: 1 to 100.
|
|
97
|
+
*
|
|
98
|
+
* Default value: 50.
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* 50
|
|
102
|
+
*/
|
|
103
|
+
pageSize?: number;
|
|
104
|
+
/**
|
|
105
|
+
* @remarks
|
|
106
|
+
* The region ID of the instance.
|
|
107
|
+
*
|
|
108
|
+
* This parameter is required.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* cn-beijing
|
|
112
|
+
*/
|
|
113
|
+
regionId?: string;
|
|
114
|
+
/**
|
|
115
|
+
* @remarks
|
|
116
|
+
* The ID of the SQL Pattern comparison report.
|
|
117
|
+
*
|
|
118
|
+
* This parameter is required.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* 1001
|
|
122
|
+
*/
|
|
123
|
+
reportId?: number;
|
|
124
|
+
static names(): { [key: string]: string } {
|
|
125
|
+
return {
|
|
126
|
+
changeRate: 'ChangeRate',
|
|
127
|
+
DBClusterId: 'DBClusterId',
|
|
128
|
+
includePattern: 'IncludePattern',
|
|
129
|
+
metricType: 'MetricType',
|
|
130
|
+
order: 'Order',
|
|
131
|
+
pageNumber: 'PageNumber',
|
|
132
|
+
pageSize: 'PageSize',
|
|
133
|
+
regionId: 'RegionId',
|
|
134
|
+
reportId: 'ReportId',
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
static types(): { [key: string]: any } {
|
|
139
|
+
return {
|
|
140
|
+
changeRate: 'string',
|
|
141
|
+
DBClusterId: 'string',
|
|
142
|
+
includePattern: 'boolean',
|
|
143
|
+
metricType: 'string',
|
|
144
|
+
order: 'string',
|
|
145
|
+
pageNumber: 'number',
|
|
146
|
+
pageSize: 'number',
|
|
147
|
+
regionId: 'string',
|
|
148
|
+
reportId: 'number',
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
validate() {
|
|
153
|
+
super.validate();
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
constructor(map?: { [key: string]: any }) {
|
|
157
|
+
super(map);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeSqlPatternCompareReportResponseBody } from "./DescribeSqlPatternCompareReportResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeSqlPatternCompareReportResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeSqlPatternCompareReportResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DescribeSqlPatternCompareReportResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|