tencentcloud-sdk-es 3.0.1201 → 3.0.1209

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47f18db94e5e293f9cd528e65f8ffffab9c0752e
4
- data.tar.gz: e2efbf4940dee41d639686d0c60a305f3e5bcc69
3
+ metadata.gz: 539ee6c2555816cca8cec435b2d6dee21a5ae892
4
+ data.tar.gz: 7ba0937360acbeb0c56c6686869321b904dcc675
5
5
  SHA512:
6
- metadata.gz: 553bd324fa7fdf2faca0d5bae3d429741574a0d1b55a5772685003e9652e4d49e6663c7bc35cca44f7367ec3f12b25700e4dcec0bbd0d6fceef438b04eed523c
7
- data.tar.gz: 7f9b41451aa1c50ab2168ad9877989619820e14c959e491ccd7c43bb9a30f46cb4ba903cac740912ff46f61b229a4d3cf276677595b21ea842af249f6750fb96
6
+ metadata.gz: a59605b1024fda827fed565a09e592111aa0b6ebda3a40332f120d4fe94a4aae4be35ec5ad7546eccc575aa6c286ffbcd31d407385fe1e29bc6ea09ca7174127
7
+ data.tar.gz: fd18240ebd9128fe30b0093e72ee78444c7f601ed1510f7ceba064ed8e4c51180ddc7b5c8ea6994fdfbda1e85a50b9f461a8ce60b24d718cc25120e5db44d924
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1201
1
+ 3.0.1209
@@ -101,6 +101,30 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
+ # 用于创建Beats采集器
105
+
106
+ # @param request: Request instance for CreateCollector.
107
+ # @type request: :class:`Tencentcloud::es::V20180416::CreateCollectorRequest`
108
+ # @rtype: :class:`Tencentcloud::es::V20180416::CreateCollectorResponse`
109
+ def CreateCollector(request)
110
+ body = send_request('CreateCollector', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateCollectorResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
104
128
  # cos迁移流程
105
129
 
106
130
  # @param request: Request instance for CreateCosMigrateToServerlessInstance.
@@ -271,6 +271,179 @@ module TencentCloud
271
271
  end
272
272
  end
273
273
 
274
+ # 采集器配置项
275
+ class CollectorConfigInfo < TencentCloud::Common::AbstractModel
276
+ # @param FileName: 采集器的主配置文件名,如filebeat.yml,metricbeat.yml等
277
+ # @type FileName: String
278
+ # @param FileContent: 采集器的主配置文件内容
279
+ # @type FileContent: String
280
+
281
+ attr_accessor :FileName, :FileContent
282
+
283
+ def initialize(filename=nil, filecontent=nil)
284
+ @FileName = filename
285
+ @FileContent = filecontent
286
+ end
287
+
288
+ def deserialize(params)
289
+ @FileName = params['FileName']
290
+ @FileContent = params['FileContent']
291
+ end
292
+ end
293
+
294
+ # 采集器输出的实例信息
295
+ class CollectorOutputInstance < TencentCloud::Common::AbstractModel
296
+ # @param Type: 采集器输出的实例类型(支持elasticsearch、logstash)
297
+ # @type Type: String
298
+ # @param InstanceId: 采集器输出的实例ID
299
+ # @type InstanceId: String
300
+ # @param ESUserName: 采集器输出到的ES实例的用户名
301
+ # @type ESUserName: String
302
+ # @param ESUserPasswd: 采集器输出到的ES实例的密码
303
+ # @type ESUserPasswd: String
304
+ # @param EnableMonitoring: 采集器输出到ES实例时,是否开启监控(1为开启,0为不开启,默认为0)
305
+ # @type EnableMonitoring: Integer
306
+ # @param EnableDashboard: 采集器输出到ES实例时,是否开启自动在kibana中生成Dashboard(1为开启,0为不开启,默认为0)
307
+ # @type EnableDashboard: Integer
308
+ # @param KafkaEndpoint: Ckafka实例的vip
309
+ # @type KafkaEndpoint: String
310
+ # @param KafkaTopic: Ckafka实例中的Topic
311
+ # @type KafkaTopic: String
312
+ # @param KafkaVersion: Ckafka实例的版本号
313
+ # @type KafkaVersion: String
314
+ # @param SesTopicId: topic id
315
+ # @type SesTopicId: String
316
+ # @param SesTopicName: topic name
317
+ # @type SesTopicName: String
318
+ # @param SesTopicAddress: topic address
319
+ # @type SesTopicAddress: String
320
+ # @param SesTopicUserName: /
321
+ # @type SesTopicUserName: String
322
+ # @param SesTopicPasswd: /
323
+ # @type SesTopicPasswd: String
324
+ # @param LogstashListenPort: /
325
+ # @type LogstashListenPort: Integer
326
+
327
+ attr_accessor :Type, :InstanceId, :ESUserName, :ESUserPasswd, :EnableMonitoring, :EnableDashboard, :KafkaEndpoint, :KafkaTopic, :KafkaVersion, :SesTopicId, :SesTopicName, :SesTopicAddress, :SesTopicUserName, :SesTopicPasswd, :LogstashListenPort
328
+
329
+ def initialize(type=nil, instanceid=nil, esusername=nil, esuserpasswd=nil, enablemonitoring=nil, enabledashboard=nil, kafkaendpoint=nil, kafkatopic=nil, kafkaversion=nil, sestopicid=nil, sestopicname=nil, sestopicaddress=nil, sestopicusername=nil, sestopicpasswd=nil, logstashlistenport=nil)
330
+ @Type = type
331
+ @InstanceId = instanceid
332
+ @ESUserName = esusername
333
+ @ESUserPasswd = esuserpasswd
334
+ @EnableMonitoring = enablemonitoring
335
+ @EnableDashboard = enabledashboard
336
+ @KafkaEndpoint = kafkaendpoint
337
+ @KafkaTopic = kafkatopic
338
+ @KafkaVersion = kafkaversion
339
+ @SesTopicId = sestopicid
340
+ @SesTopicName = sestopicname
341
+ @SesTopicAddress = sestopicaddress
342
+ @SesTopicUserName = sestopicusername
343
+ @SesTopicPasswd = sestopicpasswd
344
+ @LogstashListenPort = logstashlistenport
345
+ end
346
+
347
+ def deserialize(params)
348
+ @Type = params['Type']
349
+ @InstanceId = params['InstanceId']
350
+ @ESUserName = params['ESUserName']
351
+ @ESUserPasswd = params['ESUserPasswd']
352
+ @EnableMonitoring = params['EnableMonitoring']
353
+ @EnableDashboard = params['EnableDashboard']
354
+ @KafkaEndpoint = params['KafkaEndpoint']
355
+ @KafkaTopic = params['KafkaTopic']
356
+ @KafkaVersion = params['KafkaVersion']
357
+ @SesTopicId = params['SesTopicId']
358
+ @SesTopicName = params['SesTopicName']
359
+ @SesTopicAddress = params['SesTopicAddress']
360
+ @SesTopicUserName = params['SesTopicUserName']
361
+ @SesTopicPasswd = params['SesTopicPasswd']
362
+ @LogstashListenPort = params['LogstashListenPort']
363
+ end
364
+ end
365
+
366
+ # 容器日志采集配置
367
+ class CollectorTarget < TencentCloud::Common::AbstractModel
368
+ # @param TargetName: 采集配置名称
369
+ # @type TargetName: String
370
+ # @param Namespaces: 命名空间列表,包括Include包含和Exclude不包含选项,两者都为空时等同于全部命名空间(包含当前所有的以及未来创建的)。
371
+ # 注意:此字段可能返回 null,表示取不到有效值。
372
+ # @type Namespaces: :class:`Tencentcloud::Es.v20180416.models.Namespaces`
373
+ # @param PodLabels: Pod标签列表
374
+ # 注意:此字段可能返回 null,表示取不到有效值。
375
+ # @type PodLabels: Array
376
+ # @param ContainerName: 容器名称,支持小写字母、数字、连接符-、下划线_,最多支持63个字符
377
+ # 注意:此字段可能返回 null,表示取不到有效值。
378
+ # @type ContainerName: String
379
+ # @param IndexPrefix: ES索引名称前缀,如果当前采集配置下的容器日志输出到ES集群,则使用该字段作为ES索引名称的前缀,支持大小写字母、数字、连接符-、下划线_,最多支持50个字符
380
+ # 注意:此字段可能返回 null,表示取不到有效值。
381
+ # @type IndexPrefix: String
382
+ # @param LogFilters: 日志内容过滤,以逗号分隔,支持大小写字母、数字、连接符-、下划线_以及逗号,最多支持50个字符
383
+ # 注意:此字段可能返回 null,表示取不到有效值。
384
+ # @type LogFilters: String
385
+ # @param ConfigContent: 高级配置,可自定义采集规则,最多支持2048个字符
386
+ # 注意:此字段可能返回 null,表示取不到有效值。
387
+ # @type ConfigContent: String
388
+ # @param KafkaTopic: Ckafka实例的Topic
389
+ # 注意:此字段可能返回 null,表示取不到有效值。
390
+ # @type KafkaTopic: String
391
+ # @param IndexAlias: ES索引名称,如果当前采集配置下的容器日志输出到ES集群,则使用该字段作为ES索引名称,支持大小写字母、数字、连接符-、下划线_,最多支持50个字符
392
+ # 注意:此字段可能返回 null,表示取不到有效值。
393
+ # @type IndexAlias: String
394
+ # @param InputType: /
395
+ # 注意:此字段可能返回 null,表示取不到有效值。
396
+ # @type InputType: String
397
+ # @param InputPath: 日志采集host路径
398
+ # 注意:此字段可能返回 null,表示取不到有效值。
399
+ # @type InputPath: String
400
+ # @param InputsTailFiles: inputs.tail_files
401
+ # 注意:此字段可能返回 null,表示取不到有效值。
402
+ # @type InputsTailFiles: Boolean
403
+
404
+ attr_accessor :TargetName, :Namespaces, :PodLabels, :ContainerName, :IndexPrefix, :LogFilters, :ConfigContent, :KafkaTopic, :IndexAlias, :InputType, :InputPath, :InputsTailFiles
405
+
406
+ def initialize(targetname=nil, namespaces=nil, podlabels=nil, containername=nil, indexprefix=nil, logfilters=nil, configcontent=nil, kafkatopic=nil, indexalias=nil, inputtype=nil, inputpath=nil, inputstailfiles=nil)
407
+ @TargetName = targetname
408
+ @Namespaces = namespaces
409
+ @PodLabels = podlabels
410
+ @ContainerName = containername
411
+ @IndexPrefix = indexprefix
412
+ @LogFilters = logfilters
413
+ @ConfigContent = configcontent
414
+ @KafkaTopic = kafkatopic
415
+ @IndexAlias = indexalias
416
+ @InputType = inputtype
417
+ @InputPath = inputpath
418
+ @InputsTailFiles = inputstailfiles
419
+ end
420
+
421
+ def deserialize(params)
422
+ @TargetName = params['TargetName']
423
+ unless params['Namespaces'].nil?
424
+ @Namespaces = Namespaces.new
425
+ @Namespaces.deserialize(params['Namespaces'])
426
+ end
427
+ unless params['PodLabels'].nil?
428
+ @PodLabels = []
429
+ params['PodLabels'].each do |i|
430
+ podlabel_tmp = PodLabel.new
431
+ podlabel_tmp.deserialize(i)
432
+ @PodLabels << podlabel_tmp
433
+ end
434
+ end
435
+ @ContainerName = params['ContainerName']
436
+ @IndexPrefix = params['IndexPrefix']
437
+ @LogFilters = params['LogFilters']
438
+ @ConfigContent = params['ConfigContent']
439
+ @KafkaTopic = params['KafkaTopic']
440
+ @IndexAlias = params['IndexAlias']
441
+ @InputType = params['InputType']
442
+ @InputPath = params['InputPath']
443
+ @InputsTailFiles = params['InputsTailFiles']
444
+ end
445
+ end
446
+
274
447
  # 普通索引信息列表
275
448
  class CommonIndexInfo < TencentCloud::Common::AbstractModel
276
449
  # @param IndexName: 普通索引名
@@ -554,6 +727,102 @@ module TencentCloud
554
727
  end
555
728
  end
556
729
 
730
+ # CreateCollector请求参数结构体
731
+ class CreateCollectorRequest < TencentCloud::Common::AbstractModel
732
+ # @param CollectorName: 采集器名称(1-50 个英文、汉字、数字、连接线-或下划线_)
733
+ # @type CollectorName: String
734
+ # @param CollectorVersion: 采集器版本(支持"6.8.15"、"7.10.2")
735
+ # @type CollectorVersion: String
736
+ # @param CollectorType: 采集器类型(支持filebeat、metricbeat、heartbeat、auditbeat、packetbeat)
737
+ # @type CollectorType: String
738
+ # @param OutputInstance: 采集器输出的ES实例信息
739
+ # @type OutputInstance: :class:`Tencentcloud::Es.v20180416.models.CollectorOutputInstance`
740
+ # @param CollectorConfigs: 采集器配置
741
+ # @type CollectorConfigs: Array
742
+ # @param CVMInstanceIds: 采集器下发的CVM实例ID列表
743
+ # @type CVMInstanceIds: Array
744
+ # @param TargetType: 采集目标类型,CVM或者TKE
745
+ # @type TargetType: String
746
+ # @param ContainerClusterId: 容器集群ID,采集目标为TKE时必填
747
+ # @type ContainerClusterId: String
748
+ # @param CollectorTargets: 采集器配置,采集目标为TKE时必填
749
+ # @type CollectorTargets: Array
750
+ # @param TagList: 标签信息
751
+ # @type TagList: Array
752
+
753
+ attr_accessor :CollectorName, :CollectorVersion, :CollectorType, :OutputInstance, :CollectorConfigs, :CVMInstanceIds, :TargetType, :ContainerClusterId, :CollectorTargets, :TagList
754
+
755
+ def initialize(collectorname=nil, collectorversion=nil, collectortype=nil, outputinstance=nil, collectorconfigs=nil, cvminstanceids=nil, targettype=nil, containerclusterid=nil, collectortargets=nil, taglist=nil)
756
+ @CollectorName = collectorname
757
+ @CollectorVersion = collectorversion
758
+ @CollectorType = collectortype
759
+ @OutputInstance = outputinstance
760
+ @CollectorConfigs = collectorconfigs
761
+ @CVMInstanceIds = cvminstanceids
762
+ @TargetType = targettype
763
+ @ContainerClusterId = containerclusterid
764
+ @CollectorTargets = collectortargets
765
+ @TagList = taglist
766
+ end
767
+
768
+ def deserialize(params)
769
+ @CollectorName = params['CollectorName']
770
+ @CollectorVersion = params['CollectorVersion']
771
+ @CollectorType = params['CollectorType']
772
+ unless params['OutputInstance'].nil?
773
+ @OutputInstance = CollectorOutputInstance.new
774
+ @OutputInstance.deserialize(params['OutputInstance'])
775
+ end
776
+ unless params['CollectorConfigs'].nil?
777
+ @CollectorConfigs = []
778
+ params['CollectorConfigs'].each do |i|
779
+ collectorconfiginfo_tmp = CollectorConfigInfo.new
780
+ collectorconfiginfo_tmp.deserialize(i)
781
+ @CollectorConfigs << collectorconfiginfo_tmp
782
+ end
783
+ end
784
+ @CVMInstanceIds = params['CVMInstanceIds']
785
+ @TargetType = params['TargetType']
786
+ @ContainerClusterId = params['ContainerClusterId']
787
+ unless params['CollectorTargets'].nil?
788
+ @CollectorTargets = []
789
+ params['CollectorTargets'].each do |i|
790
+ collectortarget_tmp = CollectorTarget.new
791
+ collectortarget_tmp.deserialize(i)
792
+ @CollectorTargets << collectortarget_tmp
793
+ end
794
+ end
795
+ unless params['TagList'].nil?
796
+ @TagList = []
797
+ params['TagList'].each do |i|
798
+ taginfo_tmp = TagInfo.new
799
+ taginfo_tmp.deserialize(i)
800
+ @TagList << taginfo_tmp
801
+ end
802
+ end
803
+ end
804
+ end
805
+
806
+ # CreateCollector返回参数结构体
807
+ class CreateCollectorResponse < TencentCloud::Common::AbstractModel
808
+ # @param CollectorId: 采集器ID
809
+ # @type CollectorId: String
810
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
811
+ # @type RequestId: String
812
+
813
+ attr_accessor :CollectorId, :RequestId
814
+
815
+ def initialize(collectorid=nil, requestid=nil)
816
+ @CollectorId = collectorid
817
+ @RequestId = requestid
818
+ end
819
+
820
+ def deserialize(params)
821
+ @CollectorId = params['CollectorId']
822
+ @RequestId = params['RequestId']
823
+ end
824
+ end
825
+
557
826
  # CreateCosMigrateToServerlessInstance请求参数结构体
558
827
  class CreateCosMigrateToServerlessInstanceRequest < TencentCloud::Common::AbstractModel
559
828
  # @param Snapshot: 快照名
@@ -5882,6 +6151,26 @@ module TencentCloud
5882
6151
  end
5883
6152
  end
5884
6153
 
6154
+ # TKE命名空间
6155
+ class Namespaces < TencentCloud::Common::AbstractModel
6156
+ # @param Include: 包含的命名空间的列表,单个命名空间支持小写字母、数字、连接符-、下划线_,最多支持63个字符
6157
+ # @type Include: Array
6158
+ # @param Exclude: 不包含的命名空间列表,单个命名空间支持小写字母、数字、连接符-、下划线_,最多支持63个字符
6159
+ # @type Exclude: Array
6160
+
6161
+ attr_accessor :Include, :Exclude
6162
+
6163
+ def initialize(include=nil, exclude=nil)
6164
+ @Include = include
6165
+ @Exclude = exclude
6166
+ end
6167
+
6168
+ def deserialize(params)
6169
+ @Include = params['Include']
6170
+ @Exclude = params['Exclude']
6171
+ end
6172
+ end
6173
+
5885
6174
  # 集群中一种节点类型(如热数据节点,冷数据节点,专用主节点等)的规格描述信息,包括节点类型,节点个数,节点规格,磁盘类型,磁盘大小等, Type不指定时默认为热数据节点;如果节点为master节点,则DiskType和DiskSize参数会被忽略(主节点无数据盘)
5886
6175
  class NodeInfo < TencentCloud::Common::AbstractModel
5887
6176
  # @param NodeNum: 节点数量
@@ -6291,6 +6580,26 @@ module TencentCloud
6291
6580
  end
6292
6581
  end
6293
6582
 
6583
+ # Pod标签
6584
+ class PodLabel < TencentCloud::Common::AbstractModel
6585
+ # @param LabelKey: 标签键,支持大小写字母、数字、以及-_./,最多支持63个字符
6586
+ # @type LabelKey: String
6587
+ # @param LabelValue: 标签值,支持大小写字母、数字、以及-_./,最多支持63个字符
6588
+ # @type LabelValue: String
6589
+
6590
+ attr_accessor :LabelKey, :LabelValue
6591
+
6592
+ def initialize(labelkey=nil, labelvalue=nil)
6593
+ @LabelKey = labelkey
6594
+ @LabelValue = labelvalue
6595
+ end
6596
+
6597
+ def deserialize(params)
6598
+ @LabelKey = params['LabelKey']
6599
+ @LabelValue = params['LabelValue']
6600
+ end
6601
+ end
6602
+
6294
6603
  # 任务进度详情
6295
6604
  class ProcessDetail < TencentCloud::Common::AbstractModel
6296
6605
  # @param Completed: 已完成数量
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-es
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1201
4
+ version: 3.0.1209
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-13 00:00:00.000000000 Z
11
+ date: 2026-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common