@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,287 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ItemsMetricValuesValue } from "./ItemsMetricValuesValue";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeSqlPatternCompareReportResponseBodyItems extends $dara.Model {
|
|
7
|
+
/**
|
|
8
|
+
* @remarks
|
|
9
|
+
* The display string of the average execution duration for Time 2, in seconds. This field is returned only for the CPU_COST dimension.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* 0.4s
|
|
13
|
+
*/
|
|
14
|
+
avgExecutionTime?: string;
|
|
15
|
+
/**
|
|
16
|
+
* @remarks
|
|
17
|
+
* The display string of the average planning duration for Time 2, in seconds. This field is returned only for the CPU_COST dimension.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* 0.1s
|
|
21
|
+
*/
|
|
22
|
+
avgPlanningTime?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @remarks
|
|
25
|
+
* The display string of the average query response time for Time 2, in seconds. This field is returned for all analysis dimensions.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* 0.5s
|
|
29
|
+
*/
|
|
30
|
+
avgRt?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* The display string of the maximum execution duration for Time 2, in seconds. This field is returned only for the CPU_COST dimension.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* 1.8s
|
|
37
|
+
*/
|
|
38
|
+
maxExecutionTime?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* The display string of the maximum planning duration for Time 2, in seconds. This field is returned only for the CPU_COST dimension.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* 0.2s
|
|
45
|
+
*/
|
|
46
|
+
maxPlanningTime?: string;
|
|
47
|
+
/**
|
|
48
|
+
* @remarks
|
|
49
|
+
* The display string of the maximum query response time for Time 2, in seconds. This field is returned for all analysis dimensions.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* 2s
|
|
53
|
+
*/
|
|
54
|
+
maxRt?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* The primary metric mapping for the current analysis dimension. Valid keys:
|
|
58
|
+
*
|
|
59
|
+
* - `QUERY_COUNT`: the number of query executions.
|
|
60
|
+
* - `CPU_COST`: the CPU consumption.
|
|
61
|
+
* - `SHUFFLE_SIZE`: the shuffle data volume.
|
|
62
|
+
* - `PEAK_MEMORY`: the peak memory consumption.
|
|
63
|
+
* - `SCAN_SIZE`: the scan data volume.
|
|
64
|
+
*
|
|
65
|
+
* > Each result contains only one key that matches the `MetricType` request parameter.
|
|
66
|
+
*/
|
|
67
|
+
metricValues?: { [key: string]: ItemsMetricValuesValue };
|
|
68
|
+
/**
|
|
69
|
+
* @remarks
|
|
70
|
+
* The parameterized SQL Pattern text. This field is empty or not returned when IncludePattern is set to false. When the text is unavailable, a prompt containing a hash identifier may be returned.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* SELECT * FROM orders WHERE order_id = ?
|
|
74
|
+
*/
|
|
75
|
+
pattern?: string;
|
|
76
|
+
/**
|
|
77
|
+
* @remarks
|
|
78
|
+
* The number of query executions for Time 2, in count. This field is returned for the CPU_COST, SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE dimensions.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* 120
|
|
82
|
+
*/
|
|
83
|
+
queryCount?: number;
|
|
84
|
+
/**
|
|
85
|
+
* @remarks
|
|
86
|
+
* The display string of the number of query executions for Time 2. The applicable scope is the same as QueryCount.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* 120 times
|
|
90
|
+
*/
|
|
91
|
+
queryCountDisplayValue?: string;
|
|
92
|
+
/**
|
|
93
|
+
* @remarks
|
|
94
|
+
* The global sequence number in the current filtered and sorted results, starting from 1 and numbered continuously across pages.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* 1
|
|
98
|
+
*/
|
|
99
|
+
rank?: number;
|
|
100
|
+
/**
|
|
101
|
+
* @remarks
|
|
102
|
+
* The change level for the current analysis dimension. Valid values:
|
|
103
|
+
*
|
|
104
|
+
* - `NEW`: A new Pattern. Returned only for NEW reports.
|
|
105
|
+
* - `SLIGHT`: A slight change. The average change rate is in the range of (0%, 20%].
|
|
106
|
+
* - `MODERATE`: A moderate change. The average change rate is in the range of (20%, 50%].
|
|
107
|
+
* - `HIGH`: A high change. The average change rate is in the range of (50%, 100%].
|
|
108
|
+
* - `SEVERE`: A severe change. The average change rate is greater than 100%, or the change represents zero-baseline growth.
|
|
109
|
+
*
|
|
110
|
+
* > The change level only indicates the magnitude of metric growth and cannot be used alone to determine the cause of a fault.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* SEVERE
|
|
114
|
+
*/
|
|
115
|
+
riskLevel?: string;
|
|
116
|
+
/**
|
|
117
|
+
* @remarks
|
|
118
|
+
* The hash identifier of the SQL Pattern, returned as a string. Store and pass this value as a string to avoid precision loss caused by numeric conversion.
|
|
119
|
+
*
|
|
120
|
+
* @example
|
|
121
|
+
* 1234567890123456789
|
|
122
|
+
*/
|
|
123
|
+
sqlPatternHash?: string;
|
|
124
|
+
/**
|
|
125
|
+
* @remarks
|
|
126
|
+
* The display string of the total query duration for Time 2, in seconds. This field is returned only for the QUERY_COUNT dimension.
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* 60s
|
|
130
|
+
*/
|
|
131
|
+
totalQueryTime?: string;
|
|
132
|
+
/**
|
|
133
|
+
* @remarks
|
|
134
|
+
* The display string of the total scan duration for Time 2, in seconds. This field is returned only for the SCAN_SIZE dimension.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* 12s
|
|
138
|
+
*/
|
|
139
|
+
totalScanCost?: string;
|
|
140
|
+
static names(): { [key: string]: string } {
|
|
141
|
+
return {
|
|
142
|
+
avgExecutionTime: 'AvgExecutionTime',
|
|
143
|
+
avgPlanningTime: 'AvgPlanningTime',
|
|
144
|
+
avgRt: 'AvgRt',
|
|
145
|
+
maxExecutionTime: 'MaxExecutionTime',
|
|
146
|
+
maxPlanningTime: 'MaxPlanningTime',
|
|
147
|
+
maxRt: 'MaxRt',
|
|
148
|
+
metricValues: 'MetricValues',
|
|
149
|
+
pattern: 'Pattern',
|
|
150
|
+
queryCount: 'QueryCount',
|
|
151
|
+
queryCountDisplayValue: 'QueryCountDisplayValue',
|
|
152
|
+
rank: 'Rank',
|
|
153
|
+
riskLevel: 'RiskLevel',
|
|
154
|
+
sqlPatternHash: 'SqlPatternHash',
|
|
155
|
+
totalQueryTime: 'TotalQueryTime',
|
|
156
|
+
totalScanCost: 'TotalScanCost',
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
static types(): { [key: string]: any } {
|
|
161
|
+
return {
|
|
162
|
+
avgExecutionTime: 'string',
|
|
163
|
+
avgPlanningTime: 'string',
|
|
164
|
+
avgRt: 'string',
|
|
165
|
+
maxExecutionTime: 'string',
|
|
166
|
+
maxPlanningTime: 'string',
|
|
167
|
+
maxRt: 'string',
|
|
168
|
+
metricValues: { 'type': 'map', 'keyType': 'string', 'valueType': ItemsMetricValuesValue },
|
|
169
|
+
pattern: 'string',
|
|
170
|
+
queryCount: 'number',
|
|
171
|
+
queryCountDisplayValue: 'string',
|
|
172
|
+
rank: 'number',
|
|
173
|
+
riskLevel: 'string',
|
|
174
|
+
sqlPatternHash: 'string',
|
|
175
|
+
totalQueryTime: 'string',
|
|
176
|
+
totalScanCost: 'string',
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
validate() {
|
|
181
|
+
if(this.metricValues) {
|
|
182
|
+
$dara.Model.validateMap(this.metricValues);
|
|
183
|
+
}
|
|
184
|
+
super.validate();
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
constructor(map?: { [key: string]: any }) {
|
|
188
|
+
super(map);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export class DescribeSqlPatternCompareReportResponseBody extends $dara.Model {
|
|
193
|
+
/**
|
|
194
|
+
* @remarks
|
|
195
|
+
* The Pattern details on the current page. An empty array is returned if no results match the conditions.
|
|
196
|
+
*/
|
|
197
|
+
items?: DescribeSqlPatternCompareReportResponseBodyItems[];
|
|
198
|
+
/**
|
|
199
|
+
* @remarks
|
|
200
|
+
* The analysis metric. Valid values:
|
|
201
|
+
*
|
|
202
|
+
* - `QUERY_COUNT`: the number of query executions.
|
|
203
|
+
* - `CPU_COST`: the CPU consumption.
|
|
204
|
+
* - `SHUFFLE_SIZE`: the amount of shuffle data.
|
|
205
|
+
* - `PEAK_MEMORY`: the peak memory consumption.
|
|
206
|
+
* - `SCAN_SIZE`: the amount of scanned data.
|
|
207
|
+
*
|
|
208
|
+
* @example
|
|
209
|
+
* CPU_COST
|
|
210
|
+
*/
|
|
211
|
+
metricType?: string;
|
|
212
|
+
/**
|
|
213
|
+
* @remarks
|
|
214
|
+
* The page number of the returned page, starting from 1.
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* 1
|
|
218
|
+
*/
|
|
219
|
+
pageNumber?: number;
|
|
220
|
+
/**
|
|
221
|
+
* @remarks
|
|
222
|
+
* The maximum number of entries returned per page for this query.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* 50
|
|
226
|
+
*/
|
|
227
|
+
pageSize?: number;
|
|
228
|
+
/**
|
|
229
|
+
* @remarks
|
|
230
|
+
* The ID of the SQL Pattern comparison report.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* 1001
|
|
234
|
+
*/
|
|
235
|
+
reportId?: number;
|
|
236
|
+
/**
|
|
237
|
+
* @remarks
|
|
238
|
+
* The request ID.
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* 9A1B2C3D-4E5F-6789-ABCD-0123456789AB
|
|
242
|
+
*/
|
|
243
|
+
requestId?: string;
|
|
244
|
+
/**
|
|
245
|
+
* @remarks
|
|
246
|
+
* The total number of Patterns that match the current report, analysis dimension, and change rate filter conditions. This is not the number of entries on the current page.
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* 1
|
|
250
|
+
*/
|
|
251
|
+
totalCount?: number;
|
|
252
|
+
static names(): { [key: string]: string } {
|
|
253
|
+
return {
|
|
254
|
+
items: 'Items',
|
|
255
|
+
metricType: 'MetricType',
|
|
256
|
+
pageNumber: 'PageNumber',
|
|
257
|
+
pageSize: 'PageSize',
|
|
258
|
+
reportId: 'ReportId',
|
|
259
|
+
requestId: 'RequestId',
|
|
260
|
+
totalCount: 'TotalCount',
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
static types(): { [key: string]: any } {
|
|
265
|
+
return {
|
|
266
|
+
items: { 'type': 'array', 'itemType': DescribeSqlPatternCompareReportResponseBodyItems },
|
|
267
|
+
metricType: 'string',
|
|
268
|
+
pageNumber: 'number',
|
|
269
|
+
pageSize: 'number',
|
|
270
|
+
reportId: 'number',
|
|
271
|
+
requestId: 'string',
|
|
272
|
+
totalCount: 'number',
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
validate() {
|
|
277
|
+
if(Array.isArray(this.items)) {
|
|
278
|
+
$dara.Model.validateArray(this.items);
|
|
279
|
+
}
|
|
280
|
+
super.validate();
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
constructor(map?: { [key: string]: any }) {
|
|
284
|
+
super(map);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeSqlPatternCompareReportsRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The ID of the AnalyticDB for MySQL instance.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* am-2ze1234567890****
|
|
14
|
+
*/
|
|
15
|
+
DBClusterId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The number of rows per page for token-based pagination. Valid values: 1 to 100.
|
|
19
|
+
*
|
|
20
|
+
* Default value: 50.
|
|
21
|
+
*
|
|
22
|
+
* > - When you use `NextToken` for pagination, keep this parameter unchanged.
|
|
23
|
+
* > - This parameter does not take effect when you use `PageNumber` and `PageSize` for pagination.
|
|
24
|
+
* > - We recommend that you use `PageNumber` and `PageSize` for pagination.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 50
|
|
28
|
+
*/
|
|
29
|
+
maxResults?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The token for the next page.
|
|
33
|
+
*
|
|
34
|
+
* > - Do not specify this parameter for the first query. For subsequent queries, pass in the `NextToken` value returned by the previous query.
|
|
35
|
+
* > - Do not use this parameter together with `PageNumber` or `PageSize`.
|
|
36
|
+
* > - Use `PageNumber` and `PageSize` for pagination.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* djE6Mjo1MA
|
|
40
|
+
*/
|
|
41
|
+
nextToken?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @remarks
|
|
44
|
+
* Sorts the query results by a specified field. The value is a JSON array string, for example, `[{"Field":"CreatedAt","Type":"Desc"}]`. The array can contain only one object. Fields:
|
|
45
|
+
*
|
|
46
|
+
* - `Field`: the field by which to sort. Valid values:
|
|
47
|
+
* - `CreatedAt`: the time when the report was created.
|
|
48
|
+
* - `StartTime`: the start time of time range 1.
|
|
49
|
+
* - `CompareStartTime`: the start time of time range 2.
|
|
50
|
+
* - `Type`: the sort order. This value is case-insensitive. Valid values:
|
|
51
|
+
* - `Asc`: ascending order.
|
|
52
|
+
* - `Desc`: descending order.
|
|
53
|
+
*
|
|
54
|
+
* > If you do not specify this parameter, the results are sorted by `CreatedAt` in descending order by default.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* [{"Field":"CreatedAt","Type":"Desc"}]
|
|
58
|
+
*/
|
|
59
|
+
order?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* The page number. Pages start from 1.
|
|
63
|
+
*
|
|
64
|
+
* Default value: 1.
|
|
65
|
+
*
|
|
66
|
+
* > Use this parameter together with `PageSize`. If you specify this parameter, `NextToken` must be empty.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* 2
|
|
70
|
+
*/
|
|
71
|
+
pageNumber?: number;
|
|
72
|
+
/**
|
|
73
|
+
* @remarks
|
|
74
|
+
* The number of rows per page. Valid values: 1 to 100.
|
|
75
|
+
*
|
|
76
|
+
* Default value: 50.
|
|
77
|
+
*
|
|
78
|
+
* > Use this parameter together with `PageNumber`. If you specify this parameter, `NextToken` must be empty.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* 50
|
|
82
|
+
*/
|
|
83
|
+
pageSize?: number;
|
|
84
|
+
/**
|
|
85
|
+
* @remarks
|
|
86
|
+
* The region ID of the instance.
|
|
87
|
+
*
|
|
88
|
+
* This parameter is required.
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* cn-beijing
|
|
92
|
+
*/
|
|
93
|
+
regionId?: string;
|
|
94
|
+
static names(): { [key: string]: string } {
|
|
95
|
+
return {
|
|
96
|
+
DBClusterId: 'DBClusterId',
|
|
97
|
+
maxResults: 'MaxResults',
|
|
98
|
+
nextToken: 'NextToken',
|
|
99
|
+
order: 'Order',
|
|
100
|
+
pageNumber: 'PageNumber',
|
|
101
|
+
pageSize: 'PageSize',
|
|
102
|
+
regionId: 'RegionId',
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
static types(): { [key: string]: any } {
|
|
107
|
+
return {
|
|
108
|
+
DBClusterId: 'string',
|
|
109
|
+
maxResults: 'number',
|
|
110
|
+
nextToken: 'string',
|
|
111
|
+
order: 'string',
|
|
112
|
+
pageNumber: 'number',
|
|
113
|
+
pageSize: 'number',
|
|
114
|
+
regionId: 'string',
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
validate() {
|
|
119
|
+
super.validate();
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
constructor(map?: { [key: string]: any }) {
|
|
123
|
+
super(map);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeSqlPatternCompareReportsResponseBody } from "./DescribeSqlPatternCompareReportsResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeSqlPatternCompareReportsResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeSqlPatternCompareReportsResponseBody;
|
|
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: DescribeSqlPatternCompareReportsResponseBody,
|
|
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,246 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeSqlPatternCompareReportsResponseBodyItems extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Indicates whether the report can be canceled. The value is true when the report is in the PENDING or RUNNING state.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* false
|
|
12
|
+
*/
|
|
13
|
+
cancelAvailable?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The end time of time range 2. The time is in the yyyy-MM-ddTHH:mmZ UTC format.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 2026-09-08T01:00Z
|
|
20
|
+
*/
|
|
21
|
+
compareEndTime?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The start time of time range 2. The time is in the yyyy-MM-ddTHH:mmZ UTC format.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 2026-09-08T00:00Z
|
|
28
|
+
*/
|
|
29
|
+
compareStartTime?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The time when the report was created. The time is in the yyyy-MM-ddTHH:mmZ UTC format.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 2026-09-08T01:05Z
|
|
36
|
+
*/
|
|
37
|
+
createdAt?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* Indicates whether report details can be queried. The value is true when the report is in the SUCCESS state.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* true
|
|
44
|
+
*/
|
|
45
|
+
detailEnabled?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The end time of time range 1. The time is in the yyyy-MM-ddTHH:mmZ UTC format.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* 2026-09-07T01:00Z
|
|
52
|
+
*/
|
|
53
|
+
endTime?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The ID of the SQL Pattern comparison report.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* 1001
|
|
60
|
+
*/
|
|
61
|
+
reportId?: number;
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The report type. Valid values:
|
|
65
|
+
*
|
|
66
|
+
* - `NEW`: new patterns.
|
|
67
|
+
* - `CHANGED`: patterns with increased metrics.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* CHANGED
|
|
71
|
+
*/
|
|
72
|
+
reportType?: string;
|
|
73
|
+
/**
|
|
74
|
+
* @remarks
|
|
75
|
+
* The name of the report type.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* Changed Pattern Comparison Report
|
|
79
|
+
*/
|
|
80
|
+
reportTypeName?: string;
|
|
81
|
+
/**
|
|
82
|
+
* @remarks
|
|
83
|
+
* The sequence number in the current sorted result. The value starts from 1.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* 1
|
|
87
|
+
*/
|
|
88
|
+
rowNumber?: number;
|
|
89
|
+
/**
|
|
90
|
+
* @remarks
|
|
91
|
+
* The start time of time range 1. The time is in the yyyy-MM-ddTHH:mmZ UTC format.
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* 2026-09-07T00:00Z
|
|
95
|
+
*/
|
|
96
|
+
startTime?: string;
|
|
97
|
+
/**
|
|
98
|
+
* @remarks
|
|
99
|
+
* The report status. Valid values:
|
|
100
|
+
*
|
|
101
|
+
* - `PENDING`: waiting to be generated.
|
|
102
|
+
* - `RUNNING`: being generated.
|
|
103
|
+
* - `SUCCESS`: generated.
|
|
104
|
+
* - `FAILED`: failed to be generated.
|
|
105
|
+
* - `CANCELED`: canceled.
|
|
106
|
+
* - `EXPIRED`: expired.
|
|
107
|
+
*
|
|
108
|
+
* > The current list returns only reports in the `PENDING`, `RUNNING`, or `SUCCESS` state.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* SUCCESS
|
|
112
|
+
*/
|
|
113
|
+
status?: string;
|
|
114
|
+
static names(): { [key: string]: string } {
|
|
115
|
+
return {
|
|
116
|
+
cancelAvailable: 'CancelAvailable',
|
|
117
|
+
compareEndTime: 'CompareEndTime',
|
|
118
|
+
compareStartTime: 'CompareStartTime',
|
|
119
|
+
createdAt: 'CreatedAt',
|
|
120
|
+
detailEnabled: 'DetailEnabled',
|
|
121
|
+
endTime: 'EndTime',
|
|
122
|
+
reportId: 'ReportId',
|
|
123
|
+
reportType: 'ReportType',
|
|
124
|
+
reportTypeName: 'ReportTypeName',
|
|
125
|
+
rowNumber: 'RowNumber',
|
|
126
|
+
startTime: 'StartTime',
|
|
127
|
+
status: 'Status',
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
static types(): { [key: string]: any } {
|
|
132
|
+
return {
|
|
133
|
+
cancelAvailable: 'boolean',
|
|
134
|
+
compareEndTime: 'string',
|
|
135
|
+
compareStartTime: 'string',
|
|
136
|
+
createdAt: 'string',
|
|
137
|
+
detailEnabled: 'boolean',
|
|
138
|
+
endTime: 'string',
|
|
139
|
+
reportId: 'number',
|
|
140
|
+
reportType: 'string',
|
|
141
|
+
reportTypeName: 'string',
|
|
142
|
+
rowNumber: 'number',
|
|
143
|
+
startTime: 'string',
|
|
144
|
+
status: 'string',
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
validate() {
|
|
149
|
+
super.validate();
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
constructor(map?: { [key: string]: any }) {
|
|
153
|
+
super(map);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export class DescribeSqlPatternCompareReportsResponseBody extends $dara.Model {
|
|
158
|
+
/**
|
|
159
|
+
* @remarks
|
|
160
|
+
* The list of reports on the current page. An empty array is returned if no reports match the conditions.
|
|
161
|
+
*/
|
|
162
|
+
items?: DescribeSqlPatternCompareReportsResponseBodyItems[];
|
|
163
|
+
/**
|
|
164
|
+
* @remarks
|
|
165
|
+
* The number of rows per page used in this query.
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* 50
|
|
169
|
+
*/
|
|
170
|
+
maxResults?: number;
|
|
171
|
+
/**
|
|
172
|
+
* @remarks
|
|
173
|
+
* The token for the next page. An empty value indicates that no more pages are available.
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* djE6Mjo1MA
|
|
177
|
+
*/
|
|
178
|
+
nextToken?: string;
|
|
179
|
+
/**
|
|
180
|
+
* @remarks
|
|
181
|
+
* The page number used in this query. Pages start from 1.
|
|
182
|
+
*
|
|
183
|
+
* @example
|
|
184
|
+
* 2
|
|
185
|
+
*/
|
|
186
|
+
pageNumber?: number;
|
|
187
|
+
/**
|
|
188
|
+
* @remarks
|
|
189
|
+
* The number of rows per page used in this query.
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* 50
|
|
193
|
+
*/
|
|
194
|
+
pageSize?: number;
|
|
195
|
+
/**
|
|
196
|
+
* @remarks
|
|
197
|
+
* The request ID.
|
|
198
|
+
*
|
|
199
|
+
* @example
|
|
200
|
+
* 9A1B2C3D-4E5F-6789-ABCD-0123456789AB
|
|
201
|
+
*/
|
|
202
|
+
requestId?: string;
|
|
203
|
+
/**
|
|
204
|
+
* @remarks
|
|
205
|
+
* The total number of reports that match the conditions.
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* 51
|
|
209
|
+
*/
|
|
210
|
+
totalCount?: number;
|
|
211
|
+
static names(): { [key: string]: string } {
|
|
212
|
+
return {
|
|
213
|
+
items: 'Items',
|
|
214
|
+
maxResults: 'MaxResults',
|
|
215
|
+
nextToken: 'NextToken',
|
|
216
|
+
pageNumber: 'PageNumber',
|
|
217
|
+
pageSize: 'PageSize',
|
|
218
|
+
requestId: 'RequestId',
|
|
219
|
+
totalCount: 'TotalCount',
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
static types(): { [key: string]: any } {
|
|
224
|
+
return {
|
|
225
|
+
items: { 'type': 'array', 'itemType': DescribeSqlPatternCompareReportsResponseBodyItems },
|
|
226
|
+
maxResults: 'number',
|
|
227
|
+
nextToken: 'string',
|
|
228
|
+
pageNumber: 'number',
|
|
229
|
+
pageSize: 'number',
|
|
230
|
+
requestId: 'string',
|
|
231
|
+
totalCount: 'number',
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
validate() {
|
|
236
|
+
if(Array.isArray(this.items)) {
|
|
237
|
+
$dara.Model.validateArray(this.items);
|
|
238
|
+
}
|
|
239
|
+
super.validate();
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
constructor(map?: { [key: string]: any }) {
|
|
243
|
+
super(map);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|