tencentcloud-sdk-nodejs-wedata 4.0.374

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.
@@ -0,0 +1,338 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+
18
+ /**
19
+ * DescribeTaskInstances请求参数结构体
20
+ */
21
+ export interface DescribeTaskInstancesRequest {
22
+ /**
23
+ * 项目id
24
+ */
25
+ ProjectId: string
26
+
27
+ /**
28
+ * 页号,默认为1
29
+ */
30
+ PageNumber?: number
31
+
32
+ /**
33
+ * 页大小,默认为10,最大不超过200
34
+ */
35
+ PageSize?: number
36
+
37
+ /**
38
+ * 工作流id列表
39
+ */
40
+ WorkflowIdList?: Array<string>
41
+
42
+ /**
43
+ * 工作流名称列表,支持模糊搜索
44
+ */
45
+ WorkflowNameList?: Array<string>
46
+
47
+ /**
48
+ * 起始数据时间,格式yyyy-MM-dd HH:mm:ss
49
+ */
50
+ DateFrom?: string
51
+
52
+ /**
53
+ * 结束数据时间,格式yyyy-MM-dd HH:mm:ss
54
+ */
55
+ DateTo?: string
56
+
57
+ /**
58
+ * 任务id列表
59
+ */
60
+ TaskIdList?: Array<string>
61
+
62
+ /**
63
+ * 任务名称列表,支持模糊搜索
64
+ */
65
+ TaskNameList?: Array<string>
66
+
67
+ /**
68
+ * 责任人名称列表
69
+ */
70
+ InChargeList?: Array<string>
71
+
72
+ /**
73
+ * 任务类型码列表,26离线同步,30Python,31PySpark,32DLC,33Impala,34Hive SQL,35Shell,36Spark SQL,39Spark,40CDW PG,92MapReduce
74
+ */
75
+ TaskTypeIdList?: Array<number>
76
+
77
+ /**
78
+ * 实例状态列表,0等待事件,1等待上游,2等待运行,3运行中,4正在终止,5失败重试,6失败,7成功
79
+ */
80
+ StateList?: Array<string>
81
+
82
+ /**
83
+ * 周期类型列表,I分钟,H小时,D天,W周,M月,Y年,O一次性,C crontab
84
+ */
85
+ TaskCycleUnitList?: Array<string>
86
+
87
+ /**
88
+ * 实例类型,0补录实例,1周期实例,2非周期实例
89
+ */
90
+ InstanceType?: number
91
+
92
+ /**
93
+ * 排序字段信息列表,ScheduleDateTime / CostTime / StartTime / EndTime
94
+ */
95
+ OrderFields?: Array<OrderField>
96
+ }
97
+
98
+ /**
99
+ * 查询任务实例列表
100
+ */
101
+ export interface DescribeTaskInstancesData {
102
+ /**
103
+ * 实例列表
104
+ */
105
+ Items: Array<TaskInstanceInfo>
106
+
107
+ /**
108
+ * 总条数
109
+ */
110
+ TotalCount: number
111
+
112
+ /**
113
+ * 页号
114
+ */
115
+ PageNumber: number
116
+
117
+ /**
118
+ * 页大小
119
+ */
120
+ PageSize: number
121
+ }
122
+
123
+ /**
124
+ * 任务实例信息
125
+ */
126
+ export interface TaskInstanceInfo {
127
+ /**
128
+ * 任务Id
129
+ 注意:此字段可能返回 null,表示取不到有效值。
130
+ */
131
+ TaskId: string
132
+
133
+ /**
134
+ * 任务名称
135
+ 注意:此字段可能返回 null,表示取不到有效值。
136
+ */
137
+ TaskName: string
138
+
139
+ /**
140
+ * 工作流id
141
+ 注意:此字段可能返回 null,表示取不到有效值。
142
+ */
143
+ WorkflowId: string
144
+
145
+ /**
146
+ * 工作流名称
147
+ 注意:此字段可能返回 null,表示取不到有效值。
148
+ */
149
+ WorkflowName: string
150
+
151
+ /**
152
+ * 项目名称
153
+ 注意:此字段可能返回 null,表示取不到有效值。
154
+ */
155
+ ProjectName: string
156
+
157
+ /**
158
+ * 项目标识
159
+ 注意:此字段可能返回 null,表示取不到有效值。
160
+ */
161
+ ProjectIdent: string
162
+
163
+ /**
164
+ * 实例状态,0等待事件,1等待上游,2等待运行,3运行中,4正在终止,5失败重试,6失败,7成功
165
+ 注意:此字段可能返回 null,表示取不到有效值。
166
+ */
167
+ State: number
168
+
169
+ /**
170
+ * 任务类型id,26离线同步,30Python,31PySpark,32DLC,33Impala,34Hive SQL,35Shell,36Spark SQL,39Spark,40CDW PG,92MapReduce
171
+ 注意:此字段可能返回 null,表示取不到有效值。
172
+ */
173
+ TaskTypeId: number
174
+
175
+ /**
176
+ * 任务类型描述
177
+ 注意:此字段可能返回 null,表示取不到有效值。
178
+ */
179
+ TaskTypeDesc: string
180
+
181
+ /**
182
+ * 项目id
183
+ 注意:此字段可能返回 null,表示取不到有效值。
184
+ */
185
+ ProjectId: string
186
+
187
+ /**
188
+ * 文件夹名称
189
+ 注意:此字段可能返回 null,表示取不到有效值。
190
+ */
191
+ FolderName: string
192
+
193
+ /**
194
+ * 文件夹id
195
+ 注意:此字段可能返回 null,表示取不到有效值。
196
+ */
197
+ FolderId: string
198
+
199
+ /**
200
+ * 调度计划展示描述信息
201
+ 注意:此字段可能返回 null,表示取不到有效值。
202
+ */
203
+ SchedulerDesc: string
204
+
205
+ /**
206
+ * 负责人
207
+ 注意:此字段可能返回 null,表示取不到有效值。
208
+ */
209
+ InCharge: string
210
+
211
+ /**
212
+ * 调度周期类型,I分钟,H小时,D天,W周,M月,Y年,O一次性,C crontab
213
+ 注意:此字段可能返回 null,表示取不到有效值。
214
+ */
215
+ CycleType: string
216
+
217
+ /**
218
+ * 实例开始时间
219
+ 注意:此字段可能返回 null,表示取不到有效值。
220
+ */
221
+ StartTime: string
222
+
223
+ /**
224
+ * 实例结束时间
225
+ 注意:此字段可能返回 null,表示取不到有效值。
226
+ */
227
+ EndTime: string
228
+
229
+ /**
230
+ * 实例类型,0补录实例,1周期实例,2非周期实例
231
+ 注意:此字段可能返回 null,表示取不到有效值。
232
+ */
233
+ InstanceType: number
234
+
235
+ /**
236
+ * 最大重试次数
237
+ 注意:此字段可能返回 null,表示取不到有效值。
238
+ */
239
+ TryLimit: number
240
+
241
+ /**
242
+ * 当前重试次数
243
+ 注意:此字段可能返回 null,表示取不到有效值。
244
+ */
245
+ Tries: number
246
+
247
+ /**
248
+ * 计划调度时间
249
+ 注意:此字段可能返回 null,表示取不到有效值。
250
+ */
251
+ SchedulerDateTime: string
252
+
253
+ /**
254
+ * 运行耗时
255
+ 注意:此字段可能返回 null,表示取不到有效值。
256
+ */
257
+ CostTime: string
258
+ }
259
+
260
+ /**
261
+ * DescribeTaskInstances返回参数结构体
262
+ */
263
+ export interface DescribeTaskInstancesResponse {
264
+ /**
265
+ * 无
266
+ */
267
+ Data: DescribeTaskInstancesData
268
+
269
+ /**
270
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
271
+ */
272
+ RequestId?: string
273
+ }
274
+
275
+ /**
276
+ * 通用排序字段
277
+ */
278
+ export interface OrderField {
279
+ /**
280
+ * 排序字段名称
281
+ */
282
+ Name: string
283
+
284
+ /**
285
+ * 排序方向:ASC|DESC
286
+ */
287
+ Direction: string
288
+ }
289
+
290
+ /**
291
+ * DescribeRelatedInstances请求参数结构体
292
+ */
293
+ export interface DescribeRelatedInstancesRequest {
294
+ /**
295
+ * 项目id
296
+ */
297
+ ProjectId: string
298
+
299
+ /**
300
+ * 数据时间,格式yyyy-MM-dd HH:mm:ss
301
+ */
302
+ CurRunDate: string
303
+
304
+ /**
305
+ * 任务id
306
+ */
307
+ TaskId: number
308
+
309
+ /**
310
+ * 距离当前任务的层级距离,-1表示取父节点,1表示子节点
311
+ */
312
+ Depth: number
313
+
314
+ /**
315
+ * 页号,默认为1
316
+ */
317
+ PageNumber?: number
318
+
319
+ /**
320
+ * 页大小,默认为10,最大不超过200
321
+ */
322
+ PageSize?: number
323
+ }
324
+
325
+ /**
326
+ * DescribeRelatedInstances返回参数结构体
327
+ */
328
+ export interface DescribeRelatedInstancesResponse {
329
+ /**
330
+ * 无
331
+ */
332
+ Data: DescribeTaskInstancesData
333
+
334
+ /**
335
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
336
+ */
337
+ RequestId?: string
338
+ }
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./services"), exports);
@@ -0,0 +1 @@
1
+ export { wedata } from "./wedata";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var wedata_1 = require("./wedata");
4
+ Object.defineProperty(exports, "wedata", { enumerable: true, get: function () { return wedata_1.wedata; } });
@@ -0,0 +1,6 @@
1
+ export declare const wedata: {
2
+ v20210820: {
3
+ Client: typeof import("./v20210820/wedata_client").Client;
4
+ Models: typeof import("./v20210820/wedata_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.wedata = void 0;
4
+ const v20210820_1 = require("./v20210820");
5
+ exports.wedata = {
6
+ v20210820: v20210820_1.v20210820,
7
+ };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./wedata_models";
2
+ import { Client } from "./wedata_client";
3
+ export declare const v20210820: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20210820 = void 0;
4
+ const Models = require("./wedata_models");
5
+ const wedata_client_1 = require("./wedata_client");
6
+ exports.v20210820 = {
7
+ Client: wedata_client_1.Client,
8
+ Models: Models,
9
+ };
@@ -0,0 +1,17 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ import { DescribeTaskInstancesRequest, DescribeTaskInstancesResponse, DescribeRelatedInstancesRequest, DescribeRelatedInstancesResponse } from "./wedata_models";
3
+ /**
4
+ * wedata client
5
+ * @class
6
+ */
7
+ export declare class Client extends TencentCloudCommon.AbstractClient {
8
+ constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
+ /**
10
+ * 查询任务实例的关联实例列表
11
+ */
12
+ DescribeRelatedInstances(req: DescribeRelatedInstancesRequest, cb?: (error: string, rep: DescribeRelatedInstancesResponse) => void): Promise<DescribeRelatedInstancesResponse>;
13
+ /**
14
+ * 查询任务实例列表
15
+ */
16
+ DescribeTaskInstances(req: DescribeTaskInstancesRequest, cb?: (error: string, rep: DescribeTaskInstancesResponse) => void): Promise<DescribeTaskInstancesResponse>;
17
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ /*
6
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+ const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ /**
23
+ * wedata client
24
+ * @class
25
+ */
26
+ class Client extends TencentCloudCommon.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("wedata.tencentcloudapi.com", "2021-08-20", clientConfig);
29
+ }
30
+ /**
31
+ * 查询任务实例的关联实例列表
32
+ */
33
+ async DescribeRelatedInstances(req, cb) {
34
+ return this.request("DescribeRelatedInstances", req, cb);
35
+ }
36
+ /**
37
+ * 查询任务实例列表
38
+ */
39
+ async DescribeTaskInstances(req, cb) {
40
+ return this.request("DescribeTaskInstances", req, cb);
41
+ }
42
+ }
43
+ exports.Client = Client;