tencentcloud-sdk-nodejs-cls 4.0.397 → 4.0.431

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.
@@ -17,177 +17,178 @@
17
17
  */
18
18
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
19
  import {
20
- UploadLogResponse,
21
- CreateAlarmResponse,
22
- AlarmInfo,
23
- LogInfo,
24
- DeleteAlarmNoticeResponse,
25
- DescribeLogHistogramRequest,
26
- DescribeLogContextRequest,
27
- DeleteShipperRequest,
28
- ModifyTopicRequest,
29
- DeleteLogsetResponse,
30
- ParquetKeyInfo,
31
- DescribeShipperTasksResponse,
32
- CreateMachineGroupResponse,
33
- DescribeConfigMachineGroupsRequest,
34
- ModifyConfigExtraResponse,
35
- CreateLogsetRequest,
36
- DescribeShippersRequest,
37
- LogItem,
38
- SearchLogResponse,
39
- DeleteTopicRequest,
40
- DescribePartitionsRequest,
41
- ContainerStdoutInfo,
42
- ModifyAlarmResponse,
43
- DescribeShipperTasksRequest,
44
- DescribeAlarmsRequest,
45
- MergePartitionRequest,
46
- DescribeShippersResponse,
47
- CreateConfigExtraResponse,
48
- ModifyShipperResponse,
49
- RetryShipperTaskRequest,
50
- ContainerWorkLoadInfo,
51
- DescribeConfigExtrasResponse,
52
- CallBackInfo,
53
- OpenKafkaConsumerResponse,
54
- AlarmTargetInfo,
55
- DescribeIndexRequest,
56
- DescribeConfigsResponse,
57
- CreateLogsetResponse,
58
- DeleteMachineGroupResponse,
59
- Tag,
60
- DescribeExportsRequest,
61
- ExtractRuleInfo,
62
- TopicInfo,
63
- DescribeConsumerRequest,
64
- DeleteConfigExtraResponse,
65
- ModifyConsumerRequest,
66
- CreateIndexResponse,
67
- DeleteConfigFromMachineGroupResponse,
68
- CreateConsumerResponse,
69
- ModifyMachineGroupResponse,
70
- RuleInfo,
71
- DeleteMachineGroupRequest,
72
- FullTextInfo,
73
- DescribePartitionsResponse,
74
- DescribeConfigMachineGroupsResponse,
75
- ModifyAlarmRequest,
76
- DescribeTopicsResponse,
77
- LogItems,
78
- ModifyAlarmNoticeRequest,
79
- RuleKeyValueInfo,
80
- CreateAlarmRequest,
81
- DeleteExportResponse,
82
- PartitionInfo,
83
- CreateConfigExtraRequest,
84
- ExcludePathInfo,
85
- FilterRuleInfo,
86
- ConfigExtraInfo,
87
- RetryShipperTaskResponse,
88
- SplitPartitionRequest,
89
- DescribeMachineGroupConfigsResponse,
90
- MachineGroupInfo,
91
- DescribeLogHistogramResponse,
92
- CloseKafkaConsumerResponse,
93
- RuleTagInfo,
94
- CreateIndexRequest,
95
- DeleteConsumerResponse,
96
- DescribeTopicsRequest,
97
- GetAlarmLogResponse,
98
- CreateTopicRequest,
99
- DescribeMachineGroupsRequest,
100
- AlarmTarget,
101
- OpenKafkaConsumerRequest,
102
- DeleteConfigResponse,
103
- ModifyIndexResponse,
104
- DeleteConsumerRequest,
105
- DeleteIndexRequest,
106
- DescribeConsumerResponse,
107
- UploadLogRequest,
108
- ModifyConsumerResponse,
109
- DescribeConfigsRequest,
110
- LogsetInfo,
111
- DeleteConfigRequest,
112
- AnalysisDimensional,
113
- ShipperTaskInfo,
114
- CloseKafkaConsumerRequest,
115
- CreateExportRequest,
116
- DescribeAlarmNoticesResponse,
117
- DeleteConfigExtraRequest,
118
- ModifyConfigRequest,
119
- DescribeLogsetsResponse,
120
- JsonInfo,
121
- CreateShipperRequest,
122
- CreateTopicResponse,
123
- DeleteAlarmResponse,
124
- WebCallback,
125
- DescribeAlarmsResponse,
126
- CreateAlarmNoticeResponse,
127
- ModifyTopicResponse,
128
- CreateConfigRequest,
129
- CreateShipperResponse,
130
- DeleteIndexResponse,
131
- AlarmAnalysisConfig,
132
- ModifyIndexRequest,
133
- Column,
134
- CompressInfo,
135
- ValueInfo,
136
- GetAlarmLogRequest,
137
- DeleteShipperResponse,
138
- ExportInfo,
139
- ConfigInfo,
140
- DeleteExportRequest,
141
- SplitPartitionResponse,
142
- LogContextInfo,
143
- ModifyShipperRequest,
144
- DescribeLogContextResponse,
145
- CreateConsumerRequest,
146
- AlarmNotice,
147
- ModifyConfigResponse,
148
- ModifyAlarmNoticeResponse,
149
- DescribeMachinesResponse,
150
- ContentInfo,
151
- ApplyConfigToMachineGroupResponse,
152
- DeleteAlarmRequest,
153
- CreateConfigResponse,
154
- MachineGroupTypeInfo,
155
- DeleteConfigFromMachineGroupRequest,
156
- ShipperInfo,
157
- KeyValueInfo,
158
- ModifyMachineGroupRequest,
159
- DescribeAlarmNoticesRequest,
160
- NoticeReceiver,
161
- Ckafka,
162
- DescribeMachinesRequest,
163
- DeleteAlarmNoticeRequest,
164
- DeleteLogsetRequest,
165
- MachineInfo,
166
- ModifyLogsetResponse,
167
- MonitorTime,
168
- SearchLogRequest,
169
- CreateMachineGroupRequest,
170
- DescribeExportsResponse,
171
- ApplyConfigToMachineGroupRequest,
172
- ContainerFileInfo,
173
- CsvInfo,
174
- DescribeConfigExtrasRequest,
175
- CreateAlarmNoticeRequest,
176
- DescribeIndexResponse,
177
- HistogramInfo,
178
- DescribeMachineGroupConfigsRequest,
179
- ModifyConfigExtraRequest,
180
- ModifyLogsetRequest,
181
- DescribeMachineGroupsResponse,
182
- DescribeLogsetsRequest,
183
- ParquetInfo,
184
- DeleteTopicResponse,
185
- Filter,
186
- ConsumerContent,
187
- CreateExportResponse,
188
- HostFileInfo,
189
- KeyRegexInfo,
190
- MergePartitionResponse,
20
+ UploadLogResponse,
21
+ CreateAlarmResponse,
22
+ AlarmInfo,
23
+ LogInfo,
24
+ DeleteAlarmNoticeResponse,
25
+ DescribeLogHistogramRequest,
26
+ DescribeLogContextRequest,
27
+ DeleteShipperRequest,
28
+ ModifyTopicRequest,
29
+ DeleteLogsetResponse,
30
+ ParquetKeyInfo,
31
+ DescribeShipperTasksResponse,
32
+ CreateMachineGroupResponse,
33
+ DescribeConfigMachineGroupsRequest,
34
+ ModifyConfigExtraResponse,
35
+ CreateLogsetRequest,
36
+ DescribeShippersRequest,
37
+ LogItem,
38
+ SearchLogResponse,
39
+ DeleteTopicRequest,
40
+ DescribePartitionsRequest,
41
+ ContainerStdoutInfo,
42
+ ModifyAlarmResponse,
43
+ DescribeShipperTasksRequest,
44
+ DescribeAlarmsRequest,
45
+ MergePartitionRequest,
46
+ DescribeShippersResponse,
47
+ CreateConfigExtraResponse,
48
+ ModifyShipperResponse,
49
+ RetryShipperTaskRequest,
50
+ ContainerWorkLoadInfo,
51
+ DescribeConfigExtrasResponse,
52
+ CallBackInfo,
53
+ OpenKafkaConsumerResponse,
54
+ AlarmTargetInfo,
55
+ DescribeIndexRequest,
56
+ DescribeConfigsResponse,
57
+ CreateLogsetResponse,
58
+ DeleteMachineGroupResponse,
59
+ Tag,
60
+ DescribeExportsRequest,
61
+ ExtractRuleInfo,
62
+ TopicInfo,
63
+ DescribeConsumerRequest,
64
+ DeleteConfigExtraResponse,
65
+ ModifyConsumerRequest,
66
+ CreateIndexResponse,
67
+ DeleteConfigFromMachineGroupResponse,
68
+ CreateConsumerResponse,
69
+ ModifyMachineGroupResponse,
70
+ RuleInfo,
71
+ DeleteMachineGroupRequest,
72
+ FullTextInfo,
73
+ DescribePartitionsResponse,
74
+ DescribeConfigMachineGroupsResponse,
75
+ ModifyAlarmRequest,
76
+ DescribeTopicsResponse,
77
+ LogItems,
78
+ ModifyAlarmNoticeRequest,
79
+ RuleKeyValueInfo,
80
+ CreateAlarmRequest,
81
+ DeleteExportResponse,
82
+ PartitionInfo,
83
+ CreateConfigExtraRequest,
84
+ ExcludePathInfo,
85
+ FilterRuleInfo,
86
+ ConfigExtraInfo,
87
+ RetryShipperTaskResponse,
88
+ SplitPartitionRequest,
89
+ DescribeMachineGroupConfigsResponse,
90
+ MachineGroupInfo,
91
+ DescribeLogHistogramResponse,
92
+ CloseKafkaConsumerResponse,
93
+ RuleTagInfo,
94
+ CreateIndexRequest,
95
+ DeleteConsumerResponse,
96
+ DescribeTopicsRequest,
97
+ GetAlarmLogResponse,
98
+ CreateTopicRequest,
99
+ DescribeMachineGroupsRequest,
100
+ AlarmTarget,
101
+ OpenKafkaConsumerRequest,
102
+ DeleteConfigResponse,
103
+ ModifyIndexResponse,
104
+ DeleteConsumerRequest,
105
+ DeleteIndexRequest,
106
+ DescribeConsumerResponse,
107
+ UploadLogRequest,
108
+ ModifyConsumerResponse,
109
+ DescribeConfigsRequest,
110
+ LogsetInfo,
111
+ DeleteConfigRequest,
112
+ AnalysisDimensional,
113
+ ShipperTaskInfo,
114
+ CloseKafkaConsumerRequest,
115
+ CreateExportRequest,
116
+ DescribeAlarmNoticesResponse,
117
+ DeleteConfigExtraRequest,
118
+ ModifyConfigRequest,
119
+ DescribeLogsetsResponse,
120
+ JsonInfo,
121
+ CreateShipperRequest,
122
+ CreateTopicResponse,
123
+ DeleteAlarmResponse,
124
+ WebCallback,
125
+ DescribeAlarmsResponse,
126
+ CreateAlarmNoticeResponse,
127
+ ModifyTopicResponse,
128
+ CreateConfigRequest,
129
+ CreateShipperResponse,
130
+ DeleteIndexResponse,
131
+ AlarmAnalysisConfig,
132
+ ModifyIndexRequest,
133
+ Column,
134
+ CompressInfo,
135
+ ValueInfo,
136
+ GetAlarmLogRequest,
137
+ DeleteShipperResponse,
138
+ ExportInfo,
139
+ ConfigInfo,
140
+ DeleteExportRequest,
141
+ SplitPartitionResponse,
142
+ LogContextInfo,
143
+ ModifyShipperRequest,
144
+ DescribeLogContextResponse,
145
+ CreateConsumerRequest,
146
+ AlarmNotice,
147
+ ModifyConfigResponse,
148
+ ModifyAlarmNoticeResponse,
149
+ DescribeMachinesResponse,
150
+ ContentInfo,
151
+ ApplyConfigToMachineGroupResponse,
152
+ DeleteAlarmRequest,
153
+ CreateConfigResponse,
154
+ MachineGroupTypeInfo,
155
+ DeleteConfigFromMachineGroupRequest,
156
+ ShipperInfo,
157
+ KeyValueInfo,
158
+ ModifyMachineGroupRequest,
159
+ DescribeAlarmNoticesRequest,
160
+ NoticeReceiver,
161
+ Ckafka,
162
+ DescribeMachinesRequest,
163
+ DeleteAlarmNoticeRequest,
164
+ DeleteLogsetRequest,
165
+ MachineInfo,
166
+ ModifyLogsetResponse,
167
+ MonitorTime,
168
+ SearchLogRequest,
169
+ CreateMachineGroupRequest,
170
+ DescribeExportsResponse,
171
+ ApplyConfigToMachineGroupRequest,
172
+ ContainerFileInfo,
173
+ CsvInfo,
174
+ DescribeConfigExtrasRequest,
175
+ CreateAlarmNoticeRequest,
176
+ DescribeIndexResponse,
177
+ HistogramInfo,
178
+ DescribeMachineGroupConfigsRequest,
179
+ ModifyConfigExtraRequest,
180
+ ModifyLogsetRequest,
181
+ DescribeMachineGroupsResponse,
182
+ DescribeLogsetsRequest,
183
+ ParquetInfo,
184
+ DeleteTopicResponse,
185
+ Filter,
186
+ ConsumerContent,
187
+ CreateExportResponse,
188
+ HostFileInfo,
189
+ KeyRegexInfo,
190
+ MergePartitionResponse,
191
+
191
192
  } from "./cls_models"
192
193
 
193
194
  /**
@@ -195,402 +196,286 @@ import {
195
196
  * @class
196
197
  */
197
198
  export class Client extends TencentCloudCommon.AbstractClient {
198
- constructor(clientConfig: TencentCloudCommon.ClientConfig) {
199
- super("cls.tencentcloudapi.com", "2020-10-16", clientConfig)
200
- }
201
-
202
- /**
203
- * 创建机器组
204
- */
205
- async CreateMachineGroup(
206
- req: CreateMachineGroupRequest,
207
- cb?: (error: string, rep: CreateMachineGroupResponse) => void
208
- ): Promise<CreateMachineGroupResponse> {
209
- return this.request("CreateMachineGroup", req, cb)
210
- }
211
-
212
- /**
213
- * 获取机器组信息列表
214
- */
215
- async DescribeMachineGroups(
216
- req: DescribeMachineGroupsRequest,
217
- cb?: (error: string, rep: DescribeMachineGroupsResponse) => void
218
- ): Promise<DescribeMachineGroupsResponse> {
219
- return this.request("DescribeMachineGroups", req, cb)
220
- }
221
-
222
- /**
223
- * 本接口用于获取告警任务历史
224
- */
225
- async GetAlarmLog(
226
- req: GetAlarmLogRequest,
227
- cb?: (error: string, rep: GetAlarmLogResponse) => void
228
- ): Promise<GetAlarmLogResponse> {
229
- return this.request("GetAlarmLog", req, cb)
230
- }
231
-
232
- /**
233
- * 本接口用于创建投递任务
234
- */
235
- async CreateConsumer(
236
- req: CreateConsumerRequest,
237
- cb?: (error: string, rep: CreateConsumerResponse) => void
238
- ): Promise<CreateConsumerResponse> {
239
- return this.request("CreateConsumer", req, cb)
240
- }
241
-
242
- /**
243
- * 本接口用于修改日志主题。
244
- */
245
- async ModifyTopic(
246
- req: ModifyTopicRequest,
247
- cb?: (error: string, rep: ModifyTopicResponse) => void
248
- ): Promise<ModifyTopicResponse> {
249
- return this.request("ModifyTopic", req, cb)
250
- }
251
-
252
- /**
253
- * 获取制定机器组下的机器状态
254
- */
255
- async DescribeMachines(
256
- req: DescribeMachinesRequest,
257
- cb?: (error: string, rep: DescribeMachinesResponse) => void
258
- ): Promise<DescribeMachinesResponse> {
259
- return this.request("DescribeMachines", req, cb)
260
- }
261
-
262
- /**
263
- * 本接口用于获取日志集信息列表。
264
- */
265
- async DescribeLogsets(
266
- req: DescribeLogsetsRequest,
267
- cb?: (error: string, rep: DescribeLogsetsResponse) => void
268
- ): Promise<DescribeLogsetsResponse> {
269
- return this.request("DescribeLogsets", req, cb)
270
- }
271
-
272
- /**
273
- * 本接口用于修改日志集信息
274
- */
275
- async ModifyLogset(
276
- req: ModifyLogsetRequest,
277
- cb?: (error: string, rep: ModifyLogsetResponse) => void
278
- ): Promise<ModifyLogsetResponse> {
279
- return this.request("ModifyLogset", req, cb)
280
- }
281
-
282
- /**
283
- * 本接口用于获取日志下载任务列表
284
- */
285
- async DescribeExports(
286
- req: DescribeExportsRequest,
287
- cb?: (error: string, rep: DescribeExportsResponse) => void
288
- ): Promise<DescribeExportsResponse> {
289
- return this.request("DescribeExports", req, cb)
290
- }
291
-
292
- /**
199
+
200
+ constructor(clientConfig: TencentCloudCommon.ClientConfig) {
201
+ super("cls.tencentcloudapi.com", "2020-10-16", clientConfig);
202
+ }
203
+
204
+ /**
205
+ * 创建机器组
206
+ */
207
+ async CreateMachineGroup(req: CreateMachineGroupRequest, cb?: (error: string, rep: CreateMachineGroupResponse) => void): Promise<CreateMachineGroupResponse> {
208
+ return this.request("CreateMachineGroup", req, cb);
209
+ }
210
+
211
+ /**
212
+ * 获取机器组信息列表
213
+ */
214
+ async DescribeMachineGroups(req: DescribeMachineGroupsRequest, cb?: (error: string, rep: DescribeMachineGroupsResponse) => void): Promise<DescribeMachineGroupsResponse> {
215
+ return this.request("DescribeMachineGroups", req, cb);
216
+ }
217
+
218
+ /**
219
+ * 本接口用于获取告警任务历史
220
+ */
221
+ async GetAlarmLog(req: GetAlarmLogRequest, cb?: (error: string, rep: GetAlarmLogResponse) => void): Promise<GetAlarmLogResponse> {
222
+ return this.request("GetAlarmLog", req, cb);
223
+ }
224
+
225
+ /**
226
+ * 本接口用于创建投递任务
227
+ */
228
+ async CreateConsumer(req: CreateConsumerRequest, cb?: (error: string, rep: CreateConsumerResponse) => void): Promise<CreateConsumerResponse> {
229
+ return this.request("CreateConsumer", req, cb);
230
+ }
231
+
232
+ /**
233
+ * 本接口用于修改日志主题。
234
+ */
235
+ async ModifyTopic(req: ModifyTopicRequest, cb?: (error: string, rep: ModifyTopicResponse) => void): Promise<ModifyTopicResponse> {
236
+ return this.request("ModifyTopic", req, cb);
237
+ }
238
+
239
+ /**
240
+ * 获取制定机器组下的机器状态
241
+ */
242
+ async DescribeMachines(req: DescribeMachinesRequest, cb?: (error: string, rep: DescribeMachinesResponse) => void): Promise<DescribeMachinesResponse> {
243
+ return this.request("DescribeMachines", req, cb);
244
+ }
245
+
246
+ /**
247
+ * 本接口用于获取日志集信息列表。
248
+ */
249
+ async DescribeLogsets(req: DescribeLogsetsRequest, cb?: (error: string, rep: DescribeLogsetsResponse) => void): Promise<DescribeLogsetsResponse> {
250
+ return this.request("DescribeLogsets", req, cb);
251
+ }
252
+
253
+ /**
254
+ * 本接口用于修改日志集信息
255
+ */
256
+ async ModifyLogset(req: ModifyLogsetRequest, cb?: (error: string, rep: ModifyLogsetResponse) => void): Promise<ModifyLogsetResponse> {
257
+ return this.request("ModifyLogset", req, cb);
258
+ }
259
+
260
+ /**
261
+ * 本接口用于获取日志下载任务列表
262
+ */
263
+ async DescribeExports(req: DescribeExportsRequest, cb?: (error: string, rep: DescribeExportsResponse) => void): Promise<DescribeExportsResponse> {
264
+ return this.request("DescribeExports", req, cb);
265
+ }
266
+
267
+ /**
293
268
  * 本接口用于修改索引配置
294
269
 
295
270
  */
296
- async ModifyIndex(
297
- req: ModifyIndexRequest,
298
- cb?: (error: string, rep: ModifyIndexResponse) => void
299
- ): Promise<ModifyIndexResponse> {
300
- return this.request("ModifyIndex", req, cb)
301
- }
302
-
303
- /**
304
- * 本接口用于修改特殊采集配置任务
305
- */
306
- async ModifyConfigExtra(
307
- req: ModifyConfigExtraRequest,
308
- cb?: (error: string, rep: ModifyConfigExtraResponse) => void
309
- ): Promise<ModifyConfigExtraResponse> {
310
- return this.request("ModifyConfigExtra", req, cb)
311
- }
312
-
313
- /**
314
- * 本接口用于获取索引配置信息
315
- */
316
- async DescribeIndex(
317
- req: DescribeIndexRequest,
318
- cb?: (error: string, rep: DescribeIndexResponse) => void
319
- ): Promise<DescribeIndexResponse> {
320
- return this.request("DescribeIndex", req, cb)
321
- }
322
-
323
- /**
324
- * 本接口用于获取主题分区列表。
325
- */
326
- async DescribePartitions(
327
- req: DescribePartitionsRequest,
328
- cb?: (error: string, rep: DescribePartitionsResponse) => void
329
- ): Promise<DescribePartitionsResponse> {
330
- return this.request("DescribePartitions", req, cb)
331
- }
332
-
333
- /**
334
- * 本接口用于创建索引
335
- */
336
- async CreateIndex(
337
- req: CreateIndexRequest,
338
- cb?: (error: string, rep: CreateIndexResponse) => void
339
- ): Promise<CreateIndexResponse> {
340
- return this.request("CreateIndex", req, cb)
341
- }
342
-
343
- /**
344
- * 删除采集规则配置
345
- */
346
- async DeleteConfig(
347
- req: DeleteConfigRequest,
348
- cb?: (error: string, rep: DeleteConfigResponse) => void
349
- ): Promise<DeleteConfigResponse> {
350
- return this.request("DeleteConfig", req, cb)
351
- }
352
-
353
- /**
354
- * 本接口用于获取特殊采集配置
355
- */
356
- async DescribeConfigExtras(
357
- req: DescribeConfigExtrasRequest,
358
- cb?: (error: string, rep: DescribeConfigExtrasResponse) => void
359
- ): Promise<DescribeConfigExtrasResponse> {
360
- return this.request("DescribeConfigExtras", req, cb)
361
- }
362
-
363
- /**
364
- * 创建新的投递规则,【!!!注意】使用此接口,需要检查是否配置了投递COS的角色和权限。如果没有配置,请参考文档投递权限查看和配置https://cloud.tencent.com/document/product/614/71623。
365
- */
366
- async CreateShipper(
367
- req: CreateShipperRequest,
368
- cb?: (error: string, rep: CreateShipperResponse) => void
369
- ): Promise<CreateShipperResponse> {
370
- return this.request("CreateShipper", req, cb)
371
- }
372
-
373
- /**
374
- * 本接口用于修改投递任务
375
- */
376
- async ModifyConsumer(
377
- req: ModifyConsumerRequest,
378
- cb?: (error: string, rep: ModifyConsumerResponse) => void
379
- ): Promise<ModifyConsumerResponse> {
380
- return this.request("ModifyConsumer", req, cb)
381
- }
382
-
383
- /**
384
- * 该接口用于创建通知渠道组。
385
- */
386
- async CreateAlarmNotice(
387
- req: CreateAlarmNoticeRequest,
388
- cb?: (error: string, rep: CreateAlarmNoticeResponse) => void
389
- ): Promise<CreateAlarmNoticeResponse> {
390
- return this.request("CreateAlarmNotice", req, cb)
391
- }
392
-
393
- /**
394
- * 本接口用于删除投递配置
395
- */
396
- async DeleteConsumer(
397
- req: DeleteConsumerRequest,
398
- cb?: (error: string, rep: DeleteConsumerResponse) => void
399
- ): Promise<DeleteConsumerResponse> {
400
- return this.request("DeleteConsumer", req, cb)
401
- }
402
-
403
- /**
404
- * 本接口用于修改告警策略。需要至少修改一项有效内容。
405
- */
406
- async ModifyAlarm(
407
- req: ModifyAlarmRequest,
408
- cb?: (error: string, rep: ModifyAlarmResponse) => void
409
- ): Promise<ModifyAlarmResponse> {
410
- return this.request("ModifyAlarm", req, cb)
411
- }
412
-
413
- /**
414
- * 删除机器组
415
- */
416
- async DeleteMachineGroup(
417
- req: DeleteMachineGroupRequest,
418
- cb?: (error: string, rep: DeleteMachineGroupResponse) => void
419
- ): Promise<DeleteMachineGroupResponse> {
420
- return this.request("DeleteMachineGroup", req, cb)
421
- }
422
-
423
- /**
424
- * 本接口用于获取日志主题列表,支持分页
425
- */
426
- async DescribeTopics(
427
- req: DescribeTopicsRequest,
428
- cb?: (error: string, rep: DescribeTopicsResponse) => void
429
- ): Promise<DescribeTopicsResponse> {
430
- return this.request("DescribeTopics", req, cb)
431
- }
432
-
433
- /**
434
- * 本接口用于删除日志集。
435
- */
436
- async DeleteLogset(
437
- req: DeleteLogsetRequest,
438
- cb?: (error: string, rep: DeleteLogsetResponse) => void
439
- ): Promise<DeleteLogsetResponse> {
440
- return this.request("DeleteLogset", req, cb)
441
- }
442
-
443
- /**
444
- * 获取投递规则信息列表
445
- */
446
- async DescribeShippers(
447
- req: DescribeShippersRequest,
448
- cb?: (error: string, rep: DescribeShippersResponse) => void
449
- ): Promise<DescribeShippersResponse> {
450
- return this.request("DescribeShippers", req, cb)
451
- }
452
-
453
- /**
454
- * 修改机器组
455
- */
456
- async ModifyMachineGroup(
457
- req: ModifyMachineGroupRequest,
458
- cb?: (error: string, rep: ModifyMachineGroupResponse) => void
459
- ): Promise<ModifyMachineGroupResponse> {
460
- return this.request("ModifyMachineGroup", req, cb)
461
- }
462
-
463
- /**
464
- * 删除应用到机器组的采集配置
465
- */
466
- async DeleteConfigFromMachineGroup(
467
- req: DeleteConfigFromMachineGroupRequest,
468
- cb?: (error: string, rep: DeleteConfigFromMachineGroupResponse) => void
469
- ): Promise<DeleteConfigFromMachineGroupResponse> {
470
- return this.request("DeleteConfigFromMachineGroup", req, cb)
471
- }
472
-
473
- /**
474
- * 本接口用于删除特殊采集规则配置
475
- */
476
- async DeleteConfigExtra(
477
- req: DeleteConfigExtraRequest,
478
- cb?: (error: string, rep: DeleteConfigExtraResponse) => void
479
- ): Promise<DeleteConfigExtraResponse> {
480
- return this.request("DeleteConfigExtra", req, cb)
481
- }
482
-
483
- /**
484
- * 本接口用于获取告警策略列表。
485
- */
486
- async DescribeAlarms(
487
- req: DescribeAlarmsRequest,
488
- cb?: (error: string, rep: DescribeAlarmsResponse) => void
489
- ): Promise<DescribeAlarmsResponse> {
490
- return this.request("DescribeAlarms", req, cb)
491
- }
492
-
493
- /**
494
- * 该接口用于获取通知渠道组列表
495
- */
496
- async DescribeAlarmNotices(
497
- req: DescribeAlarmNoticesRequest,
498
- cb?: (error: string, rep: DescribeAlarmNoticesResponse) => void
499
- ): Promise<DescribeAlarmNoticesResponse> {
500
- return this.request("DescribeAlarmNotices", req, cb)
501
- }
502
-
503
- /**
504
- * 本接口用于创建日志主题。
505
- */
506
- async CreateTopic(
507
- req: CreateTopicRequest,
508
- cb?: (error: string, rep: CreateTopicResponse) => void
509
- ): Promise<CreateTopicResponse> {
510
- return this.request("CreateTopic", req, cb)
511
- }
512
-
513
- /**
514
- * 应用采集配置到指定机器组
515
- */
516
- async ApplyConfigToMachineGroup(
517
- req: ApplyConfigToMachineGroupRequest,
518
- cb?: (error: string, rep: ApplyConfigToMachineGroupResponse) => void
519
- ): Promise<ApplyConfigToMachineGroupResponse> {
520
- return this.request("ApplyConfigToMachineGroup", req, cb)
521
- }
522
-
523
- /**
524
- * 本接口用于创建日志集,返回新创建的日志集的 ID。
525
- */
526
- async CreateLogset(
527
- req: CreateLogsetRequest,
528
- cb?: (error: string, rep: CreateLogsetResponse) => void
529
- ): Promise<CreateLogsetResponse> {
530
- return this.request("CreateLogset", req, cb)
531
- }
532
-
533
- /**
534
- * 该接口用于删除通知渠道组
535
- */
536
- async DeleteAlarmNotice(
537
- req: DeleteAlarmNoticeRequest,
538
- cb?: (error: string, rep: DeleteAlarmNoticeResponse) => void
539
- ): Promise<DeleteAlarmNoticeResponse> {
540
- return this.request("DeleteAlarmNotice", req, cb)
541
- }
542
-
543
- /**
544
- * 本接口用于构建直方图
545
- */
546
- async DescribeLogHistogram(
547
- req: DescribeLogHistogramRequest,
548
- cb?: (error: string, rep: DescribeLogHistogramResponse) => void
549
- ): Promise<DescribeLogHistogramResponse> {
550
- return this.request("DescribeLogHistogram", req, cb)
551
- }
552
-
553
- /**
554
- * 本接口用于检索分析日志, 该接口除受默认接口请求频率限制外,针对单个日志主题,查询并发数不能超过15。
555
- */
556
- async SearchLog(
557
- req: SearchLogRequest,
558
- cb?: (error: string, rep: SearchLogResponse) => void
559
- ): Promise<SearchLogResponse> {
560
- return this.request("SearchLog", req, cb)
561
- }
562
-
563
- /**
564
- * 该接口用于修改通知渠道组
565
- */
566
- async ModifyAlarmNotice(
567
- req: ModifyAlarmNoticeRequest,
568
- cb?: (error: string, rep: ModifyAlarmNoticeResponse) => void
569
- ): Promise<ModifyAlarmNoticeResponse> {
570
- return this.request("ModifyAlarmNotice", req, cb)
571
- }
572
-
573
- /**
574
- * 打开Kafka协议消费功能
575
- */
576
- async OpenKafkaConsumer(
577
- req: OpenKafkaConsumerRequest,
578
- cb?: (error: string, rep: OpenKafkaConsumerResponse) => void
579
- ): Promise<OpenKafkaConsumerResponse> {
580
- return this.request("OpenKafkaConsumer", req, cb)
581
- }
582
-
583
- /**
584
- * 修改采集规则配置
585
- */
586
- async ModifyConfig(
587
- req: ModifyConfigRequest,
588
- cb?: (error: string, rep: ModifyConfigResponse) => void
589
- ): Promise<ModifyConfigResponse> {
590
- return this.request("ModifyConfig", req, cb)
591
- }
592
-
593
- /**
271
+ async ModifyIndex(req: ModifyIndexRequest, cb?: (error: string, rep: ModifyIndexResponse) => void): Promise<ModifyIndexResponse> {
272
+ return this.request("ModifyIndex", req, cb);
273
+ }
274
+
275
+ /**
276
+ * 本接口用于修改特殊采集配置任务
277
+ */
278
+ async ModifyConfigExtra(req: ModifyConfigExtraRequest, cb?: (error: string, rep: ModifyConfigExtraResponse) => void): Promise<ModifyConfigExtraResponse> {
279
+ return this.request("ModifyConfigExtra", req, cb);
280
+ }
281
+
282
+ /**
283
+ * 本接口用于获取索引配置信息
284
+ */
285
+ async DescribeIndex(req: DescribeIndexRequest, cb?: (error: string, rep: DescribeIndexResponse) => void): Promise<DescribeIndexResponse> {
286
+ return this.request("DescribeIndex", req, cb);
287
+ }
288
+
289
+ /**
290
+ * 本接口用于获取主题分区列表。
291
+ */
292
+ async DescribePartitions(req: DescribePartitionsRequest, cb?: (error: string, rep: DescribePartitionsResponse) => void): Promise<DescribePartitionsResponse> {
293
+ return this.request("DescribePartitions", req, cb);
294
+ }
295
+
296
+ /**
297
+ * 本接口用于创建索引
298
+ */
299
+ async CreateIndex(req: CreateIndexRequest, cb?: (error: string, rep: CreateIndexResponse) => void): Promise<CreateIndexResponse> {
300
+ return this.request("CreateIndex", req, cb);
301
+ }
302
+
303
+ /**
304
+ * 删除采集规则配置
305
+ */
306
+ async DeleteConfig(req: DeleteConfigRequest, cb?: (error: string, rep: DeleteConfigResponse) => void): Promise<DeleteConfigResponse> {
307
+ return this.request("DeleteConfig", req, cb);
308
+ }
309
+
310
+ /**
311
+ * 本接口用于获取特殊采集配置
312
+ */
313
+ async DescribeConfigExtras(req: DescribeConfigExtrasRequest, cb?: (error: string, rep: DescribeConfigExtrasResponse) => void): Promise<DescribeConfigExtrasResponse> {
314
+ return this.request("DescribeConfigExtras", req, cb);
315
+ }
316
+
317
+ /**
318
+ * 创建新的投递规则,【!!!注意】使用此接口,需要检查是否配置了投递COS的角色和权限。如果没有配置,请参考文档投递权限查看和配置https://cloud.tencent.com/document/product/614/71623。
319
+ */
320
+ async CreateShipper(req: CreateShipperRequest, cb?: (error: string, rep: CreateShipperResponse) => void): Promise<CreateShipperResponse> {
321
+ return this.request("CreateShipper", req, cb);
322
+ }
323
+
324
+ /**
325
+ * 本接口用于修改投递任务
326
+ */
327
+ async ModifyConsumer(req: ModifyConsumerRequest, cb?: (error: string, rep: ModifyConsumerResponse) => void): Promise<ModifyConsumerResponse> {
328
+ return this.request("ModifyConsumer", req, cb);
329
+ }
330
+
331
+ /**
332
+ * 该接口用于创建通知渠道组。
333
+ */
334
+ async CreateAlarmNotice(req: CreateAlarmNoticeRequest, cb?: (error: string, rep: CreateAlarmNoticeResponse) => void): Promise<CreateAlarmNoticeResponse> {
335
+ return this.request("CreateAlarmNotice", req, cb);
336
+ }
337
+
338
+ /**
339
+ * 本接口用于删除投递配置
340
+ */
341
+ async DeleteConsumer(req: DeleteConsumerRequest, cb?: (error: string, rep: DeleteConsumerResponse) => void): Promise<DeleteConsumerResponse> {
342
+ return this.request("DeleteConsumer", req, cb);
343
+ }
344
+
345
+ /**
346
+ * 本接口用于修改告警策略。需要至少修改一项有效内容。
347
+ */
348
+ async ModifyAlarm(req: ModifyAlarmRequest, cb?: (error: string, rep: ModifyAlarmResponse) => void): Promise<ModifyAlarmResponse> {
349
+ return this.request("ModifyAlarm", req, cb);
350
+ }
351
+
352
+ /**
353
+ * 删除机器组
354
+ */
355
+ async DeleteMachineGroup(req: DeleteMachineGroupRequest, cb?: (error: string, rep: DeleteMachineGroupResponse) => void): Promise<DeleteMachineGroupResponse> {
356
+ return this.request("DeleteMachineGroup", req, cb);
357
+ }
358
+
359
+ /**
360
+ * 本接口用于获取日志主题列表,支持分页
361
+ */
362
+ async DescribeTopics(req: DescribeTopicsRequest, cb?: (error: string, rep: DescribeTopicsResponse) => void): Promise<DescribeTopicsResponse> {
363
+ return this.request("DescribeTopics", req, cb);
364
+ }
365
+
366
+ /**
367
+ * 本接口用于删除日志集。
368
+ */
369
+ async DeleteLogset(req: DeleteLogsetRequest, cb?: (error: string, rep: DeleteLogsetResponse) => void): Promise<DeleteLogsetResponse> {
370
+ return this.request("DeleteLogset", req, cb);
371
+ }
372
+
373
+ /**
374
+ * 获取投递规则信息列表
375
+ */
376
+ async DescribeShippers(req: DescribeShippersRequest, cb?: (error: string, rep: DescribeShippersResponse) => void): Promise<DescribeShippersResponse> {
377
+ return this.request("DescribeShippers", req, cb);
378
+ }
379
+
380
+ /**
381
+ * 修改机器组
382
+ */
383
+ async ModifyMachineGroup(req: ModifyMachineGroupRequest, cb?: (error: string, rep: ModifyMachineGroupResponse) => void): Promise<ModifyMachineGroupResponse> {
384
+ return this.request("ModifyMachineGroup", req, cb);
385
+ }
386
+
387
+ /**
388
+ * 删除应用到机器组的采集配置
389
+ */
390
+ async DeleteConfigFromMachineGroup(req: DeleteConfigFromMachineGroupRequest, cb?: (error: string, rep: DeleteConfigFromMachineGroupResponse) => void): Promise<DeleteConfigFromMachineGroupResponse> {
391
+ return this.request("DeleteConfigFromMachineGroup", req, cb);
392
+ }
393
+
394
+ /**
395
+ * 本接口用于删除特殊采集规则配置
396
+ */
397
+ async DeleteConfigExtra(req: DeleteConfigExtraRequest, cb?: (error: string, rep: DeleteConfigExtraResponse) => void): Promise<DeleteConfigExtraResponse> {
398
+ return this.request("DeleteConfigExtra", req, cb);
399
+ }
400
+
401
+ /**
402
+ * 本接口用于获取告警策略列表。
403
+ */
404
+ async DescribeAlarms(req: DescribeAlarmsRequest, cb?: (error: string, rep: DescribeAlarmsResponse) => void): Promise<DescribeAlarmsResponse> {
405
+ return this.request("DescribeAlarms", req, cb);
406
+ }
407
+
408
+ /**
409
+ * 该接口用于获取通知渠道组列表
410
+ */
411
+ async DescribeAlarmNotices(req: DescribeAlarmNoticesRequest, cb?: (error: string, rep: DescribeAlarmNoticesResponse) => void): Promise<DescribeAlarmNoticesResponse> {
412
+ return this.request("DescribeAlarmNotices", req, cb);
413
+ }
414
+
415
+ /**
416
+ * 本接口用于创建日志主题。
417
+ */
418
+ async CreateTopic(req: CreateTopicRequest, cb?: (error: string, rep: CreateTopicResponse) => void): Promise<CreateTopicResponse> {
419
+ return this.request("CreateTopic", req, cb);
420
+ }
421
+
422
+ /**
423
+ * 应用采集配置到指定机器组
424
+ */
425
+ async ApplyConfigToMachineGroup(req: ApplyConfigToMachineGroupRequest, cb?: (error: string, rep: ApplyConfigToMachineGroupResponse) => void): Promise<ApplyConfigToMachineGroupResponse> {
426
+ return this.request("ApplyConfigToMachineGroup", req, cb);
427
+ }
428
+
429
+ /**
430
+ * 本接口用于创建日志集,返回新创建的日志集的 ID。
431
+ */
432
+ async CreateLogset(req: CreateLogsetRequest, cb?: (error: string, rep: CreateLogsetResponse) => void): Promise<CreateLogsetResponse> {
433
+ return this.request("CreateLogset", req, cb);
434
+ }
435
+
436
+ /**
437
+ * 该接口用于删除通知渠道组
438
+ */
439
+ async DeleteAlarmNotice(req: DeleteAlarmNoticeRequest, cb?: (error: string, rep: DeleteAlarmNoticeResponse) => void): Promise<DeleteAlarmNoticeResponse> {
440
+ return this.request("DeleteAlarmNotice", req, cb);
441
+ }
442
+
443
+ /**
444
+ * 本接口用于构建直方图
445
+ */
446
+ async DescribeLogHistogram(req: DescribeLogHistogramRequest, cb?: (error: string, rep: DescribeLogHistogramResponse) => void): Promise<DescribeLogHistogramResponse> {
447
+ return this.request("DescribeLogHistogram", req, cb);
448
+ }
449
+
450
+ /**
451
+ * 本接口用于检索分析日志, 该接口除受默认接口请求频率限制外,针对单个日志主题,查询并发数不能超过15。
452
+ */
453
+ async SearchLog(req: SearchLogRequest, cb?: (error: string, rep: SearchLogResponse) => void): Promise<SearchLogResponse> {
454
+ return this.request("SearchLog", req, cb);
455
+ }
456
+
457
+ /**
458
+ * 该接口用于修改通知渠道组
459
+ */
460
+ async ModifyAlarmNotice(req: ModifyAlarmNoticeRequest, cb?: (error: string, rep: ModifyAlarmNoticeResponse) => void): Promise<ModifyAlarmNoticeResponse> {
461
+ return this.request("ModifyAlarmNotice", req, cb);
462
+ }
463
+
464
+ /**
465
+ * 打开Kafka协议消费功能
466
+ */
467
+ async OpenKafkaConsumer(req: OpenKafkaConsumerRequest, cb?: (error: string, rep: OpenKafkaConsumerResponse) => void): Promise<OpenKafkaConsumerResponse> {
468
+ return this.request("OpenKafkaConsumer", req, cb);
469
+ }
470
+
471
+ /**
472
+ * 修改采集规则配置
473
+ */
474
+ async ModifyConfig(req: ModifyConfigRequest, cb?: (error: string, rep: ModifyConfigResponse) => void): Promise<ModifyConfigResponse> {
475
+ return this.request("ModifyConfig", req, cb);
476
+ }
477
+
478
+ /**
594
479
  * ## 提示
595
480
  为了保障您日志数据的可靠性以及更高效地使用日志服务,建议您使用CLS优化后的接口[上传结构化日志](https://cloud.tencent.com/document/api/614/16873)上传日志。
596
481
 
@@ -747,210 +632,149 @@ cls.pb.cc cls.pb.h cls.proto
747
632
 
748
633
  将生成的 cls.pb.h 头文件引入代码中,调用接口进行数据格式封装。
749
634
  */
750
- async UploadLog(
751
- req: UploadLogRequest,
752
- cb?: (error: string, rep: UploadLogResponse) => void
753
- ): Promise<UploadLogResponse> {
754
- return this.request("UploadLog", req, cb)
755
- }
756
-
757
- /**
758
- * 获取投递任务列表
759
- */
760
- async DescribeShipperTasks(
761
- req: DescribeShipperTasksRequest,
762
- cb?: (error: string, rep: DescribeShipperTasksResponse) => void
763
- ): Promise<DescribeShipperTasksResponse> {
764
- return this.request("DescribeShipperTasks", req, cb)
765
- }
766
-
767
- /**
768
- * 修改现有的投递规则,客户如果使用此接口,需要自行处理CLS对指定bucket的写权限。
769
- */
770
- async ModifyShipper(
771
- req: ModifyShipperRequest,
772
- cb?: (error: string, rep: ModifyShipperResponse) => void
773
- ): Promise<ModifyShipperResponse> {
774
- return this.request("ModifyShipper", req, cb)
775
- }
776
-
777
- /**
778
- * 创建采集规则配置
779
- */
780
- async CreateConfig(
781
- req: CreateConfigRequest,
782
- cb?: (error: string, rep: CreateConfigResponse) => void
783
- ): Promise<CreateConfigResponse> {
784
- return this.request("CreateConfig", req, cb)
785
- }
786
-
787
- /**
788
- * 获取机器组绑定的采集规则配置
789
- */
790
- async DescribeMachineGroupConfigs(
791
- req: DescribeMachineGroupConfigsRequest,
792
- cb?: (error: string, rep: DescribeMachineGroupConfigsResponse) => void
793
- ): Promise<DescribeMachineGroupConfigsResponse> {
794
- return this.request("DescribeMachineGroupConfigs", req, cb)
795
- }
796
-
797
- /**
798
- * 删除投递规则
799
- */
800
- async DeleteShipper(
801
- req: DeleteShipperRequest,
802
- cb?: (error: string, rep: DeleteShipperResponse) => void
803
- ): Promise<DeleteShipperResponse> {
804
- return this.request("DeleteShipper", req, cb)
805
- }
806
-
807
- /**
808
- * 本接口用于删除日志主题的索引配置,删除索引配置后将无法检索和查询采集到的日志。
809
- */
810
- async DeleteIndex(
811
- req: DeleteIndexRequest,
812
- cb?: (error: string, rep: DeleteIndexResponse) => void
813
- ): Promise<DeleteIndexResponse> {
814
- return this.request("DeleteIndex", req, cb)
815
- }
816
-
817
- /**
818
- * 本接口用于删除告警策略。
819
- */
820
- async DeleteAlarm(
821
- req: DeleteAlarmRequest,
822
- cb?: (error: string, rep: DeleteAlarmResponse) => void
823
- ): Promise<DeleteAlarmResponse> {
824
- return this.request("DeleteAlarm", req, cb)
825
- }
826
-
827
- /**
828
- * 本接口用于搜索日志上下文附近的内容
829
- */
830
- async DescribeLogContext(
831
- req: DescribeLogContextRequest,
832
- cb?: (error: string, rep: DescribeLogContextResponse) => void
833
- ): Promise<DescribeLogContextResponse> {
834
- return this.request("DescribeLogContext", req, cb)
835
- }
836
-
837
- /**
838
- * 本接口用于获取投递配置
839
- */
840
- async DescribeConsumer(
841
- req: DescribeConsumerRequest,
842
- cb?: (error: string, rep: DescribeConsumerResponse) => void
843
- ): Promise<DescribeConsumerResponse> {
844
- return this.request("DescribeConsumer", req, cb)
845
- }
846
-
847
- /**
848
- * 本接口用于分裂主题分区
849
- */
850
- async SplitPartition(
851
- req: SplitPartitionRequest,
852
- cb?: (error: string, rep: SplitPartitionResponse) => void
853
- ): Promise<SplitPartitionResponse> {
854
- return this.request("SplitPartition", req, cb)
855
- }
856
-
857
- /**
858
- * 获取采集规则配置
859
- */
860
- async DescribeConfigs(
861
- req: DescribeConfigsRequest,
862
- cb?: (error: string, rep: DescribeConfigsResponse) => void
863
- ): Promise<DescribeConfigsResponse> {
864
- return this.request("DescribeConfigs", req, cb)
865
- }
866
-
867
- /**
868
- * 本接口用于合并一个读写态的主题分区,合并时指定一个主题分区 ID,日志服务会自动合并范围右相邻的分区。
869
- */
870
- async MergePartition(
871
- req: MergePartitionRequest,
872
- cb?: (error: string, rep: MergePartitionResponse) => void
873
- ): Promise<MergePartitionResponse> {
874
- return this.request("MergePartition", req, cb)
875
- }
876
-
877
- /**
878
- * 本接口用于创建特殊采集配置任务
879
- */
880
- async CreateConfigExtra(
881
- req: CreateConfigExtraRequest,
882
- cb?: (error: string, rep: CreateConfigExtraResponse) => void
883
- ): Promise<CreateConfigExtraResponse> {
884
- return this.request("CreateConfigExtra", req, cb)
885
- }
886
-
887
- /**
888
- * 重试失败的投递任务
889
- */
890
- async RetryShipperTask(
891
- req: RetryShipperTaskRequest,
892
- cb?: (error: string, rep: RetryShipperTaskResponse) => void
893
- ): Promise<RetryShipperTaskResponse> {
894
- return this.request("RetryShipperTask", req, cb)
895
- }
896
-
897
- /**
898
- * 获取采集规则配置所绑定的机器组
899
- */
900
- async DescribeConfigMachineGroups(
901
- req: DescribeConfigMachineGroupsRequest,
902
- cb?: (error: string, rep: DescribeConfigMachineGroupsResponse) => void
903
- ): Promise<DescribeConfigMachineGroupsResponse> {
904
- return this.request("DescribeConfigMachineGroups", req, cb)
905
- }
906
-
907
- /**
908
- * 本接口用于删除日志下载任务
909
- */
910
- async DeleteExport(
911
- req: DeleteExportRequest,
912
- cb?: (error: string, rep: DeleteExportResponse) => void
913
- ): Promise<DeleteExportResponse> {
914
- return this.request("DeleteExport", req, cb)
915
- }
916
-
917
- /**
918
- * 本接口用于创建告警策略。
919
- */
920
- async CreateAlarm(
921
- req: CreateAlarmRequest,
922
- cb?: (error: string, rep: CreateAlarmResponse) => void
923
- ): Promise<CreateAlarmResponse> {
924
- return this.request("CreateAlarm", req, cb)
925
- }
926
-
927
- /**
928
- * 本接口用于删除日志主题。
929
- */
930
- async DeleteTopic(
931
- req: DeleteTopicRequest,
932
- cb?: (error: string, rep: DeleteTopicResponse) => void
933
- ): Promise<DeleteTopicResponse> {
934
- return this.request("DeleteTopic", req, cb)
935
- }
936
-
937
- /**
938
- * 本接口仅创建下载任务,任务返回的下载地址,请用户调用DescribeExports查看任务列表。其中有下载地址CosPath参数。参考文档https://cloud.tencent.com/document/product/614/56449
939
- */
940
- async CreateExport(
941
- req: CreateExportRequest,
942
- cb?: (error: string, rep: CreateExportResponse) => void
943
- ): Promise<CreateExportResponse> {
944
- return this.request("CreateExport", req, cb)
945
- }
946
-
947
- /**
948
- * 关闭Kafka协议消费
949
- */
950
- async CloseKafkaConsumer(
951
- req: CloseKafkaConsumerRequest,
952
- cb?: (error: string, rep: CloseKafkaConsumerResponse) => void
953
- ): Promise<CloseKafkaConsumerResponse> {
954
- return this.request("CloseKafkaConsumer", req, cb)
955
- }
635
+ async UploadLog(req: UploadLogRequest, cb?: (error: string, rep: UploadLogResponse) => void): Promise<UploadLogResponse> {
636
+ return this.request("UploadLog", req, cb);
637
+ }
638
+
639
+ /**
640
+ * 获取投递任务列表
641
+ */
642
+ async DescribeShipperTasks(req: DescribeShipperTasksRequest, cb?: (error: string, rep: DescribeShipperTasksResponse) => void): Promise<DescribeShipperTasksResponse> {
643
+ return this.request("DescribeShipperTasks", req, cb);
644
+ }
645
+
646
+ /**
647
+ * 修改现有的投递规则,客户如果使用此接口,需要自行处理CLS对指定bucket的写权限。
648
+ */
649
+ async ModifyShipper(req: ModifyShipperRequest, cb?: (error: string, rep: ModifyShipperResponse) => void): Promise<ModifyShipperResponse> {
650
+ return this.request("ModifyShipper", req, cb);
651
+ }
652
+
653
+ /**
654
+ * 创建采集规则配置
655
+ */
656
+ async CreateConfig(req: CreateConfigRequest, cb?: (error: string, rep: CreateConfigResponse) => void): Promise<CreateConfigResponse> {
657
+ return this.request("CreateConfig", req, cb);
658
+ }
659
+
660
+ /**
661
+ * 获取机器组绑定的采集规则配置
662
+ */
663
+ async DescribeMachineGroupConfigs(req: DescribeMachineGroupConfigsRequest, cb?: (error: string, rep: DescribeMachineGroupConfigsResponse) => void): Promise<DescribeMachineGroupConfigsResponse> {
664
+ return this.request("DescribeMachineGroupConfigs", req, cb);
665
+ }
666
+
667
+ /**
668
+ * 删除投递规则
669
+ */
670
+ async DeleteShipper(req: DeleteShipperRequest, cb?: (error: string, rep: DeleteShipperResponse) => void): Promise<DeleteShipperResponse> {
671
+ return this.request("DeleteShipper", req, cb);
672
+ }
673
+
674
+ /**
675
+ * 本接口用于删除日志主题的索引配置,删除索引配置后将无法检索和查询采集到的日志。
676
+ */
677
+ async DeleteIndex(req: DeleteIndexRequest, cb?: (error: string, rep: DeleteIndexResponse) => void): Promise<DeleteIndexResponse> {
678
+ return this.request("DeleteIndex", req, cb);
679
+ }
680
+
681
+ /**
682
+ * 本接口用于删除告警策略。
683
+ */
684
+ async DeleteAlarm(req: DeleteAlarmRequest, cb?: (error: string, rep: DeleteAlarmResponse) => void): Promise<DeleteAlarmResponse> {
685
+ return this.request("DeleteAlarm", req, cb);
686
+ }
687
+
688
+ /**
689
+ * 本接口用于搜索日志上下文附近的内容
690
+ */
691
+ async DescribeLogContext(req: DescribeLogContextRequest, cb?: (error: string, rep: DescribeLogContextResponse) => void): Promise<DescribeLogContextResponse> {
692
+ return this.request("DescribeLogContext", req, cb);
693
+ }
694
+
695
+ /**
696
+ * 本接口用于获取投递配置
697
+ */
698
+ async DescribeConsumer(req: DescribeConsumerRequest, cb?: (error: string, rep: DescribeConsumerResponse) => void): Promise<DescribeConsumerResponse> {
699
+ return this.request("DescribeConsumer", req, cb);
700
+ }
701
+
702
+ /**
703
+ * 本接口用于分裂主题分区
704
+ */
705
+ async SplitPartition(req: SplitPartitionRequest, cb?: (error: string, rep: SplitPartitionResponse) => void): Promise<SplitPartitionResponse> {
706
+ return this.request("SplitPartition", req, cb);
707
+ }
708
+
709
+ /**
710
+ * 获取采集规则配置
711
+ */
712
+ async DescribeConfigs(req: DescribeConfigsRequest, cb?: (error: string, rep: DescribeConfigsResponse) => void): Promise<DescribeConfigsResponse> {
713
+ return this.request("DescribeConfigs", req, cb);
714
+ }
715
+
716
+ /**
717
+ * 本接口用于合并一个读写态的主题分区,合并时指定一个主题分区 ID,日志服务会自动合并范围右相邻的分区。
718
+ */
719
+ async MergePartition(req: MergePartitionRequest, cb?: (error: string, rep: MergePartitionResponse) => void): Promise<MergePartitionResponse> {
720
+ return this.request("MergePartition", req, cb);
721
+ }
722
+
723
+ /**
724
+ * 本接口用于创建特殊采集配置任务
725
+ */
726
+ async CreateConfigExtra(req: CreateConfigExtraRequest, cb?: (error: string, rep: CreateConfigExtraResponse) => void): Promise<CreateConfigExtraResponse> {
727
+ return this.request("CreateConfigExtra", req, cb);
728
+ }
729
+
730
+ /**
731
+ * 重试失败的投递任务
732
+ */
733
+ async RetryShipperTask(req: RetryShipperTaskRequest, cb?: (error: string, rep: RetryShipperTaskResponse) => void): Promise<RetryShipperTaskResponse> {
734
+ return this.request("RetryShipperTask", req, cb);
735
+ }
736
+
737
+ /**
738
+ * 获取采集规则配置所绑定的机器组
739
+ */
740
+ async DescribeConfigMachineGroups(req: DescribeConfigMachineGroupsRequest, cb?: (error: string, rep: DescribeConfigMachineGroupsResponse) => void): Promise<DescribeConfigMachineGroupsResponse> {
741
+ return this.request("DescribeConfigMachineGroups", req, cb);
742
+ }
743
+
744
+ /**
745
+ * 本接口用于删除日志下载任务
746
+ */
747
+ async DeleteExport(req: DeleteExportRequest, cb?: (error: string, rep: DeleteExportResponse) => void): Promise<DeleteExportResponse> {
748
+ return this.request("DeleteExport", req, cb);
749
+ }
750
+
751
+ /**
752
+ * 本接口用于创建告警策略。
753
+ */
754
+ async CreateAlarm(req: CreateAlarmRequest, cb?: (error: string, rep: CreateAlarmResponse) => void): Promise<CreateAlarmResponse> {
755
+ return this.request("CreateAlarm", req, cb);
756
+ }
757
+
758
+ /**
759
+ * 本接口用于删除日志主题。
760
+ */
761
+ async DeleteTopic(req: DeleteTopicRequest, cb?: (error: string, rep: DeleteTopicResponse) => void): Promise<DeleteTopicResponse> {
762
+ return this.request("DeleteTopic", req, cb);
763
+ }
764
+
765
+ /**
766
+ * 本接口仅创建下载任务,任务返回的下载地址,请用户调用DescribeExports查看任务列表。其中有下载地址CosPath参数。参考文档https://cloud.tencent.com/document/product/614/56449
767
+ */
768
+ async CreateExport(req: CreateExportRequest, cb?: (error: string, rep: CreateExportResponse) => void): Promise<CreateExportResponse> {
769
+ return this.request("CreateExport", req, cb);
770
+ }
771
+
772
+ /**
773
+ * 关闭Kafka协议消费
774
+ */
775
+ async CloseKafkaConsumer(req: CloseKafkaConsumerRequest, cb?: (error: string, rep: CloseKafkaConsumerResponse) => void): Promise<CloseKafkaConsumerResponse> {
776
+ return this.request("CloseKafkaConsumer", req, cb);
777
+ }
778
+
779
+
956
780
  }