tencentcloud-sdk-es 1.0.354 → 1.0.355

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: 7c842287e21202e2e7761a6104b62a3431cc103f
4
- data.tar.gz: 7750d64e5f88f8c98800dd831a480aba1623bea1
3
+ metadata.gz: 3d54f1843900725a35f02839eb847761ba123639
4
+ data.tar.gz: aacc3d1e2578e4a94f0a870322f2561028d627f8
5
5
  SHA512:
6
- metadata.gz: 7e736e554fde0fc4474457d5041fdf884a9df6b2dd89febccd038636412c69afde7f3984d4fafaf1a42a19ad99bc4d9afa274d50864ccb13e5bef94746b91653
7
- data.tar.gz: 9f7d10bb3f0a12023c9a0a0409bbb0f5eaed62b23129063872d061502dc127fbb2647c985869f7c1a7a1186d8fba80f8f3769b9eb42cd604fceeb9d173b72f74
6
+ metadata.gz: 8c9a9090c9f63e4203550dfcf8c8f18ba13aab9a59892585d879b0fb7bbde71e1d1a540d87a40443c8c8fc8f1a6e36b56031a7a710b1d395fcd66e3b2139fb31
7
+ data.tar.gz: 74eb34ce5f2bb8428c5726091fc424764beedffe3841a923a88faeb3255e060fddb04c396060260825b4a3b3a0c2877a09b34518f53a22a30158ab2c0da86ad0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.354
1
+ 1.0.355
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 用于创建Logstash实例
81
+
82
+ # @param request: Request instance for CreateLogstashInstance.
83
+ # @type request: :class:`Tencentcloud::es::V20180416::CreateLogstashInstanceRequest`
84
+ # @rtype: :class:`Tencentcloud::es::V20180416::CreateLogstashInstanceResponse`
85
+ def CreateLogstashInstance(request)
86
+ body = send_request('CreateLogstashInstance', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateLogstashInstanceResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
80
104
  # 删除索引
81
105
 
82
106
  # @param request: Request instance for DeleteIndex.
@@ -125,6 +149,54 @@ module TencentCloud
125
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
150
  end
127
151
 
152
+ # 用于删除Logstash实例
153
+
154
+ # @param request: Request instance for DeleteLogstashInstance.
155
+ # @type request: :class:`Tencentcloud::es::V20180416::DeleteLogstashInstanceRequest`
156
+ # @rtype: :class:`Tencentcloud::es::V20180416::DeleteLogstashInstanceResponse`
157
+ def DeleteLogstashInstance(request)
158
+ body = send_request('DeleteLogstashInstance', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = DeleteLogstashInstanceResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
176
+ # 用于批量删除Logstash管道
177
+
178
+ # @param request: Request instance for DeleteLogstashPipelines.
179
+ # @type request: :class:`Tencentcloud::es::V20180416::DeleteLogstashPipelinesRequest`
180
+ # @rtype: :class:`Tencentcloud::es::V20180416::DeleteLogstashPipelinesResponse`
181
+ def DeleteLogstashPipelines(request)
182
+ body = send_request('DeleteLogstashPipelines', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = DeleteLogstashPipelinesResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
128
200
  # 获取索引列表
129
201
 
130
202
  # @param request: Request instance for DescribeIndexList.
@@ -245,6 +317,102 @@ module TencentCloud
245
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
318
  end
247
319
 
320
+ # 查询用户该地域下符合条件的Logstash实例的日志
321
+
322
+ # @param request: Request instance for DescribeLogstashInstanceLogs.
323
+ # @type request: :class:`Tencentcloud::es::V20180416::DescribeLogstashInstanceLogsRequest`
324
+ # @rtype: :class:`Tencentcloud::es::V20180416::DescribeLogstashInstanceLogsResponse`
325
+ def DescribeLogstashInstanceLogs(request)
326
+ body = send_request('DescribeLogstashInstanceLogs', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = DescribeLogstashInstanceLogsResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
344
+ # 查询实例指定条件下的操作记录
345
+
346
+ # @param request: Request instance for DescribeLogstashInstanceOperations.
347
+ # @type request: :class:`Tencentcloud::es::V20180416::DescribeLogstashInstanceOperationsRequest`
348
+ # @rtype: :class:`Tencentcloud::es::V20180416::DescribeLogstashInstanceOperationsResponse`
349
+ def DescribeLogstashInstanceOperations(request)
350
+ body = send_request('DescribeLogstashInstanceOperations', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = DescribeLogstashInstanceOperationsResponse.new
354
+ model.deserialize(response['Response'])
355
+ model
356
+ else
357
+ code = response['Response']['Error']['Code']
358
+ message = response['Response']['Error']['Message']
359
+ reqid = response['Response']['RequestId']
360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
+ end
362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
363
+ raise e
364
+ rescue StandardError => e
365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
+ end
367
+
368
+ # 查询用户该地域下符合条件的所有Logstash实例
369
+
370
+ # @param request: Request instance for DescribeLogstashInstances.
371
+ # @type request: :class:`Tencentcloud::es::V20180416::DescribeLogstashInstancesRequest`
372
+ # @rtype: :class:`Tencentcloud::es::V20180416::DescribeLogstashInstancesResponse`
373
+ def DescribeLogstashInstances(request)
374
+ body = send_request('DescribeLogstashInstances', request.serialize)
375
+ response = JSON.parse(body)
376
+ if response['Response'].key?('Error') == false
377
+ model = DescribeLogstashInstancesResponse.new
378
+ model.deserialize(response['Response'])
379
+ model
380
+ else
381
+ code = response['Response']['Error']['Code']
382
+ message = response['Response']['Error']['Message']
383
+ reqid = response['Response']['RequestId']
384
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
385
+ end
386
+ rescue TencentCloud::Common::TencentCloudSDKException => e
387
+ raise e
388
+ rescue StandardError => e
389
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
+ end
391
+
392
+ # 用于获取Logstash实例管道列表
393
+
394
+ # @param request: Request instance for DescribeLogstashPipelines.
395
+ # @type request: :class:`Tencentcloud::es::V20180416::DescribeLogstashPipelinesRequest`
396
+ # @rtype: :class:`Tencentcloud::es::V20180416::DescribeLogstashPipelinesResponse`
397
+ def DescribeLogstashPipelines(request)
398
+ body = send_request('DescribeLogstashPipelines', request.serialize)
399
+ response = JSON.parse(body)
400
+ if response['Response'].key?('Error') == false
401
+ model = DescribeLogstashPipelinesResponse.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
+
248
416
  # 查询集群各视图数据,包括集群维度、节点维度、Kibana维度
249
417
 
250
418
  # @param request: Request instance for DescribeViews.
@@ -365,6 +533,30 @@ module TencentCloud
365
533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
534
  end
367
535
 
536
+ # 用于重启Logstash实例
537
+
538
+ # @param request: Request instance for RestartLogstashInstance.
539
+ # @type request: :class:`Tencentcloud::es::V20180416::RestartLogstashInstanceRequest`
540
+ # @rtype: :class:`Tencentcloud::es::V20180416::RestartLogstashInstanceResponse`
541
+ def RestartLogstashInstance(request)
542
+ body = send_request('RestartLogstashInstance', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = RestartLogstashInstanceResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
368
560
  # 用于重启集群节点
369
561
 
370
562
  # @param request: Request instance for RestartNodes.
@@ -389,6 +581,78 @@ module TencentCloud
389
581
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
582
  end
391
583
 
584
+ # 用于下发并且部署管道
585
+
586
+ # @param request: Request instance for SaveAndDeployLogstashPipeline.
587
+ # @type request: :class:`Tencentcloud::es::V20180416::SaveAndDeployLogstashPipelineRequest`
588
+ # @rtype: :class:`Tencentcloud::es::V20180416::SaveAndDeployLogstashPipelineResponse`
589
+ def SaveAndDeployLogstashPipeline(request)
590
+ body = send_request('SaveAndDeployLogstashPipeline', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = SaveAndDeployLogstashPipelineResponse.new
594
+ model.deserialize(response['Response'])
595
+ model
596
+ else
597
+ code = response['Response']['Error']['Code']
598
+ message = response['Response']['Error']['Message']
599
+ reqid = response['Response']['RequestId']
600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
601
+ end
602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
603
+ raise e
604
+ rescue StandardError => e
605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
+ end
607
+
608
+ # 用于启动Logstash管道
609
+
610
+ # @param request: Request instance for StartLogstashPipelines.
611
+ # @type request: :class:`Tencentcloud::es::V20180416::StartLogstashPipelinesRequest`
612
+ # @rtype: :class:`Tencentcloud::es::V20180416::StartLogstashPipelinesResponse`
613
+ def StartLogstashPipelines(request)
614
+ body = send_request('StartLogstashPipelines', request.serialize)
615
+ response = JSON.parse(body)
616
+ if response['Response'].key?('Error') == false
617
+ model = StartLogstashPipelinesResponse.new
618
+ model.deserialize(response['Response'])
619
+ model
620
+ else
621
+ code = response['Response']['Error']['Code']
622
+ message = response['Response']['Error']['Message']
623
+ reqid = response['Response']['RequestId']
624
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
625
+ end
626
+ rescue TencentCloud::Common::TencentCloudSDKException => e
627
+ raise e
628
+ rescue StandardError => e
629
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
+ end
631
+
632
+ # 用于批量停止Logstash管道
633
+
634
+ # @param request: Request instance for StopLogstashPipelines.
635
+ # @type request: :class:`Tencentcloud::es::V20180416::StopLogstashPipelinesRequest`
636
+ # @rtype: :class:`Tencentcloud::es::V20180416::StopLogstashPipelinesResponse`
637
+ def StopLogstashPipelines(request)
638
+ body = send_request('StopLogstashPipelines', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = StopLogstashPipelinesResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
392
656
  # 更新智能运维配置
393
657
 
394
658
  # @param request: Request instance for UpdateDiagnoseSettings.
@@ -516,6 +780,59 @@ module TencentCloud
516
780
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
517
781
  end
518
782
 
783
+ # 对集群进行节点规格变更,修改实例名称,修改配置,等操作。参数中InstanceId为必传参数,参数传递组合及含义如下:
784
+ # - InstanceName:修改实例名称(仅用于标识实例)
785
+ # - NodeNum: 修改实例节点数量(节点横向扩缩容,纵向扩缩容等)
786
+ # - YMLConfig: 修改实例YML配置
787
+ # - BindedES:修改绑定的ES集群配置
788
+ # 以上参数组合只能传递一种,多传或少传均会导致请求失败
789
+
790
+ # @param request: Request instance for UpdateLogstashInstance.
791
+ # @type request: :class:`Tencentcloud::es::V20180416::UpdateLogstashInstanceRequest`
792
+ # @rtype: :class:`Tencentcloud::es::V20180416::UpdateLogstashInstanceResponse`
793
+ def UpdateLogstashInstance(request)
794
+ body = send_request('UpdateLogstashInstance', request.serialize)
795
+ response = JSON.parse(body)
796
+ if response['Response'].key?('Error') == false
797
+ model = UpdateLogstashInstanceResponse.new
798
+ model.deserialize(response['Response'])
799
+ model
800
+ else
801
+ code = response['Response']['Error']['Code']
802
+ message = response['Response']['Error']['Message']
803
+ reqid = response['Response']['RequestId']
804
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
805
+ end
806
+ rescue TencentCloud::Common::TencentCloudSDKException => e
807
+ raise e
808
+ rescue StandardError => e
809
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
810
+ end
811
+
812
+ # 用于更新管道描述信息
813
+
814
+ # @param request: Request instance for UpdateLogstashPipelineDesc.
815
+ # @type request: :class:`Tencentcloud::es::V20180416::UpdateLogstashPipelineDescRequest`
816
+ # @rtype: :class:`Tencentcloud::es::V20180416::UpdateLogstashPipelineDescResponse`
817
+ def UpdateLogstashPipelineDesc(request)
818
+ body = send_request('UpdateLogstashPipelineDesc', request.serialize)
819
+ response = JSON.parse(body)
820
+ if response['Response'].key?('Error') == false
821
+ model = UpdateLogstashPipelineDescResponse.new
822
+ model.deserialize(response['Response'])
823
+ model
824
+ else
825
+ code = response['Response']['Error']['Code']
826
+ message = response['Response']['Error']['Message']
827
+ reqid = response['Response']['RequestId']
828
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
829
+ end
830
+ rescue TencentCloud::Common::TencentCloudSDKException => e
831
+ raise e
832
+ rescue StandardError => e
833
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
834
+ end
835
+
519
836
  # 变更插件列表
520
837
 
521
838
  # @param request: Request instance for UpdatePlugins.