@ucloud-sdks/ucloud-sdk-js 0.2.32 → 0.2.34

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,917 @@
1
+ import Client from '../../core/client';
2
+ import { ConfigOptions } from '../../core/config';
3
+ import { CredentialOptions } from '../../core/credential';
4
+ /**
5
+ * This client is used to call actions of **ulogservice** service
6
+ */
7
+ export default class ULogServiceClient extends Client {
8
+ constructor({ config, credential, }: {
9
+ config: ConfigOptions;
10
+ credential: CredentialOptions;
11
+ });
12
+ /**
13
+ * BindULogServiceGroupToCollectConf - 日志主题采集配置绑定机器组
14
+ *
15
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/bind_u_log_service_group_to_collect_conf
16
+ */
17
+ bindULogServiceGroupToCollectConf(request?: BindULogServiceGroupToCollectConfRequest): Promise<BindULogServiceGroupToCollectConfResponse>;
18
+ /**
19
+ * CreateULogServiceCollectConf - 创建日志主题采集配置
20
+ *
21
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/create_u_log_service_collect_conf
22
+ */
23
+ createULogServiceCollectConf(request?: CreateULogServiceCollectConfRequest): Promise<CreateULogServiceCollectConfResponse>;
24
+ /**
25
+ * CreateULogServiceLogSet - 创建日志集
26
+ *
27
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/create_u_log_service_log_set
28
+ */
29
+ createULogServiceLogSet(request?: CreateULogServiceLogSetRequest): Promise<CreateULogServiceLogSetResponse>;
30
+ /**
31
+ * CreateULogServiceMachineGroup - 创建机器组
32
+ *
33
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/create_u_log_service_machine_group
34
+ */
35
+ createULogServiceMachineGroup(request?: CreateULogServiceMachineGroupRequest): Promise<CreateULogServiceMachineGroupResponse>;
36
+ /**
37
+ * CreateULogServiceTopic - 创建ULogService主题
38
+ *
39
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/create_u_log_service_topic
40
+ */
41
+ createULogServiceTopic(request?: CreateULogServiceTopicRequest): Promise<CreateULogServiceTopicResponse>;
42
+ /**
43
+ * DeleteULogServiceCollectConf - 删除日志主题采集配置
44
+ *
45
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/delete_u_log_service_collect_conf
46
+ */
47
+ deleteULogServiceCollectConf(request?: DeleteULogServiceCollectConfRequest): Promise<DeleteULogServiceCollectConfResponse>;
48
+ /**
49
+ * DeleteULogServiceLogSet - 删除日志集
50
+ *
51
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/delete_u_log_service_log_set
52
+ */
53
+ deleteULogServiceLogSet(request?: DeleteULogServiceLogSetRequest): Promise<DeleteULogServiceLogSetResponse>;
54
+ /**
55
+ * DeleteULogServiceMachineGroup - 删除机器组
56
+ *
57
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/delete_u_log_service_machine_group
58
+ */
59
+ deleteULogServiceMachineGroup(request?: DeleteULogServiceMachineGroupRequest): Promise<DeleteULogServiceMachineGroupResponse>;
60
+ /**
61
+ * DeleteULogServiceTopic - 删除ULogService主题
62
+ *
63
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/delete_u_log_service_topic
64
+ */
65
+ deleteULogServiceTopic(request?: DeleteULogServiceTopicRequest): Promise<DeleteULogServiceTopicResponse>;
66
+ /**
67
+ * DescribeULogServiceMachineGroup - 查询日志采集机器组
68
+ *
69
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/describe_u_log_service_machine_group
70
+ */
71
+ describeULogServiceMachineGroup(request?: DescribeULogServiceMachineGroupRequest): Promise<DescribeULogServiceMachineGroupResponse>;
72
+ /**
73
+ * ListULogServiceCollectConf - 查询日志主题采集配置列表
74
+ *
75
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/list_u_log_service_collect_conf
76
+ */
77
+ listULogServiceCollectConf(request?: ListULogServiceCollectConfRequest): Promise<ListULogServiceCollectConfResponse>;
78
+ /**
79
+ * ListULogServiceLogSet - 查询日志集列表
80
+ *
81
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/list_u_log_service_log_set
82
+ */
83
+ listULogServiceLogSet(request?: ListULogServiceLogSetRequest): Promise<ListULogServiceLogSetResponse>;
84
+ /**
85
+ * ListULogServiceMachineGroup - 查看机器组列表
86
+ *
87
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/list_u_log_service_machine_group
88
+ */
89
+ listULogServiceMachineGroup(request?: ListULogServiceMachineGroupRequest): Promise<ListULogServiceMachineGroupResponse>;
90
+ /**
91
+ * ListULogServiceTopic - 获取ULogService主题
92
+ *
93
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/list_u_log_service_topic
94
+ */
95
+ listULogServiceTopic(request?: ListULogServiceTopicRequest): Promise<ListULogServiceTopicResponse>;
96
+ /**
97
+ * QueryULogServiceLog - 查询ULogService日志
98
+ *
99
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/query_u_log_service_log
100
+ */
101
+ queryULogServiceLog(request?: QueryULogServiceLogRequest): Promise<QueryULogServiceLogResponse>;
102
+ /**
103
+ * UpdateULogServiceCollectConf - 修改日志主题采集配置
104
+ *
105
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/update_u_log_service_collect_conf
106
+ */
107
+ updateULogServiceCollectConf(request?: UpdateULogServiceCollectConfRequest): Promise<UpdateULogServiceCollectConfResponse>;
108
+ /**
109
+ * UpdateULogServiceMachineGroup - 更新日志机器组
110
+ *
111
+ * See also: https://docs.ucloud.cn/api/ulogservice-api/update_u_log_service_machine_group
112
+ */
113
+ updateULogServiceMachineGroup(request?: UpdateULogServiceMachineGroupRequest): Promise<UpdateULogServiceMachineGroupResponse>;
114
+ }
115
+ /**
116
+ * BindULogServiceGroupToCollectConf - 日志主题采集配置绑定机器组
117
+ */
118
+ export interface BindULogServiceGroupToCollectConfRequest {
119
+ /**
120
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
121
+ */
122
+ Zone: string;
123
+ /**
124
+ * 日志主题ID
125
+ */
126
+ TopicId: string;
127
+ /**
128
+ * 采集配置id
129
+ */
130
+ CollectConfId: number;
131
+ /**
132
+ * 机器组ID,是一个数组
133
+ */
134
+ MachineGroupIds?: number;
135
+ }
136
+ /**
137
+ * BindULogServiceGroupToCollectConf - 日志主题采集配置绑定机器组
138
+ */
139
+ export interface BindULogServiceGroupToCollectConfResponse {
140
+ }
141
+ /**
142
+ * CreateULogServiceCollectConf - 创建日志主题采集配置
143
+ */
144
+ export interface CreateULogServiceCollectConfRequest {
145
+ /**
146
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
147
+ */
148
+ Zone: string;
149
+ /**
150
+ * 日志主题ID
151
+ */
152
+ TopicId: string;
153
+ /**
154
+ * 配置名称
155
+ */
156
+ Name: string;
157
+ /**
158
+ * 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志
159
+ */
160
+ LogType: string;
161
+ /**
162
+ * 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。
163
+ */
164
+ CollectPolicy: string;
165
+ /**
166
+ * 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。
167
+ */
168
+ Encode?: string;
169
+ /**
170
+ * 索引字段key,是一个数组
171
+ */
172
+ Keys?: string[];
173
+ /**
174
+ * 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64
175
+ */
176
+ Delimiter?: string;
177
+ /**
178
+ * 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64
179
+ */
180
+ MatchRule?: string;
181
+ /**
182
+ * 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64
183
+ */
184
+ ExtractRule?: string;
185
+ /**
186
+ * 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。
187
+ */
188
+ UnMatchKey?: string;
189
+ /**
190
+ *
191
+ */
192
+ FilePaths?: {
193
+ /**
194
+ * 定义采集路径,数组类型
195
+ */
196
+ Path?: string;
197
+ /**
198
+ * 定义采集路径的文件名,数组类型
199
+ */
200
+ File?: string;
201
+ }[];
202
+ }
203
+ /**
204
+ * CreateULogServiceCollectConf - 创建日志主题采集配置
205
+ */
206
+ export interface CreateULogServiceCollectConfResponse {
207
+ }
208
+ /**
209
+ * CreateULogServiceLogSet - 创建日志集
210
+ */
211
+ export interface CreateULogServiceLogSetRequest {
212
+ /**
213
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
214
+ */
215
+ Zone: string;
216
+ /**
217
+ * 日志集名称 长度为1~64位
218
+ */
219
+ LogSetName: string;
220
+ /**
221
+ * 日志集备注 长度为0~255位
222
+ */
223
+ LogSetRemark?: string;
224
+ }
225
+ /**
226
+ * CreateULogServiceLogSet - 创建日志集
227
+ */
228
+ export interface CreateULogServiceLogSetResponse {
229
+ /**
230
+ * 日志集资源ID
231
+ */
232
+ LogSetId?: string;
233
+ }
234
+ /**
235
+ * CreateULogServiceMachineGroup - 创建机器组
236
+ */
237
+ export interface CreateULogServiceMachineGroupRequest {
238
+ /**
239
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
240
+ */
241
+ Zone: string;
242
+ /**
243
+ * 日志服务实例资源ID
244
+ */
245
+ InstanceId: string;
246
+ /**
247
+ * 机器组名称;格式校验:^[\w]{1,23}$
248
+ */
249
+ Name: string;
250
+ /**
251
+ * 采集客户端识别模式;可选值 LABEL | IP;
252
+ */
253
+ Type: string;
254
+ /**
255
+ * 采集客户端识别标识,是一个数组
256
+ */
257
+ Labels?: string;
258
+ /**
259
+ * 机器IP,如果Type是IP,那么Ips可以填写IP,是一个数组
260
+ */
261
+ Ips?: string;
262
+ }
263
+ /**
264
+ * CreateULogServiceMachineGroup - 创建机器组
265
+ */
266
+ export interface CreateULogServiceMachineGroupResponse {
267
+ }
268
+ /**
269
+ * CreateULogServiceTopic - 创建ULogService主题
270
+ */
271
+ export interface CreateULogServiceTopicRequest {
272
+ /**
273
+ * 主题名称,校验规则"^[\w]{1,64}$"
274
+ */
275
+ TopicName: string;
276
+ /**
277
+ * 保存时间 1~730 天
278
+ */
279
+ ReserveAge: number;
280
+ /**
281
+ * 日志集ID
282
+ */
283
+ LogSetId: string;
284
+ /**
285
+ * 分区数量,固定是2
286
+ */
287
+ TopicShardNum: number;
288
+ }
289
+ /**
290
+ * CreateULogServiceTopic - 创建ULogService主题
291
+ */
292
+ export interface CreateULogServiceTopicResponse {
293
+ /**
294
+ * 主题ID
295
+ */
296
+ TopicId?: string;
297
+ }
298
+ /**
299
+ * DeleteULogServiceCollectConf - 删除日志主题采集配置
300
+ */
301
+ export interface DeleteULogServiceCollectConfRequest {
302
+ /**
303
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
304
+ */
305
+ Zone: string;
306
+ /**
307
+ * 日志主题ID
308
+ */
309
+ TopicId: string;
310
+ /**
311
+ * 日志主题采集配置ID
312
+ */
313
+ CollectConfId: number;
314
+ }
315
+ /**
316
+ * DeleteULogServiceCollectConf - 删除日志主题采集配置
317
+ */
318
+ export interface DeleteULogServiceCollectConfResponse {
319
+ }
320
+ /**
321
+ * DeleteULogServiceLogSet - 删除日志集
322
+ */
323
+ export interface DeleteULogServiceLogSetRequest {
324
+ /**
325
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
326
+ */
327
+ Zone: string;
328
+ /**
329
+ * 日志集ID
330
+ */
331
+ LogSetId: string;
332
+ }
333
+ /**
334
+ * DeleteULogServiceLogSet - 删除日志集
335
+ */
336
+ export interface DeleteULogServiceLogSetResponse {
337
+ }
338
+ /**
339
+ * DeleteULogServiceMachineGroup - 删除机器组
340
+ */
341
+ export interface DeleteULogServiceMachineGroupRequest {
342
+ /**
343
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
344
+ */
345
+ Zone: string;
346
+ /**
347
+ * 删除的机器组ID
348
+ */
349
+ Id: number;
350
+ }
351
+ /**
352
+ * DeleteULogServiceMachineGroup - 删除机器组
353
+ */
354
+ export interface DeleteULogServiceMachineGroupResponse {
355
+ }
356
+ /**
357
+ * DeleteULogServiceTopic - 删除ULogService主题
358
+ */
359
+ export interface DeleteULogServiceTopicRequest {
360
+ /**
361
+ * 主题Id
362
+ */
363
+ TopicId: string;
364
+ }
365
+ /**
366
+ * DeleteULogServiceTopic - 删除ULogService主题
367
+ */
368
+ export interface DeleteULogServiceTopicResponse {
369
+ }
370
+ /**
371
+ * DescribeULogServiceMachineGroup - 查询日志采集机器组
372
+ */
373
+ export interface DescribeULogServiceMachineGroupRequest {
374
+ /**
375
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
376
+ */
377
+ Zone: string;
378
+ /**
379
+ * 机器组ID
380
+ */
381
+ Id: string;
382
+ }
383
+ /**
384
+ * DescribeULogServiceMachineGroup - 查询日志采集机器组
385
+ */
386
+ export interface DescribeULogServiceMachineGroupResponse {
387
+ /**
388
+ * 机器组信息
389
+ */
390
+ MachineGroup: {
391
+ /**
392
+ * 机器组ID
393
+ */
394
+ Id?: number;
395
+ /**
396
+ * 机器组名称
397
+ */
398
+ Name?: string;
399
+ /**
400
+ * 机器组类型,取值有:LABEL和IP
401
+ */
402
+ Type?: string;
403
+ /**
404
+ * LogAgent信息,数组类型
405
+ */
406
+ LogAgents?: {
407
+ /**
408
+ * 主机标签
409
+ */
410
+ Label?: string;
411
+ /**
412
+ * 主机IP
413
+ */
414
+ HostIp?: string;
415
+ /**
416
+ * logagent id
417
+ */
418
+ InstanceId?: string;
419
+ /**
420
+ * LogAgent版本
421
+ */
422
+ AgentVersion?: string;
423
+ /**
424
+ * logagent状态,NORMAL:正常,OFFLINE: 离线
425
+ */
426
+ Status?: string;
427
+ /**
428
+ * 离线时间,单位是ms
429
+ */
430
+ OffLineTime?: string;
431
+ };
432
+ /**
433
+ * 机器组标签,数组类型
434
+ */
435
+ Labels?: string[];
436
+ /**
437
+ * 机器组Ip,数组类型
438
+ */
439
+ Ips?: string;
440
+ };
441
+ }
442
+ /**
443
+ * ListULogServiceCollectConf - 查询日志主题采集配置列表
444
+ */
445
+ export interface ListULogServiceCollectConfRequest {
446
+ /**
447
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
448
+ */
449
+ Zone: string;
450
+ /**
451
+ * 日志主题ID
452
+ */
453
+ TopicId: number;
454
+ /**
455
+ * 采集配置ID
456
+ */
457
+ CollectConfId?: number;
458
+ }
459
+ /**
460
+ * ListULogServiceCollectConf - 查询日志主题采集配置列表
461
+ */
462
+ export interface ListULogServiceCollectConfResponse {
463
+ /**
464
+ * 日志采集配置列表
465
+ */
466
+ CollectConfs: {
467
+ /**
468
+ * 日志主题ID
469
+ */
470
+ TopicId: number;
471
+ /**
472
+ * State
473
+ */
474
+ State: number;
475
+ /**
476
+ * 机器组ID,是一个数组
477
+ */
478
+ MachineGroups: {
479
+ /**
480
+ * 机器组ID
481
+ */
482
+ Id?: string;
483
+ /**
484
+ * 机器组名称
485
+ */
486
+ Name?: string;
487
+ /**
488
+ * 采集器识别类型:LABEL:机器标识,IP:IP类型
489
+ */
490
+ Type?: string;
491
+ /**
492
+ * 创建时间
493
+ */
494
+ CreateTime?: number;
495
+ /**
496
+ * 修改时间
497
+ */
498
+ UpdateTime?: number;
499
+ }[];
500
+ /**
501
+ * Id
502
+ */
503
+ Id?: number;
504
+ /**
505
+ * 日志采集配置名称
506
+ */
507
+ Name?: string;
508
+ /**
509
+ * 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志
510
+ */
511
+ LogType?: string;
512
+ /**
513
+ * 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。
514
+ */
515
+ CollectPolicy?: string;
516
+ /**
517
+ * 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。
518
+ */
519
+ Encode?: string;
520
+ /**
521
+ * 索引字段key,是一个数组
522
+ */
523
+ Keys?: string;
524
+ /**
525
+ * 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64
526
+ */
527
+ Delimiter?: string;
528
+ /**
529
+ * 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64
530
+ */
531
+ MatchRule?: string;
532
+ /**
533
+ * 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64
534
+ */
535
+ ExtractRule?: string;
536
+ /**
537
+ * 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。
538
+ */
539
+ UnMatchKey?: string;
540
+ /**
541
+ * FilePaths
542
+ */
543
+ FilePaths?: {
544
+ /**
545
+ * 路径
546
+ */
547
+ Path?: string;
548
+ /**
549
+ * 文件名
550
+ */
551
+ File?: string;
552
+ }[];
553
+ /**
554
+ * CreateTime
555
+ */
556
+ CreateTime?: number;
557
+ /**
558
+ * updateTime
559
+ */
560
+ UpdateTime?: number;
561
+ };
562
+ }
563
+ /**
564
+ * ListULogServiceLogSet - 查询日志集列表
565
+ */
566
+ export interface ListULogServiceLogSetRequest {
567
+ /**
568
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
569
+ */
570
+ Zone: string;
571
+ }
572
+ /**
573
+ * ListULogServiceLogSet - 查询日志集列表
574
+ */
575
+ export interface ListULogServiceLogSetResponse {
576
+ /**
577
+ * 返回日志主题数据,是一个数组
578
+ */
579
+ Data?: {
580
+ /**
581
+ * 日志集下主题数量
582
+ */
583
+ TopicCount?: number;
584
+ /**
585
+ * 日志集备注
586
+ */
587
+ LogSetRemark?: string;
588
+ /**
589
+ * 日志集名称
590
+ */
591
+ LogSetName?: string;
592
+ /**
593
+ * 创建时间
594
+ */
595
+ CreateTime?: number;
596
+ /**
597
+ * 更新时间
598
+ */
599
+ UpdateTime?: number;
600
+ }[];
601
+ }
602
+ /**
603
+ * ListULogServiceMachineGroup - 查看机器组列表
604
+ */
605
+ export interface ListULogServiceMachineGroupRequest {
606
+ /**
607
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
608
+ */
609
+ Zone: string;
610
+ }
611
+ /**
612
+ * ListULogServiceMachineGroup - 查看机器组列表
613
+ */
614
+ export interface ListULogServiceMachineGroupResponse {
615
+ /**
616
+ * 机器组信息列表
617
+ */
618
+ MachineGroups: {
619
+ /**
620
+ * 机器组ID
621
+ */
622
+ Id?: string;
623
+ /**
624
+ * 机器组名称
625
+ */
626
+ Name?: string;
627
+ /**
628
+ * 采集器识别类型:LABEL:机器标识,IP:IP类型
629
+ */
630
+ Type?: string;
631
+ /**
632
+ * 创建时间
633
+ */
634
+ CreateTime?: number;
635
+ /**
636
+ * 修改时间
637
+ */
638
+ UpdateTime?: number;
639
+ }[];
640
+ }
641
+ /**
642
+ * ListULogServiceTopic - 获取ULogService主题
643
+ */
644
+ export interface ListULogServiceTopicRequest {
645
+ /**
646
+ * 日志集ID
647
+ */
648
+ LogSetId: string;
649
+ /**
650
+ * 分页起始条目数, 默认为0
651
+ */
652
+ Offset?: number;
653
+ /**
654
+ * 分页限制数,默认为30
655
+ */
656
+ Limit?: number;
657
+ }
658
+ /**
659
+ * ListULogServiceTopic - 获取ULogService主题
660
+ */
661
+ export interface ListULogServiceTopicResponse {
662
+ /**
663
+ * 主题列表
664
+ */
665
+ Data: {
666
+ /**
667
+ * 主题名称
668
+ */
669
+ TopicName?: string;
670
+ /**
671
+ * 主题ID
672
+ */
673
+ TopicId?: string;
674
+ /**
675
+ * 分区数量,固定是2
676
+ */
677
+ TopicShardNum?: number;
678
+ /**
679
+ * 保存时间 1~730 天
680
+ */
681
+ ReserveAge?: number;
682
+ /**
683
+ * 是否保留:0 - NORMAL, 1 - RESERVED
684
+ */
685
+ IsReserved?: number;
686
+ /**
687
+ * 主题描述
688
+ */
689
+ TopicDesc?: string;
690
+ }[];
691
+ /**
692
+ * 主题总数
693
+ */
694
+ TotalCount: number;
695
+ }
696
+ /**
697
+ * QueryULogServiceLog - 查询ULogService日志
698
+ */
699
+ export interface QueryULogServiceLogRequest {
700
+ /**
701
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
702
+ */
703
+ Zone: string;
704
+ /**
705
+ * 查询条件,使用Base64编码。目前只支持查询索引,多个索引查询使用AND。比如:index1:http AND index2:http2
706
+ */
707
+ QueryCriteria: string;
708
+ /**
709
+ * 日志时间排序;可选值ASC|DESC
710
+ */
711
+ SortOrder: string;
712
+ /**
713
+ * 主题ID
714
+ */
715
+ TopicId: string;
716
+ /**
717
+ * 起始日志时间,秒级时间戳
718
+ */
719
+ StartTime?: number;
720
+ /**
721
+ * 终止日志时间,秒级时间戳
722
+ */
723
+ EndTime?: number;
724
+ /**
725
+ * 一次返回条数,默认20。仅当检索分析语句不包含SQL时有效。SQL结果条数方式可以在SQL里使用limit语法。
726
+ */
727
+ Size?: number;
728
+ /**
729
+ * Deprecated. 滚动加载参数ScrollId
730
+ */
731
+ ScrollId?: string;
732
+ /**
733
+ * 滚动加载参数,上一页最后一条数据的ID
734
+ */
735
+ LastId?: string;
736
+ /**
737
+ * 滚动加载参数,上一页最后一条数据的timestamp
738
+ */
739
+ LastTimestamp?: string;
740
+ }
741
+ /**
742
+ * QueryULogServiceLog - 查询ULogService日志
743
+ */
744
+ export interface QueryULogServiceLogResponse {
745
+ /**
746
+ * 请求结果
747
+ */
748
+ Data?: {
749
+ /**
750
+ * 所属日志ID
751
+ */
752
+ TopicId: string;
753
+ /**
754
+ * 所属日志名称
755
+ */
756
+ TopicName: string;
757
+ /**
758
+ * 检索结果是否到底
759
+ */
760
+ IsOver: boolean;
761
+ /**
762
+ * 日志内容
763
+ */
764
+ Contents: {
765
+ /**
766
+ * 日志标识ID
767
+ */
768
+ LogId: string;
769
+ /**
770
+ * 日志来源主机
771
+ */
772
+ HostName: string;
773
+ /**
774
+ * 日志文件路径
775
+ */
776
+ FileName: string;
777
+ /**
778
+ * 日志时间
779
+ */
780
+ Timestamp: number;
781
+ /**
782
+ * JSON格式的日志内容
783
+ */
784
+ LogJson: string;
785
+ };
786
+ /**
787
+ * 滚动检索Id Deprecated
788
+ */
789
+ ScrollId?: string;
790
+ /**
791
+ * 滚动检索,当前页最后一条数据ID
792
+ */
793
+ LastId?: string;
794
+ /**
795
+ * 滚动检索,当前页最后一条数据Timestamp
796
+ */
797
+ LastTimestamp?: string;
798
+ /**
799
+ * 当使用SQL语句查询时,数据通过AnalysisRecords字段返回,Columns字段返回的是字段名和类型
800
+ */
801
+ Columns?: {
802
+ /**
803
+ * 字段名
804
+ */
805
+ Name: string;
806
+ /**
807
+ * 字段类型
808
+ */
809
+ Type: string;
810
+ }[];
811
+ /**
812
+ * 当使用SQL语句查询时,数据通过该字段返回
813
+ */
814
+ AnalysisRecords?: string[];
815
+ };
816
+ }
817
+ /**
818
+ * UpdateULogServiceCollectConf - 修改日志主题采集配置
819
+ */
820
+ export interface UpdateULogServiceCollectConfRequest {
821
+ /**
822
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
823
+ */
824
+ Zone: string;
825
+ /**
826
+ * 日志主题ID
827
+ */
828
+ TopicId: string;
829
+ /**
830
+ * 日志主题采集配置ID
831
+ */
832
+ CollectConfId: number;
833
+ /**
834
+ * 日志解析类型,决定了如何结构化日志。可选值: json:json 格式,delimiter:分隔符,full_regex:完全正则,multi_line_full_regex:多行完全正则,multi_line_delimiter: 多行分隔符正则,minimal_list:单行全文日志,multi_line:多行全文日志
835
+ */
836
+ LogType: string;
837
+ /**
838
+ * 采集策略。可选值: full (全量采集存量日志), increment (从当前时间点增量采集)。默认为 full。
839
+ */
840
+ CollectPolicy: string;
841
+ /**
842
+ * 日志原文的编码格式。可选值: utf-8, gbk。默认为 utf-8。
843
+ */
844
+ Encode?: string;
845
+ /**
846
+ * 索引字段key,是一个数组
847
+ */
848
+ Keys?: string[];
849
+ /**
850
+ * 当 LogType 为delimiter 或multi_line_delimiter时可选,支持多字符分隔,需要转换成Base64
851
+ */
852
+ Delimiter?: string;
853
+ /**
854
+ * 行首正则表达式。当 logType 为多行模式 (如 multi_line 或 multi_line_full_regex或multi_line_delimiter) 时,用于标识一条新日志的开始。需要转换成Base64
855
+ */
856
+ MatchRule?: string;
857
+ /**
858
+ * 日志提取正则表达式。当 logType 为正则模式 (如 full_regex,multi_line_full_regex) 时,用于从日志中提取字段。需要转换成Base64
859
+ */
860
+ ExtractRule?: string;
861
+ /**
862
+ * 如果 UnMatchUpload 为 true,无法解析的日志原文将被存放在此字段指定的 Key 下。默认为 LogParseFailure。
863
+ */
864
+ UnMatchKey?: string;
865
+ /**
866
+ *
867
+ */
868
+ FilePaths?: {
869
+ /**
870
+ * 定义采集路径,数组类型
871
+ */
872
+ Path?: string;
873
+ /**
874
+ * 定义采集路径的文件名,数组类型
875
+ */
876
+ File?: string;
877
+ }[];
878
+ }
879
+ /**
880
+ * UpdateULogServiceCollectConf - 修改日志主题采集配置
881
+ */
882
+ export interface UpdateULogServiceCollectConfResponse {
883
+ }
884
+ /**
885
+ * UpdateULogServiceMachineGroup - 更新日志机器组
886
+ */
887
+ export interface UpdateULogServiceMachineGroupRequest {
888
+ /**
889
+ * 可用区。参见 [可用区列表](https://docs.ucloud.cn/api/summary/regionlist)
890
+ */
891
+ Zone: string;
892
+ /**
893
+ * 机器组名称; 格式校验:^[\w]{1,255}$
894
+ */
895
+ Name: string;
896
+ /**
897
+ * 采集客户端识别模式;可选值 LABEL | IP;
898
+ */
899
+ Type: string;
900
+ /**
901
+ * 机器组ID
902
+ */
903
+ Id: number;
904
+ /**
905
+ * 采集客户端识别标识,数组类型
906
+ */
907
+ Labels?: string;
908
+ /**
909
+ * 机器IP,如果Type是IP,那么Ips可以填写IP,是一个数组
910
+ */
911
+ Ips?: string;
912
+ }
913
+ /**
914
+ * UpdateULogServiceMachineGroup - 更新日志机器组
915
+ */
916
+ export interface UpdateULogServiceMachineGroupResponse {
917
+ }