tencentcloud-sdk-cls 1.0.275 → 1.0.276

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e26881c3dbb4277bbf33d9be84e5dcc4ef178eba
4
- data.tar.gz: 8f0f4621d0a7b8e574c2a369806785c4d1c788d6
3
+ metadata.gz: 664b7a72e26d2b6ff44e55582c64cceff999c11f
4
+ data.tar.gz: 130c36847f4599782df4294a3ce96d8ad6bfc911
5
5
  SHA512:
6
- metadata.gz: b66ba88840d485a8a35616a0ee0d223e90a1f114fbfed0b7ac866d036c67f61c1b44f1b86d36dcae8b1db560ba76c7d24f1978a7e113b7e75ee9bbb27effcc5d
7
- data.tar.gz: 0d225820c7133b0bcc7fb5d62f66a57c9d97db8c25b0a41872586f7a57b25c55e0b56f5ee119fc1c11d2ed65a1ece9712c54d919c7d8bdf81bcc3a0e4665a2d9
6
+ metadata.gz: 850d33754620e4ca7a9cac05bac3bcb486a1ab55bfcc329ddf03ec90f7a45f216de30df1a26e8feb8549910252806faf98d7f84de0b2f243ba1669a8fc55e652
7
+ data.tar.gz: bced87f7962efc4263a8e30b0dfdabf0dd7755aba1bc84d056a55ff14637fd939099e23f64aa6600d602e3260b38f53dc7537a054f37b80a5858c467cf969b03
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.275
1
+ 1.0.276
@@ -125,6 +125,30 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # 本接口用于创建特殊采集配置任务
129
+
130
+ # @param request: Request instance for CreateConfigExtra.
131
+ # @type request: :class:`Tencentcloud::cls::V20201016::CreateConfigExtraRequest`
132
+ # @rtype: :class:`Tencentcloud::cls::V20201016::CreateConfigExtraResponse`
133
+ def CreateConfigExtra(request)
134
+ body = send_request('CreateConfigExtra', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = CreateConfigExtraResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
128
152
  # 本接口用于创建投递任务
129
153
 
130
154
  # @param request: Request instance for CreateConsumer.
@@ -365,6 +389,30 @@ module TencentCloud
365
389
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
390
  end
367
391
 
392
+ # 本接口用于删除特殊采集规则配置
393
+
394
+ # @param request: Request instance for DeleteConfigExtra.
395
+ # @type request: :class:`Tencentcloud::cls::V20201016::DeleteConfigExtraRequest`
396
+ # @rtype: :class:`Tencentcloud::cls::V20201016::DeleteConfigExtraResponse`
397
+ def DeleteConfigExtra(request)
398
+ body = send_request('DeleteConfigExtra', request.serialize)
399
+ response = JSON.parse(body)
400
+ if response['Response'].key?('Error') == false
401
+ model = DeleteConfigExtraResponse.new
402
+ model.deserialize(response['Response'])
403
+ model
404
+ else
405
+ code = response['Response']['Error']['Code']
406
+ message = response['Response']['Error']['Message']
407
+ reqid = response['Response']['RequestId']
408
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
409
+ end
410
+ rescue TencentCloud::Common::TencentCloudSDKException => e
411
+ raise e
412
+ rescue StandardError => e
413
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
+ end
415
+
368
416
  # 删除应用到机器组的采集配置
369
417
 
370
418
  # @param request: Request instance for DeleteConfigFromMachineGroup.
@@ -605,6 +653,30 @@ module TencentCloud
605
653
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
654
  end
607
655
 
656
+ # 本接口用于获取特殊采集配置
657
+
658
+ # @param request: Request instance for DescribeConfigExtras.
659
+ # @type request: :class:`Tencentcloud::cls::V20201016::DescribeConfigExtrasRequest`
660
+ # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeConfigExtrasResponse`
661
+ def DescribeConfigExtras(request)
662
+ body = send_request('DescribeConfigExtras', request.serialize)
663
+ response = JSON.parse(body)
664
+ if response['Response'].key?('Error') == false
665
+ model = DescribeConfigExtrasResponse.new
666
+ model.deserialize(response['Response'])
667
+ model
668
+ else
669
+ code = response['Response']['Error']['Code']
670
+ message = response['Response']['Error']['Message']
671
+ reqid = response['Response']['RequestId']
672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
673
+ end
674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
675
+ raise e
676
+ rescue StandardError => e
677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
+ end
679
+
608
680
  # 获取采集规则配置所绑定的机器组
609
681
 
610
682
  # @param request: Request instance for DescribeConfigMachineGroups.
@@ -1061,6 +1133,30 @@ module TencentCloud
1061
1133
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1062
1134
  end
1063
1135
 
1136
+ # 本接口用于修改特殊采集配置任务
1137
+
1138
+ # @param request: Request instance for ModifyConfigExtra.
1139
+ # @type request: :class:`Tencentcloud::cls::V20201016::ModifyConfigExtraRequest`
1140
+ # @rtype: :class:`Tencentcloud::cls::V20201016::ModifyConfigExtraResponse`
1141
+ def ModifyConfigExtra(request)
1142
+ body = send_request('ModifyConfigExtra', request.serialize)
1143
+ response = JSON.parse(body)
1144
+ if response['Response'].key?('Error') == false
1145
+ model = ModifyConfigExtraResponse.new
1146
+ model.deserialize(response['Response'])
1147
+ model
1148
+ else
1149
+ code = response['Response']['Error']['Code']
1150
+ message = response['Response']['Error']['Message']
1151
+ reqid = response['Response']['RequestId']
1152
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1153
+ end
1154
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1155
+ raise e
1156
+ rescue StandardError => e
1157
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1158
+ end
1159
+
1064
1160
  # 本接口用于修改投递任务
1065
1161
 
1066
1162
  # @param request: Request instance for ModifyConsumer.
@@ -403,6 +403,125 @@ module TencentCloud
403
403
  end
404
404
  end
405
405
 
406
+ # 特殊采集规则配置信息
407
+ class ConfigExtraInfo < TencentCloud::Common::AbstractModel
408
+ # @param ConfigExtraId: 采集规则扩展配置ID
409
+ # @type ConfigExtraId: String
410
+ # @param Name: 采集规则名称
411
+ # @type Name: String
412
+ # @param TopicId: 日志主题ID
413
+ # @type TopicId: String
414
+ # @param Type: 类型:container_stdout、container_file、host_file
415
+ # @type Type: String
416
+ # @param HostFile: 节点文件配置信息
417
+ # 注意:此字段可能返回 null,表示取不到有效值。
418
+ # @type HostFile: :class:`Tencentcloud::Cls.v20201016.models.HostFileInfo`
419
+ # @param ContainerFile: 容器文件路径信息
420
+ # 注意:此字段可能返回 null,表示取不到有效值。
421
+ # @type ContainerFile: :class:`Tencentcloud::Cls.v20201016.models.ContainerFileInfo`
422
+ # @param ContainerStdout: 容器标准输出信息
423
+ # 注意:此字段可能返回 null,表示取不到有效值。
424
+ # @type ContainerStdout: :class:`Tencentcloud::Cls.v20201016.models.ContainerStdoutInfo`
425
+ # @param LogFormat: 日志格式化方式
426
+ # 注意:此字段可能返回 null,表示取不到有效值。
427
+ # @type LogFormat: String
428
+ # @param LogType: 采集的日志类型,json_log代表json格式日志,delimiter_log代表分隔符格式日志,minimalist_log代表极简日志,multiline_log代表多行日志,fullregex_log代表完整正则,默认为minimalist_log
429
+ # 注意:此字段可能返回 null,表示取不到有效值。
430
+ # @type LogType: String
431
+ # @param ExtractRule: 提取规则,如果设置了ExtractRule,则必须设置LogType
432
+ # 注意:此字段可能返回 null,表示取不到有效值。
433
+ # @type ExtractRule: :class:`Tencentcloud::Cls.v20201016.models.ExtractRuleInfo`
434
+ # @param ExcludePaths: 采集黑名单路径列表
435
+ # 注意:此字段可能返回 null,表示取不到有效值。
436
+ # @type ExcludePaths: Array
437
+ # @param UpdateTime: 更新时间
438
+ # @type UpdateTime: String
439
+ # @param CreateTime: 创建时间
440
+ # @type CreateTime: String
441
+ # @param UserDefineRule: 用户自定义解析字符串
442
+ # 注意:此字段可能返回 null,表示取不到有效值。
443
+ # @type UserDefineRule: String
444
+ # @param GroupId: 机器组ID
445
+ # @type GroupId: String
446
+ # @param ConfigFlag: 自建采集配置标
447
+ # 注意:此字段可能返回 null,表示取不到有效值。
448
+ # @type ConfigFlag: String
449
+ # @param LogsetId: 日志集ID
450
+ # 注意:此字段可能返回 null,表示取不到有效值。
451
+ # @type LogsetId: String
452
+ # @param LogsetName: 日志集name
453
+ # 注意:此字段可能返回 null,表示取不到有效值。
454
+ # @type LogsetName: String
455
+ # @param TopicName: 日志主题name
456
+ # 注意:此字段可能返回 null,表示取不到有效值。
457
+ # @type TopicName: String
458
+
459
+ attr_accessor :ConfigExtraId, :Name, :TopicId, :Type, :HostFile, :ContainerFile, :ContainerStdout, :LogFormat, :LogType, :ExtractRule, :ExcludePaths, :UpdateTime, :CreateTime, :UserDefineRule, :GroupId, :ConfigFlag, :LogsetId, :LogsetName, :TopicName
460
+
461
+ def initialize(configextraid=nil, name=nil, topicid=nil, type=nil, hostfile=nil, containerfile=nil, containerstdout=nil, logformat=nil, logtype=nil, extractrule=nil, excludepaths=nil, updatetime=nil, createtime=nil, userdefinerule=nil, groupid=nil, configflag=nil, logsetid=nil, logsetname=nil, topicname=nil)
462
+ @ConfigExtraId = configextraid
463
+ @Name = name
464
+ @TopicId = topicid
465
+ @Type = type
466
+ @HostFile = hostfile
467
+ @ContainerFile = containerfile
468
+ @ContainerStdout = containerstdout
469
+ @LogFormat = logformat
470
+ @LogType = logtype
471
+ @ExtractRule = extractrule
472
+ @ExcludePaths = excludepaths
473
+ @UpdateTime = updatetime
474
+ @CreateTime = createtime
475
+ @UserDefineRule = userdefinerule
476
+ @GroupId = groupid
477
+ @ConfigFlag = configflag
478
+ @LogsetId = logsetid
479
+ @LogsetName = logsetname
480
+ @TopicName = topicname
481
+ end
482
+
483
+ def deserialize(params)
484
+ @ConfigExtraId = params['ConfigExtraId']
485
+ @Name = params['Name']
486
+ @TopicId = params['TopicId']
487
+ @Type = params['Type']
488
+ unless params['HostFile'].nil?
489
+ @HostFile = HostFileInfo.new
490
+ @HostFile.deserialize(params['HostFile'])
491
+ end
492
+ unless params['ContainerFile'].nil?
493
+ @ContainerFile = ContainerFileInfo.new
494
+ @ContainerFile.deserialize(params['ContainerFile'])
495
+ end
496
+ unless params['ContainerStdout'].nil?
497
+ @ContainerStdout = ContainerStdoutInfo.new
498
+ @ContainerStdout.deserialize(params['ContainerStdout'])
499
+ end
500
+ @LogFormat = params['LogFormat']
501
+ @LogType = params['LogType']
502
+ unless params['ExtractRule'].nil?
503
+ @ExtractRule = ExtractRuleInfo.new
504
+ @ExtractRule.deserialize(params['ExtractRule'])
505
+ end
506
+ unless params['ExcludePaths'].nil?
507
+ @ExcludePaths = []
508
+ params['ExcludePaths'].each do |i|
509
+ excludepathinfo_tmp = ExcludePathInfo.new
510
+ excludepathinfo_tmp.deserialize(i)
511
+ @ExcludePaths << excludepathinfo_tmp
512
+ end
513
+ end
514
+ @UpdateTime = params['UpdateTime']
515
+ @CreateTime = params['CreateTime']
516
+ @UserDefineRule = params['UserDefineRule']
517
+ @GroupId = params['GroupId']
518
+ @ConfigFlag = params['ConfigFlag']
519
+ @LogsetId = params['LogsetId']
520
+ @LogsetName = params['LogsetName']
521
+ @TopicName = params['TopicName']
522
+ end
523
+ end
524
+
406
525
  # 采集规则配置信息
407
526
  class ConfigInfo < TencentCloud::Common::AbstractModel
408
527
  # @param ConfigId: 采集规则配置ID
@@ -480,17 +599,156 @@ module TencentCloud
480
599
  # @param MetaFields: 需要投递的元数据列表,目前仅支持:__SOURCE__,__FILENAME__和__TIMESTAMP__
481
600
  # 注意:此字段可能返回 null,表示取不到有效值。
482
601
  # @type MetaFields: Array
602
+ # @param TagJsonNotTiled: 当EnableTag为true时,必须填写TagJsonNotTiled字段,TagJsonNotTiled用于标识tag信息是否json平铺,TagJsonNotTiled为true时不平铺,false时平铺
603
+ # 注意:此字段可能返回 null,表示取不到有效值。
604
+ # @type TagJsonNotTiled: Boolean
483
605
 
484
- attr_accessor :EnableTag, :MetaFields
606
+ attr_accessor :EnableTag, :MetaFields, :TagJsonNotTiled
485
607
 
486
- def initialize(enabletag=nil, metafields=nil)
608
+ def initialize(enabletag=nil, metafields=nil, tagjsonnottiled=nil)
487
609
  @EnableTag = enabletag
488
610
  @MetaFields = metafields
611
+ @TagJsonNotTiled = tagjsonnottiled
489
612
  end
490
613
 
491
614
  def deserialize(params)
492
615
  @EnableTag = params['EnableTag']
493
616
  @MetaFields = params['MetaFields']
617
+ @TagJsonNotTiled = params['TagJsonNotTiled']
618
+ end
619
+ end
620
+
621
+ # 自建k8s-容器文件路径信息
622
+ class ContainerFileInfo < TencentCloud::Common::AbstractModel
623
+ # @param Namespace: namespace可以多个,用分隔号分割,例如A,B
624
+ # @type Namespace: String
625
+ # @param Container: 容器名称
626
+ # @type Container: String
627
+ # @param LogPath: 日志文件夹
628
+ # @type LogPath: String
629
+ # @param FilePattern: 日志名称
630
+ # @type FilePattern: String
631
+ # @param IncludeLabels: pod标签信息
632
+ # 注意:此字段可能返回 null,表示取不到有效值。
633
+ # @type IncludeLabels: Array
634
+ # @param WorkLoad: 工作负载信息
635
+ # 注意:此字段可能返回 null,表示取不到有效值。
636
+ # @type WorkLoad: :class:`Tencentcloud::Cls.v20201016.models.ContainerWorkLoadInfo`
637
+ # @param ExcludeNamespace: 需要排除的namespace可以多个,用分隔号分割,例如A,B
638
+ # 注意:此字段可能返回 null,表示取不到有效值。
639
+ # @type ExcludeNamespace: String
640
+ # @param ExcludeLabels: 需要排除的pod标签信息
641
+ # 注意:此字段可能返回 null,表示取不到有效值。
642
+ # @type ExcludeLabels: Array
643
+
644
+ attr_accessor :Namespace, :Container, :LogPath, :FilePattern, :IncludeLabels, :WorkLoad, :ExcludeNamespace, :ExcludeLabels
645
+
646
+ def initialize(namespace=nil, container=nil, logpath=nil, filepattern=nil, includelabels=nil, workload=nil, excludenamespace=nil, excludelabels=nil)
647
+ @Namespace = namespace
648
+ @Container = container
649
+ @LogPath = logpath
650
+ @FilePattern = filepattern
651
+ @IncludeLabels = includelabels
652
+ @WorkLoad = workload
653
+ @ExcludeNamespace = excludenamespace
654
+ @ExcludeLabels = excludelabels
655
+ end
656
+
657
+ def deserialize(params)
658
+ @Namespace = params['Namespace']
659
+ @Container = params['Container']
660
+ @LogPath = params['LogPath']
661
+ @FilePattern = params['FilePattern']
662
+ @IncludeLabels = params['IncludeLabels']
663
+ unless params['WorkLoad'].nil?
664
+ @WorkLoad = ContainerWorkLoadInfo.new
665
+ @WorkLoad.deserialize(params['WorkLoad'])
666
+ end
667
+ @ExcludeNamespace = params['ExcludeNamespace']
668
+ @ExcludeLabels = params['ExcludeLabels']
669
+ end
670
+ end
671
+
672
+ # 自建k8s-容器标准输出信息
673
+ class ContainerStdoutInfo < TencentCloud::Common::AbstractModel
674
+ # @param AllContainers: 是否所有容器
675
+ # @type AllContainers: Boolean
676
+ # @param Container: container为空表所有的,不为空采集指定的容器
677
+ # 注意:此字段可能返回 null,表示取不到有效值。
678
+ # @type Container: String
679
+ # @param Namespace: namespace可以多个,用分隔号分割,例如A,B;为空或者没有这个字段,表示所有namespace
680
+ # 注意:此字段可能返回 null,表示取不到有效值。
681
+ # @type Namespace: String
682
+ # @param IncludeLabels: pod标签信息
683
+ # 注意:此字段可能返回 null,表示取不到有效值。
684
+ # @type IncludeLabels: Array
685
+ # @param WorkLoads: 工作负载信息
686
+ # 注意:此字段可能返回 null,表示取不到有效值。
687
+ # @type WorkLoads: Array
688
+ # @param ExcludeNamespace: 需要排除的namespace可以多个,用分隔号分割,例如A,B
689
+ # 注意:此字段可能返回 null,表示取不到有效值。
690
+ # @type ExcludeNamespace: String
691
+ # @param ExcludeLabels: 需要排除的pod标签信息
692
+ # 注意:此字段可能返回 null,表示取不到有效值。
693
+ # @type ExcludeLabels: Array
694
+
695
+ attr_accessor :AllContainers, :Container, :Namespace, :IncludeLabels, :WorkLoads, :ExcludeNamespace, :ExcludeLabels
696
+
697
+ def initialize(allcontainers=nil, container=nil, namespace=nil, includelabels=nil, workloads=nil, excludenamespace=nil, excludelabels=nil)
698
+ @AllContainers = allcontainers
699
+ @Container = container
700
+ @Namespace = namespace
701
+ @IncludeLabels = includelabels
702
+ @WorkLoads = workloads
703
+ @ExcludeNamespace = excludenamespace
704
+ @ExcludeLabels = excludelabels
705
+ end
706
+
707
+ def deserialize(params)
708
+ @AllContainers = params['AllContainers']
709
+ @Container = params['Container']
710
+ @Namespace = params['Namespace']
711
+ @IncludeLabels = params['IncludeLabels']
712
+ unless params['WorkLoads'].nil?
713
+ @WorkLoads = []
714
+ params['WorkLoads'].each do |i|
715
+ containerworkloadinfo_tmp = ContainerWorkLoadInfo.new
716
+ containerworkloadinfo_tmp.deserialize(i)
717
+ @WorkLoads << containerworkloadinfo_tmp
718
+ end
719
+ end
720
+ @ExcludeNamespace = params['ExcludeNamespace']
721
+ @ExcludeLabels = params['ExcludeLabels']
722
+ end
723
+ end
724
+
725
+ # 自建k8s-工作负载信息
726
+ class ContainerWorkLoadInfo < TencentCloud::Common::AbstractModel
727
+ # @param Kind: 工作负载的类型
728
+ # @type Kind: String
729
+ # @param Name: 工作负载的名称
730
+ # @type Name: String
731
+ # @param Container: 容器名
732
+ # 注意:此字段可能返回 null,表示取不到有效值。
733
+ # @type Container: String
734
+ # @param Namespace: 命名空间
735
+ # 注意:此字段可能返回 null,表示取不到有效值。
736
+ # @type Namespace: String
737
+
738
+ attr_accessor :Kind, :Name, :Container, :Namespace
739
+
740
+ def initialize(kind=nil, name=nil, container=nil, namespace=nil)
741
+ @Kind = kind
742
+ @Name = name
743
+ @Container = container
744
+ @Namespace = namespace
745
+ end
746
+
747
+ def deserialize(params)
748
+ @Kind = params['Kind']
749
+ @Name = params['Name']
750
+ @Container = params['Container']
751
+ @Namespace = params['Namespace']
494
752
  end
495
753
  end
496
754
 
@@ -687,6 +945,125 @@ module TencentCloud
687
945
  end
688
946
  end
689
947
 
948
+ # CreateConfigExtra请求参数结构体
949
+ class CreateConfigExtraRequest < TencentCloud::Common::AbstractModel
950
+ # @param Name: 采集配置规程名称,最长63个字符,只能包含小写字符、数字及分隔符(“-”),且必须以小写字符开头,数字或小写字符结尾
951
+ # @type Name: String
952
+ # @param TopicId: 日志主题id
953
+ # @type TopicId: String
954
+ # @param Type: 类型:container_stdout、container_file、host_file
955
+ # @type Type: String
956
+ # @param LogType: 采集的日志类型,json_log代表json格式日志,delimiter_log代表分隔符格式日志,minimalist_log代表极简日志,multiline_log代表多行日志,fullregex_log代表完整正则,默认为minimalist_log
957
+ # @type LogType: String
958
+ # @param ConfigFlag: 采集配置标
959
+ # @type ConfigFlag: String
960
+ # @param LogsetId: 日志集id
961
+ # @type LogsetId: String
962
+ # @param LogsetName: 日志集name
963
+ # @type LogsetName: String
964
+ # @param TopicName: 日志主题名称
965
+ # @type TopicName: String
966
+ # @param HostFile: 节点文件配置信息
967
+ # @type HostFile: :class:`Tencentcloud::Cls.v20201016.models.HostFileInfo`
968
+ # @param ContainerFile: 容器文件路径信息
969
+ # @type ContainerFile: :class:`Tencentcloud::Cls.v20201016.models.ContainerFileInfo`
970
+ # @param ContainerStdout: 容器标准输出信息
971
+ # @type ContainerStdout: :class:`Tencentcloud::Cls.v20201016.models.ContainerStdoutInfo`
972
+ # @param LogFormat: 日志格式化方式
973
+ # @type LogFormat: String
974
+ # @param ExtractRule: 提取规则,如果设置了ExtractRule,则必须设置LogType
975
+ # @type ExtractRule: :class:`Tencentcloud::Cls.v20201016.models.ExtractRuleInfo`
976
+ # @param ExcludePaths: 采集黑名单路径列表
977
+ # @type ExcludePaths: Array
978
+ # @param UserDefineRule: 用户自定义采集规则,Json格式序列化的字符串
979
+ # @type UserDefineRule: String
980
+ # @param GroupId: 绑定的机器组id
981
+ # @type GroupId: String
982
+ # @param GroupIds: 绑定的机器组id列表
983
+ # @type GroupIds: Array
984
+
985
+ attr_accessor :Name, :TopicId, :Type, :LogType, :ConfigFlag, :LogsetId, :LogsetName, :TopicName, :HostFile, :ContainerFile, :ContainerStdout, :LogFormat, :ExtractRule, :ExcludePaths, :UserDefineRule, :GroupId, :GroupIds
986
+
987
+ def initialize(name=nil, topicid=nil, type=nil, logtype=nil, configflag=nil, logsetid=nil, logsetname=nil, topicname=nil, hostfile=nil, containerfile=nil, containerstdout=nil, logformat=nil, extractrule=nil, excludepaths=nil, userdefinerule=nil, groupid=nil, groupids=nil)
988
+ @Name = name
989
+ @TopicId = topicid
990
+ @Type = type
991
+ @LogType = logtype
992
+ @ConfigFlag = configflag
993
+ @LogsetId = logsetid
994
+ @LogsetName = logsetname
995
+ @TopicName = topicname
996
+ @HostFile = hostfile
997
+ @ContainerFile = containerfile
998
+ @ContainerStdout = containerstdout
999
+ @LogFormat = logformat
1000
+ @ExtractRule = extractrule
1001
+ @ExcludePaths = excludepaths
1002
+ @UserDefineRule = userdefinerule
1003
+ @GroupId = groupid
1004
+ @GroupIds = groupids
1005
+ end
1006
+
1007
+ def deserialize(params)
1008
+ @Name = params['Name']
1009
+ @TopicId = params['TopicId']
1010
+ @Type = params['Type']
1011
+ @LogType = params['LogType']
1012
+ @ConfigFlag = params['ConfigFlag']
1013
+ @LogsetId = params['LogsetId']
1014
+ @LogsetName = params['LogsetName']
1015
+ @TopicName = params['TopicName']
1016
+ unless params['HostFile'].nil?
1017
+ @HostFile = HostFileInfo.new
1018
+ @HostFile.deserialize(params['HostFile'])
1019
+ end
1020
+ unless params['ContainerFile'].nil?
1021
+ @ContainerFile = ContainerFileInfo.new
1022
+ @ContainerFile.deserialize(params['ContainerFile'])
1023
+ end
1024
+ unless params['ContainerStdout'].nil?
1025
+ @ContainerStdout = ContainerStdoutInfo.new
1026
+ @ContainerStdout.deserialize(params['ContainerStdout'])
1027
+ end
1028
+ @LogFormat = params['LogFormat']
1029
+ unless params['ExtractRule'].nil?
1030
+ @ExtractRule = ExtractRuleInfo.new
1031
+ @ExtractRule.deserialize(params['ExtractRule'])
1032
+ end
1033
+ unless params['ExcludePaths'].nil?
1034
+ @ExcludePaths = []
1035
+ params['ExcludePaths'].each do |i|
1036
+ excludepathinfo_tmp = ExcludePathInfo.new
1037
+ excludepathinfo_tmp.deserialize(i)
1038
+ @ExcludePaths << excludepathinfo_tmp
1039
+ end
1040
+ end
1041
+ @UserDefineRule = params['UserDefineRule']
1042
+ @GroupId = params['GroupId']
1043
+ @GroupIds = params['GroupIds']
1044
+ end
1045
+ end
1046
+
1047
+ # CreateConfigExtra返回参数结构体
1048
+ class CreateConfigExtraResponse < TencentCloud::Common::AbstractModel
1049
+ # @param ConfigExtraId: 采集配置扩展信息ID
1050
+ # @type ConfigExtraId: String
1051
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1052
+ # @type RequestId: String
1053
+
1054
+ attr_accessor :ConfigExtraId, :RequestId
1055
+
1056
+ def initialize(configextraid=nil, requestid=nil)
1057
+ @ConfigExtraId = configextraid
1058
+ @RequestId = requestid
1059
+ end
1060
+
1061
+ def deserialize(params)
1062
+ @ConfigExtraId = params['ConfigExtraId']
1063
+ @RequestId = params['RequestId']
1064
+ end
1065
+ end
1066
+
690
1067
  # CreateConfig请求参数结构体
691
1068
  class CreateConfigRequest < TencentCloud::Common::AbstractModel
692
1069
  # @param Name: 采集配置名称
@@ -1280,6 +1657,38 @@ module TencentCloud
1280
1657
  end
1281
1658
  end
1282
1659
 
1660
+ # DeleteConfigExtra请求参数结构体
1661
+ class DeleteConfigExtraRequest < TencentCloud::Common::AbstractModel
1662
+ # @param ConfigExtraId: 采集规则扩展配置ID
1663
+ # @type ConfigExtraId: String
1664
+
1665
+ attr_accessor :ConfigExtraId
1666
+
1667
+ def initialize(configextraid=nil)
1668
+ @ConfigExtraId = configextraid
1669
+ end
1670
+
1671
+ def deserialize(params)
1672
+ @ConfigExtraId = params['ConfigExtraId']
1673
+ end
1674
+ end
1675
+
1676
+ # DeleteConfigExtra返回参数结构体
1677
+ class DeleteConfigExtraResponse < TencentCloud::Common::AbstractModel
1678
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1679
+ # @type RequestId: String
1680
+
1681
+ attr_accessor :RequestId
1682
+
1683
+ def initialize(requestid=nil)
1684
+ @RequestId = requestid
1685
+ end
1686
+
1687
+ def deserialize(params)
1688
+ @RequestId = params['RequestId']
1689
+ end
1690
+ end
1691
+
1283
1692
  # DeleteConfigFromMachineGroup请求参数结构体
1284
1693
  class DeleteConfigFromMachineGroupRequest < TencentCloud::Common::AbstractModel
1285
1694
  # @param GroupId: 机器组ID
@@ -1746,6 +2155,69 @@ module TencentCloud
1746
2155
  end
1747
2156
  end
1748
2157
 
2158
+ # DescribeConfigExtras请求参数结构体
2159
+ class DescribeConfigExtrasRequest < TencentCloud::Common::AbstractModel
2160
+ # @param Filters: 支持的key: topicId,name, configExtraId, machineGroupId
2161
+ # @type Filters: Array
2162
+ # @param Offset: 分页的偏移量,默认值为0
2163
+ # @type Offset: Integer
2164
+ # @param Limit: 分页单页的限制数目,默认值为20,最大值100
2165
+ # @type Limit: Integer
2166
+
2167
+ attr_accessor :Filters, :Offset, :Limit
2168
+
2169
+ def initialize(filters=nil, offset=nil, limit=nil)
2170
+ @Filters = filters
2171
+ @Offset = offset
2172
+ @Limit = limit
2173
+ end
2174
+
2175
+ def deserialize(params)
2176
+ unless params['Filters'].nil?
2177
+ @Filters = []
2178
+ params['Filters'].each do |i|
2179
+ filter_tmp = Filter.new
2180
+ filter_tmp.deserialize(i)
2181
+ @Filters << filter_tmp
2182
+ end
2183
+ end
2184
+ @Offset = params['Offset']
2185
+ @Limit = params['Limit']
2186
+ end
2187
+ end
2188
+
2189
+ # DescribeConfigExtras返回参数结构体
2190
+ class DescribeConfigExtrasResponse < TencentCloud::Common::AbstractModel
2191
+ # @param Configs: 采集配置列表
2192
+ # 注意:此字段可能返回 null,表示取不到有效值。
2193
+ # @type Configs: Array
2194
+ # @param TotalCount: 过滤到的总数目
2195
+ # @type TotalCount: Integer
2196
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2197
+ # @type RequestId: String
2198
+
2199
+ attr_accessor :Configs, :TotalCount, :RequestId
2200
+
2201
+ def initialize(configs=nil, totalcount=nil, requestid=nil)
2202
+ @Configs = configs
2203
+ @TotalCount = totalcount
2204
+ @RequestId = requestid
2205
+ end
2206
+
2207
+ def deserialize(params)
2208
+ unless params['Configs'].nil?
2209
+ @Configs = []
2210
+ params['Configs'].each do |i|
2211
+ configextrainfo_tmp = ConfigExtraInfo.new
2212
+ configextrainfo_tmp.deserialize(i)
2213
+ @Configs << configextrainfo_tmp
2214
+ end
2215
+ end
2216
+ @TotalCount = params['TotalCount']
2217
+ @RequestId = params['RequestId']
2218
+ end
2219
+ end
2220
+
1749
2221
  # DescribeConfigMachineGroups请求参数结构体
1750
2222
  class DescribeConfigMachineGroupsRequest < TencentCloud::Common::AbstractModel
1751
2223
  # @param ConfigId: 采集配置ID
@@ -2978,6 +3450,31 @@ module TencentCloud
2978
3450
  end
2979
3451
  end
2980
3452
 
3453
+ # 自建k8s-节点文件配置信息
3454
+ class HostFileInfo < TencentCloud::Common::AbstractModel
3455
+ # @param LogPath: 日志文件夹
3456
+ # @type LogPath: String
3457
+ # @param FilePattern: 日志文件名
3458
+ # @type FilePattern: String
3459
+ # @param CustomLabels: metadata信息
3460
+ # 注意:此字段可能返回 null,表示取不到有效值。
3461
+ # @type CustomLabels: Array
3462
+
3463
+ attr_accessor :LogPath, :FilePattern, :CustomLabels
3464
+
3465
+ def initialize(logpath=nil, filepattern=nil, customlabels=nil)
3466
+ @LogPath = logpath
3467
+ @FilePattern = filepattern
3468
+ @CustomLabels = customlabels
3469
+ end
3470
+
3471
+ def deserialize(params)
3472
+ @LogPath = params['LogPath']
3473
+ @FilePattern = params['FilePattern']
3474
+ @CustomLabels = params['CustomLabels']
3475
+ end
3476
+ end
3477
+
2981
3478
  # JSON类型描述
2982
3479
  class JsonInfo < TencentCloud::Common::AbstractModel
2983
3480
  # @param EnableTag: 启用标志
@@ -3545,6 +4042,121 @@ module TencentCloud
3545
4042
  end
3546
4043
  end
3547
4044
 
4045
+ # ModifyConfigExtra请求参数结构体
4046
+ class ModifyConfigExtraRequest < TencentCloud::Common::AbstractModel
4047
+ # @param ConfigExtraId: 采集配置扩展信息id
4048
+ # @type ConfigExtraId: String
4049
+ # @param Name: 采集配置规程名称,最长63个字符,只能包含小写字符、数字及分隔符(“-”),且必须以小写字符开头,数字或小写字符结尾
4050
+ # @type Name: String
4051
+ # @param TopicId: 日志主题id
4052
+ # @type TopicId: String
4053
+ # @param HostFile: 节点文件配置信息
4054
+ # @type HostFile: :class:`Tencentcloud::Cls.v20201016.models.HostFileInfo`
4055
+ # @param ContainerFile: 容器文件路径信息
4056
+ # @type ContainerFile: :class:`Tencentcloud::Cls.v20201016.models.ContainerFileInfo`
4057
+ # @param ContainerStdout: 容器标准输出信息
4058
+ # @type ContainerStdout: :class:`Tencentcloud::Cls.v20201016.models.ContainerStdoutInfo`
4059
+ # @param LogType: 采集的日志类型,json_log代表json格式日志,delimiter_log代表分隔符格式日志,minimalist_log代表极简日志,multiline_log代表多行日志,fullregex_log代表完整正则,默认为minimalist_log
4060
+ # @type LogType: String
4061
+ # @param LogFormat: 日志格式化方式
4062
+ # @type LogFormat: String
4063
+ # @param ExtractRule: 提取规则,如果设置了ExtractRule,则必须设置LogType
4064
+ # @type ExtractRule: :class:`Tencentcloud::Cls.v20201016.models.ExtractRuleInfo`
4065
+ # @param ExcludePaths: 采集黑名单路径列表
4066
+ # @type ExcludePaths: Array
4067
+ # @param UserDefineRule: 用户自定义采集规则,Json格式序列化的字符串
4068
+ # @type UserDefineRule: String
4069
+ # @param Type: 类型:container_stdout、container_file、host_file
4070
+ # @type Type: String
4071
+ # @param GroupId: 机器组ID
4072
+ # @type GroupId: String
4073
+ # @param ConfigFlag: 自建采集配置标
4074
+ # @type ConfigFlag: String
4075
+ # @param LogsetId: 日志集ID
4076
+ # @type LogsetId: String
4077
+ # @param LogsetName: 日志集name
4078
+ # @type LogsetName: String
4079
+ # @param TopicName: 日志主题name
4080
+ # @type TopicName: String
4081
+
4082
+ attr_accessor :ConfigExtraId, :Name, :TopicId, :HostFile, :ContainerFile, :ContainerStdout, :LogType, :LogFormat, :ExtractRule, :ExcludePaths, :UserDefineRule, :Type, :GroupId, :ConfigFlag, :LogsetId, :LogsetName, :TopicName
4083
+
4084
+ def initialize(configextraid=nil, name=nil, topicid=nil, hostfile=nil, containerfile=nil, containerstdout=nil, logtype=nil, logformat=nil, extractrule=nil, excludepaths=nil, userdefinerule=nil, type=nil, groupid=nil, configflag=nil, logsetid=nil, logsetname=nil, topicname=nil)
4085
+ @ConfigExtraId = configextraid
4086
+ @Name = name
4087
+ @TopicId = topicid
4088
+ @HostFile = hostfile
4089
+ @ContainerFile = containerfile
4090
+ @ContainerStdout = containerstdout
4091
+ @LogType = logtype
4092
+ @LogFormat = logformat
4093
+ @ExtractRule = extractrule
4094
+ @ExcludePaths = excludepaths
4095
+ @UserDefineRule = userdefinerule
4096
+ @Type = type
4097
+ @GroupId = groupid
4098
+ @ConfigFlag = configflag
4099
+ @LogsetId = logsetid
4100
+ @LogsetName = logsetname
4101
+ @TopicName = topicname
4102
+ end
4103
+
4104
+ def deserialize(params)
4105
+ @ConfigExtraId = params['ConfigExtraId']
4106
+ @Name = params['Name']
4107
+ @TopicId = params['TopicId']
4108
+ unless params['HostFile'].nil?
4109
+ @HostFile = HostFileInfo.new
4110
+ @HostFile.deserialize(params['HostFile'])
4111
+ end
4112
+ unless params['ContainerFile'].nil?
4113
+ @ContainerFile = ContainerFileInfo.new
4114
+ @ContainerFile.deserialize(params['ContainerFile'])
4115
+ end
4116
+ unless params['ContainerStdout'].nil?
4117
+ @ContainerStdout = ContainerStdoutInfo.new
4118
+ @ContainerStdout.deserialize(params['ContainerStdout'])
4119
+ end
4120
+ @LogType = params['LogType']
4121
+ @LogFormat = params['LogFormat']
4122
+ unless params['ExtractRule'].nil?
4123
+ @ExtractRule = ExtractRuleInfo.new
4124
+ @ExtractRule.deserialize(params['ExtractRule'])
4125
+ end
4126
+ unless params['ExcludePaths'].nil?
4127
+ @ExcludePaths = []
4128
+ params['ExcludePaths'].each do |i|
4129
+ excludepathinfo_tmp = ExcludePathInfo.new
4130
+ excludepathinfo_tmp.deserialize(i)
4131
+ @ExcludePaths << excludepathinfo_tmp
4132
+ end
4133
+ end
4134
+ @UserDefineRule = params['UserDefineRule']
4135
+ @Type = params['Type']
4136
+ @GroupId = params['GroupId']
4137
+ @ConfigFlag = params['ConfigFlag']
4138
+ @LogsetId = params['LogsetId']
4139
+ @LogsetName = params['LogsetName']
4140
+ @TopicName = params['TopicName']
4141
+ end
4142
+ end
4143
+
4144
+ # ModifyConfigExtra返回参数结构体
4145
+ class ModifyConfigExtraResponse < TencentCloud::Common::AbstractModel
4146
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4147
+ # @type RequestId: String
4148
+
4149
+ attr_accessor :RequestId
4150
+
4151
+ def initialize(requestid=nil)
4152
+ @RequestId = requestid
4153
+ end
4154
+
4155
+ def deserialize(params)
4156
+ @RequestId = params['RequestId']
4157
+ end
4158
+ end
4159
+
3548
4160
  # ModifyConfig请求参数结构体
3549
4161
  class ModifyConfigRequest < TencentCloud::Common::AbstractModel
3550
4162
  # @param ConfigId: 采集规则配置ID
@@ -3619,7 +4231,7 @@ module TencentCloud
3619
4231
  class ModifyConsumerRequest < TencentCloud::Common::AbstractModel
3620
4232
  # @param TopicId: 投递任务绑定的日志主题 ID
3621
4233
  # @type TopicId: String
3622
- # @param Effective: 投递任务是否生效
4234
+ # @param Effective: 投递任务是否生效,默认不生效
3623
4235
  # @type Effective: Boolean
3624
4236
  # @param NeedContent: 是否投递日志的元数据信息,默认为 false
3625
4237
  # @type NeedContent: Boolean
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cls
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.275
4
+ version: 1.0.276
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-11 00:00:00.000000000 Z
11
+ date: 2022-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common