@alicloud/adb20211201 5.4.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 +146 -2
- package/dist/client.js +308 -2
- 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 +24 -0
- package/dist/models/ListKnowledgeFilesRequest.js.map +1 -1
- package/dist/models/ListKnowledgeFilesResponseBody.d.ts +65 -0
- package/dist/models/ListKnowledgeFilesResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +19 -0
- package/dist/models/model.js +62 -24
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +342 -2
- 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 +24 -0
- package/src/models/ListKnowledgeFilesResponseBody.ts +65 -0
- package/src/models/model.ts +19 -0
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ItemsMetricValuesValueTime2 extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The sum of metric values across active query minute buckets for Time 2. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 180
|
|
12
|
+
*/
|
|
13
|
+
sumValue?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The display string of the total sum for Time 2, with the unit included.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 180s
|
|
20
|
+
*/
|
|
21
|
+
sumDisplayValue?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The average value across active query minute buckets for Time 2, calculated as the total sum divided by the number of minute buckets that contain queries for this Pattern. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 3
|
|
28
|
+
*/
|
|
29
|
+
avgValue?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The display string of the average value across active query minute buckets for Time 2, with the unit included.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 3s
|
|
36
|
+
*/
|
|
37
|
+
avgDisplayValue?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The maximum metric value in a single minute bucket for Time 2. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* 9
|
|
44
|
+
*/
|
|
45
|
+
maxValue?: number;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The display string of the peak value in a single minute bucket for Time 2, with the unit included.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* 9s
|
|
52
|
+
*/
|
|
53
|
+
maxDisplayValue?: string;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The percentage of this Pattern\\"s Time 2 total sum relative to the total sum of all results before dimension filtering in the current report. A value of 10 indicates 10%.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* 10
|
|
60
|
+
*/
|
|
61
|
+
sumRatioPercent?: number;
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The percentage of this Pattern\\"s Time 2 average value relative to the sum of average values across all Patterns before dimension filtering in the current report. A value of 10 indicates 10%.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* 10
|
|
68
|
+
*/
|
|
69
|
+
avgRatioPercent?: number;
|
|
70
|
+
static names(): { [key: string]: string } {
|
|
71
|
+
return {
|
|
72
|
+
sumValue: 'SumValue',
|
|
73
|
+
sumDisplayValue: 'SumDisplayValue',
|
|
74
|
+
avgValue: 'AvgValue',
|
|
75
|
+
avgDisplayValue: 'AvgDisplayValue',
|
|
76
|
+
maxValue: 'MaxValue',
|
|
77
|
+
maxDisplayValue: 'MaxDisplayValue',
|
|
78
|
+
sumRatioPercent: 'SumRatioPercent',
|
|
79
|
+
avgRatioPercent: 'AvgRatioPercent',
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static types(): { [key: string]: any } {
|
|
84
|
+
return {
|
|
85
|
+
sumValue: 'number',
|
|
86
|
+
sumDisplayValue: 'string',
|
|
87
|
+
avgValue: 'number',
|
|
88
|
+
avgDisplayValue: 'string',
|
|
89
|
+
maxValue: 'number',
|
|
90
|
+
maxDisplayValue: 'string',
|
|
91
|
+
sumRatioPercent: 'number',
|
|
92
|
+
avgRatioPercent: 'number',
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
validate() {
|
|
97
|
+
super.validate();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
constructor(map?: { [key: string]: any }) {
|
|
101
|
+
super(map);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export class ItemsMetricValuesValueAvg extends $dara.Model {
|
|
106
|
+
/**
|
|
107
|
+
* @remarks
|
|
108
|
+
* The change rate of the average value across active query minute buckets, calculated as (Time 2 value − Time 1 value) / Time 1 value × 100. A value of 200 indicates a 200% increase. When the Time 1 value is 0, a finite change rate cannot be calculated. This field may not be returned and must not be treated as 0%.
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* 200
|
|
112
|
+
*/
|
|
113
|
+
changeRatePercent?: number;
|
|
114
|
+
/**
|
|
115
|
+
* @remarks
|
|
116
|
+
* The average value across active query minute buckets for Time 1. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* 1
|
|
120
|
+
*/
|
|
121
|
+
time1Value?: number;
|
|
122
|
+
/**
|
|
123
|
+
* @remarks
|
|
124
|
+
* The display string of the average value across active query minute buckets for Time 1, with the unit included.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* 1s
|
|
128
|
+
*/
|
|
129
|
+
time1DisplayValue?: string;
|
|
130
|
+
/**
|
|
131
|
+
* @remarks
|
|
132
|
+
* The percentage of this Pattern\\"s Time 1 average value across active query minute buckets relative to the sum of the corresponding statistics for all results before dimension filtering in the current report. A value of 10 indicates 10%.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* 10
|
|
136
|
+
*/
|
|
137
|
+
time1RatioPercent?: number;
|
|
138
|
+
/**
|
|
139
|
+
* @remarks
|
|
140
|
+
* The average value across active query minute buckets for Time 2. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* 3
|
|
144
|
+
*/
|
|
145
|
+
time2Value?: number;
|
|
146
|
+
/**
|
|
147
|
+
* @remarks
|
|
148
|
+
* The display string of the average value across active query minute buckets for Time 2, with the unit included.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* 3s
|
|
152
|
+
*/
|
|
153
|
+
time2DisplayValue?: string;
|
|
154
|
+
/**
|
|
155
|
+
* @remarks
|
|
156
|
+
* The percentage of this Pattern\\"s Time 2 average value across active query minute buckets relative to the sum of the corresponding statistics for all results before dimension filtering in the current report. A value of 10 indicates 10%.
|
|
157
|
+
*
|
|
158
|
+
* @example
|
|
159
|
+
* 10
|
|
160
|
+
*/
|
|
161
|
+
time2RatioPercent?: number;
|
|
162
|
+
static names(): { [key: string]: string } {
|
|
163
|
+
return {
|
|
164
|
+
changeRatePercent: 'ChangeRatePercent',
|
|
165
|
+
time1Value: 'Time1Value',
|
|
166
|
+
time1DisplayValue: 'Time1DisplayValue',
|
|
167
|
+
time1RatioPercent: 'Time1RatioPercent',
|
|
168
|
+
time2Value: 'Time2Value',
|
|
169
|
+
time2DisplayValue: 'Time2DisplayValue',
|
|
170
|
+
time2RatioPercent: 'Time2RatioPercent',
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
static types(): { [key: string]: any } {
|
|
175
|
+
return {
|
|
176
|
+
changeRatePercent: 'number',
|
|
177
|
+
time1Value: 'number',
|
|
178
|
+
time1DisplayValue: 'string',
|
|
179
|
+
time1RatioPercent: 'number',
|
|
180
|
+
time2Value: 'number',
|
|
181
|
+
time2DisplayValue: 'string',
|
|
182
|
+
time2RatioPercent: 'number',
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
validate() {
|
|
187
|
+
super.validate();
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
constructor(map?: { [key: string]: any }) {
|
|
191
|
+
super(map);
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export class ItemsMetricValuesValueSum extends $dara.Model {
|
|
196
|
+
/**
|
|
197
|
+
* @remarks
|
|
198
|
+
* The change rate of the sum of metric values across active query minute buckets, calculated as (Time 2 value − Time 1 value) / Time 1 value × 100. A value of 200 indicates a 200% increase. When the Time 1 value is 0, a finite change rate cannot be calculated. This field may not be returned and must not be treated as 0%.
|
|
199
|
+
*
|
|
200
|
+
* @example
|
|
201
|
+
* 200
|
|
202
|
+
*/
|
|
203
|
+
changeRatePercent?: number;
|
|
204
|
+
/**
|
|
205
|
+
* @remarks
|
|
206
|
+
* The sum of metric values across active query minute buckets for Time 1. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
|
|
207
|
+
*
|
|
208
|
+
* @example
|
|
209
|
+
* 60
|
|
210
|
+
*/
|
|
211
|
+
time1Value?: number;
|
|
212
|
+
/**
|
|
213
|
+
* @remarks
|
|
214
|
+
* The display string of the sum of metric values across active query minute buckets for Time 1, with the unit included.
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* 60s
|
|
218
|
+
*/
|
|
219
|
+
time1DisplayValue?: string;
|
|
220
|
+
/**
|
|
221
|
+
* @remarks
|
|
222
|
+
* The percentage of this Pattern\\"s Time 1 sum of metric values across active query minute buckets relative to the sum of the corresponding statistics for all results before dimension filtering in the current report. A value of 10 indicates 10%.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* 10
|
|
226
|
+
*/
|
|
227
|
+
time1RatioPercent?: number;
|
|
228
|
+
/**
|
|
229
|
+
* @remarks
|
|
230
|
+
* The sum of metric values across active query minute buckets for Time 2. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
|
|
231
|
+
*
|
|
232
|
+
* @example
|
|
233
|
+
* 180
|
|
234
|
+
*/
|
|
235
|
+
time2Value?: number;
|
|
236
|
+
/**
|
|
237
|
+
* @remarks
|
|
238
|
+
* The display string of the sum of metric values across active query minute buckets for Time 2, with the unit included.
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* 180s
|
|
242
|
+
*/
|
|
243
|
+
time2DisplayValue?: string;
|
|
244
|
+
/**
|
|
245
|
+
* @remarks
|
|
246
|
+
* The percentage of this Pattern\\"s Time 2 sum of metric values across active query minute buckets relative to the sum of the corresponding statistics for all results before dimension filtering in the current report. A value of 10 indicates 10%.
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* 10
|
|
250
|
+
*/
|
|
251
|
+
time2RatioPercent?: number;
|
|
252
|
+
static names(): { [key: string]: string } {
|
|
253
|
+
return {
|
|
254
|
+
changeRatePercent: 'ChangeRatePercent',
|
|
255
|
+
time1Value: 'Time1Value',
|
|
256
|
+
time1DisplayValue: 'Time1DisplayValue',
|
|
257
|
+
time1RatioPercent: 'Time1RatioPercent',
|
|
258
|
+
time2Value: 'Time2Value',
|
|
259
|
+
time2DisplayValue: 'Time2DisplayValue',
|
|
260
|
+
time2RatioPercent: 'Time2RatioPercent',
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
static types(): { [key: string]: any } {
|
|
265
|
+
return {
|
|
266
|
+
changeRatePercent: 'number',
|
|
267
|
+
time1Value: 'number',
|
|
268
|
+
time1DisplayValue: 'string',
|
|
269
|
+
time1RatioPercent: 'number',
|
|
270
|
+
time2Value: 'number',
|
|
271
|
+
time2DisplayValue: 'string',
|
|
272
|
+
time2RatioPercent: 'number',
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
validate() {
|
|
277
|
+
super.validate();
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
constructor(map?: { [key: string]: any }) {
|
|
281
|
+
super(map);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export class ItemsMetricValuesValueMax extends $dara.Model {
|
|
286
|
+
/**
|
|
287
|
+
* @remarks
|
|
288
|
+
* The change rate of the peak value in a single minute bucket, calculated as (Time 2 value − Time 1 value) / Time 1 value × 100. A value of 200 indicates a 200% increase. When the Time 1 value is 0, a finite change rate cannot be calculated. This field may not be returned and must not be treated as 0%.
|
|
289
|
+
*
|
|
290
|
+
* @example
|
|
291
|
+
* 200
|
|
292
|
+
*/
|
|
293
|
+
changeRatePercent?: number;
|
|
294
|
+
/**
|
|
295
|
+
* @remarks
|
|
296
|
+
* The peak value in a single minute bucket for Time 1. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
|
|
297
|
+
*
|
|
298
|
+
* @example
|
|
299
|
+
* 3
|
|
300
|
+
*/
|
|
301
|
+
time1Value?: number;
|
|
302
|
+
/**
|
|
303
|
+
* @remarks
|
|
304
|
+
* The display string of the peak value in a single minute bucket for Time 1, with the unit included.
|
|
305
|
+
*
|
|
306
|
+
* @example
|
|
307
|
+
* 3s
|
|
308
|
+
*/
|
|
309
|
+
time1DisplayValue?: string;
|
|
310
|
+
/**
|
|
311
|
+
* @remarks
|
|
312
|
+
* The peak value in a single minute bucket for Time 2. The unit depends on MetricCode: count for QUERY_COUNT, seconds for CPU_COST, and GB (1 GB = 1024³ bytes) for SHUFFLE_SIZE, PEAK_MEMORY, and SCAN_SIZE.
|
|
313
|
+
*
|
|
314
|
+
* @example
|
|
315
|
+
* 9
|
|
316
|
+
*/
|
|
317
|
+
time2Value?: number;
|
|
318
|
+
/**
|
|
319
|
+
* @remarks
|
|
320
|
+
* The display string of the peak value in a single minute bucket for Time 2, with the unit included.
|
|
321
|
+
*
|
|
322
|
+
* @example
|
|
323
|
+
* 9s
|
|
324
|
+
*/
|
|
325
|
+
time2DisplayValue?: string;
|
|
326
|
+
static names(): { [key: string]: string } {
|
|
327
|
+
return {
|
|
328
|
+
changeRatePercent: 'ChangeRatePercent',
|
|
329
|
+
time1Value: 'Time1Value',
|
|
330
|
+
time1DisplayValue: 'Time1DisplayValue',
|
|
331
|
+
time2Value: 'Time2Value',
|
|
332
|
+
time2DisplayValue: 'Time2DisplayValue',
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
static types(): { [key: string]: any } {
|
|
337
|
+
return {
|
|
338
|
+
changeRatePercent: 'number',
|
|
339
|
+
time1Value: 'number',
|
|
340
|
+
time1DisplayValue: 'string',
|
|
341
|
+
time2Value: 'number',
|
|
342
|
+
time2DisplayValue: 'string',
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
validate() {
|
|
347
|
+
super.validate();
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
constructor(map?: { [key: string]: any }) {
|
|
351
|
+
super(map);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
export class ItemsMetricValuesValue extends $dara.Model {
|
|
356
|
+
/**
|
|
357
|
+
* @remarks
|
|
358
|
+
* The primary metric code, which matches the key in `MetricValues` and the `MetricType` request parameter. Valid values:
|
|
359
|
+
*
|
|
360
|
+
* - `QUERY_COUNT`: the number of query executions.
|
|
361
|
+
* - `CPU_COST`: the CPU consumption.
|
|
362
|
+
* - `SHUFFLE_SIZE`: the shuffle data volume.
|
|
363
|
+
* - `PEAK_MEMORY`: the peak memory consumption.
|
|
364
|
+
* - `SCAN_SIZE`: the scan data volume.
|
|
365
|
+
*
|
|
366
|
+
* @example
|
|
367
|
+
* CPU_COST
|
|
368
|
+
*/
|
|
369
|
+
metricCode?: string;
|
|
370
|
+
/**
|
|
371
|
+
* @remarks
|
|
372
|
+
* The primary metric name. The mapping is as follows:
|
|
373
|
+
*
|
|
374
|
+
* - `QUERY_COUNT`: `QueryCount`.
|
|
375
|
+
* - `CPU_COST`: `OperatorCost`.
|
|
376
|
+
* - `SHUFFLE_SIZE`: `ShuffleSize`.
|
|
377
|
+
* - `PEAK_MEMORY`: `PeakMemory`.
|
|
378
|
+
* - `SCAN_SIZE`: `ScanSize`.
|
|
379
|
+
*
|
|
380
|
+
* @example
|
|
381
|
+
* OperatorCost
|
|
382
|
+
*/
|
|
383
|
+
metricName?: string;
|
|
384
|
+
/**
|
|
385
|
+
* @remarks
|
|
386
|
+
* Indicates whether this is the primary metric for the current analysis dimension. The current value is true.
|
|
387
|
+
*
|
|
388
|
+
* @example
|
|
389
|
+
* true
|
|
390
|
+
*/
|
|
391
|
+
primary?: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* @remarks
|
|
394
|
+
* The aggregated result for Time 2 in the NEW report. This field is returned only for NEW reports.
|
|
395
|
+
*/
|
|
396
|
+
time2?: ItemsMetricValuesValueTime2;
|
|
397
|
+
/**
|
|
398
|
+
* @remarks
|
|
399
|
+
* The dual-window comparison of the average value across active query minute buckets for the CHANGED report. This field is returned only for CHANGED reports.
|
|
400
|
+
*/
|
|
401
|
+
avg?: ItemsMetricValuesValueAvg;
|
|
402
|
+
/**
|
|
403
|
+
* @remarks
|
|
404
|
+
* The dual-window comparison of the sum of metric values across active query minute buckets for the CHANGED report. This field is returned only for CHANGED reports.
|
|
405
|
+
*/
|
|
406
|
+
sum?: ItemsMetricValuesValueSum;
|
|
407
|
+
/**
|
|
408
|
+
* @remarks
|
|
409
|
+
* The dual-window comparison of the peak value in a single minute bucket for the CHANGED report. This field is returned only for CHANGED reports.
|
|
410
|
+
*/
|
|
411
|
+
max?: ItemsMetricValuesValueMax;
|
|
412
|
+
static names(): { [key: string]: string } {
|
|
413
|
+
return {
|
|
414
|
+
metricCode: 'MetricCode',
|
|
415
|
+
metricName: 'MetricName',
|
|
416
|
+
primary: 'Primary',
|
|
417
|
+
time2: 'Time2',
|
|
418
|
+
avg: 'Avg',
|
|
419
|
+
sum: 'Sum',
|
|
420
|
+
max: 'Max',
|
|
421
|
+
};
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
static types(): { [key: string]: any } {
|
|
425
|
+
return {
|
|
426
|
+
metricCode: 'string',
|
|
427
|
+
metricName: 'string',
|
|
428
|
+
primary: 'boolean',
|
|
429
|
+
time2: ItemsMetricValuesValueTime2,
|
|
430
|
+
avg: ItemsMetricValuesValueAvg,
|
|
431
|
+
sum: ItemsMetricValuesValueSum,
|
|
432
|
+
max: ItemsMetricValuesValueMax,
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
validate() {
|
|
437
|
+
if(this.time2 && typeof (this.time2 as any).validate === 'function') {
|
|
438
|
+
(this.time2 as any).validate();
|
|
439
|
+
}
|
|
440
|
+
if(this.avg && typeof (this.avg as any).validate === 'function') {
|
|
441
|
+
(this.avg as any).validate();
|
|
442
|
+
}
|
|
443
|
+
if(this.sum && typeof (this.sum as any).validate === 'function') {
|
|
444
|
+
(this.sum as any).validate();
|
|
445
|
+
}
|
|
446
|
+
if(this.max && typeof (this.max as any).validate === 'function') {
|
|
447
|
+
(this.max as any).validate();
|
|
448
|
+
}
|
|
449
|
+
super.validate();
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
constructor(map?: { [key: string]: any }) {
|
|
453
|
+
super(map);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
@@ -5,6 +5,8 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ListKnowledgeFilesRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* The ID of the AnalyticDB for MySQL instance.
|
|
9
|
+
*
|
|
8
10
|
* This parameter is required.
|
|
9
11
|
*
|
|
10
12
|
* @example
|
|
@@ -12,26 +14,48 @@ export class ListKnowledgeFilesRequest extends $dara.Model {
|
|
|
12
14
|
*/
|
|
13
15
|
DBClusterId?: string;
|
|
14
16
|
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The JSON string of the file ID array. A maximum of 200 positive integers are supported.
|
|
19
|
+
*
|
|
15
20
|
* @example
|
|
16
21
|
* [1001,1002,1003]
|
|
17
22
|
*/
|
|
18
23
|
fileIds?: string;
|
|
19
24
|
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* The page number, starting from 1. If this parameter is not specified, Ray uses a default value of 1.
|
|
27
|
+
*
|
|
20
28
|
* @example
|
|
21
29
|
* 1
|
|
22
30
|
*/
|
|
23
31
|
page?: string;
|
|
24
32
|
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* The number of entries per page. Valid values: 1 to 100. If this parameter is not specified, Ray uses a default value of 20.
|
|
35
|
+
*
|
|
25
36
|
* @example
|
|
26
37
|
* 20
|
|
27
38
|
*/
|
|
28
39
|
pageSize?: string;
|
|
29
40
|
/**
|
|
41
|
+
* @remarks
|
|
42
|
+
* The processing status. Valid values:
|
|
43
|
+
*
|
|
44
|
+
* - PENDING
|
|
45
|
+
* - PROCESSING
|
|
46
|
+
* - COMPLETED
|
|
47
|
+
* - FAILED
|
|
48
|
+
* - DUPLICATED
|
|
49
|
+
* - SKIPPED
|
|
50
|
+
*
|
|
30
51
|
* @example
|
|
31
52
|
* FAILED
|
|
32
53
|
*/
|
|
33
54
|
status?: string;
|
|
34
55
|
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* The stable ID of the authorized user. If this parameter is not specified, all files in the knowledge base can be queried.
|
|
58
|
+
*
|
|
35
59
|
* @example
|
|
36
60
|
* u123
|
|
37
61
|
*/
|
|
@@ -4,56 +4,93 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class ListKnowledgeFilesResponseBodyDataFiles extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The time when the file was added to the knowledge base.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* 2026-06-09 10:27:35
|
|
9
12
|
*/
|
|
10
13
|
createdAt?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The ID of the file.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* 137
|
|
14
20
|
*/
|
|
15
21
|
fileId?: number;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The size of the file, in bytes.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* 1024
|
|
19
28
|
*/
|
|
20
29
|
fileSizeBytes?: number;
|
|
21
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The Object Storage Service (OSS) URL of the file.
|
|
33
|
+
*
|
|
22
34
|
* @example
|
|
23
35
|
* oss://bucketName/path/to/file
|
|
24
36
|
*/
|
|
25
37
|
fileUrl?: string;
|
|
26
38
|
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The format of the file.
|
|
41
|
+
*
|
|
27
42
|
* @example
|
|
28
43
|
* mp4
|
|
29
44
|
*/
|
|
30
45
|
format?: string;
|
|
31
46
|
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* Indicates whether the file is a directory.
|
|
49
|
+
*
|
|
32
50
|
* @example
|
|
33
51
|
* false
|
|
34
52
|
*/
|
|
35
53
|
isDirectory?: boolean;
|
|
36
54
|
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The file_id of the content host.
|
|
57
|
+
*
|
|
37
58
|
* @example
|
|
38
59
|
* 122
|
|
39
60
|
*/
|
|
40
61
|
ownerFileId?: number;
|
|
41
62
|
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The total number of pages in the file, such as the number of pages in a PDF file.
|
|
65
|
+
*
|
|
42
66
|
* @example
|
|
43
67
|
* 2
|
|
44
68
|
*/
|
|
45
69
|
pageCount?: number;
|
|
46
70
|
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The processing message of the knowledge base file.
|
|
73
|
+
*
|
|
47
74
|
* @example
|
|
48
75
|
* successful
|
|
49
76
|
*/
|
|
50
77
|
processMessage?: string;
|
|
51
78
|
/**
|
|
79
|
+
* @remarks
|
|
80
|
+
* The status of the file in the knowledge base. Valid values:
|
|
81
|
+
*
|
|
82
|
+
* - Processing: The file is being processed.
|
|
83
|
+
*
|
|
84
|
+
* - Finished: The file has been processed.
|
|
85
|
+
*
|
|
52
86
|
* @example
|
|
53
87
|
* Finished
|
|
54
88
|
*/
|
|
55
89
|
processStatus?: string;
|
|
56
90
|
/**
|
|
91
|
+
* @remarks
|
|
92
|
+
* The time when the file was last updated.
|
|
93
|
+
*
|
|
57
94
|
* @example
|
|
58
95
|
* 2026-06-10 10:23:46
|
|
59
96
|
*/
|
|
@@ -100,28 +137,49 @@ export class ListKnowledgeFilesResponseBodyDataFiles extends $dara.Model {
|
|
|
100
137
|
}
|
|
101
138
|
|
|
102
139
|
export class ListKnowledgeFilesResponseBodyData extends $dara.Model {
|
|
140
|
+
/**
|
|
141
|
+
* @remarks
|
|
142
|
+
* The list of file information.
|
|
143
|
+
*/
|
|
103
144
|
files?: ListKnowledgeFilesResponseBodyDataFiles[];
|
|
104
145
|
/**
|
|
146
|
+
* @remarks
|
|
147
|
+
* The message returned by the request.
|
|
148
|
+
*
|
|
105
149
|
* @example
|
|
106
150
|
* Successful
|
|
107
151
|
*/
|
|
108
152
|
message?: string;
|
|
109
153
|
/**
|
|
154
|
+
* @remarks
|
|
155
|
+
* The current page number.
|
|
156
|
+
*
|
|
110
157
|
* @example
|
|
111
158
|
* 1
|
|
112
159
|
*/
|
|
113
160
|
page?: number;
|
|
114
161
|
/**
|
|
162
|
+
* @remarks
|
|
163
|
+
* The number of entries per page.
|
|
164
|
+
*
|
|
115
165
|
* @example
|
|
116
166
|
* 20
|
|
117
167
|
*/
|
|
118
168
|
pageSize?: number;
|
|
119
169
|
/**
|
|
170
|
+
* @remarks
|
|
171
|
+
* Indicates whether the request was successful. Valid values:
|
|
172
|
+
* - **true**: The request was successful.
|
|
173
|
+
* - **false**: The request failed.
|
|
174
|
+
*
|
|
120
175
|
* @example
|
|
121
176
|
* true
|
|
122
177
|
*/
|
|
123
178
|
success?: boolean;
|
|
124
179
|
/**
|
|
180
|
+
* @remarks
|
|
181
|
+
* The total number of entries.
|
|
182
|
+
*
|
|
125
183
|
* @example
|
|
126
184
|
* 100
|
|
127
185
|
*/
|
|
@@ -161,8 +219,15 @@ export class ListKnowledgeFilesResponseBodyData extends $dara.Model {
|
|
|
161
219
|
}
|
|
162
220
|
|
|
163
221
|
export class ListKnowledgeFilesResponseBody extends $dara.Model {
|
|
222
|
+
/**
|
|
223
|
+
* @remarks
|
|
224
|
+
* The returned data.
|
|
225
|
+
*/
|
|
164
226
|
data?: ListKnowledgeFilesResponseBodyData;
|
|
165
227
|
/**
|
|
228
|
+
* @remarks
|
|
229
|
+
* Id of the request
|
|
230
|
+
*
|
|
166
231
|
* @example
|
|
167
232
|
* 1AD222E9-E606-4A42-BF6D-8A4442913CEF
|
|
168
233
|
*/
|