tencentcloud-sdk-ckafka 3.0.791 → 3.0.792

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: 01f1a3f0a5ad73391eecc7669d44644965cd40f5
4
- data.tar.gz: 258a19b0abf463072c86d6b104251477bb0c9f5f
3
+ metadata.gz: 9c5a71506bc732b1b9f3c98320c95f94c0bd23be
4
+ data.tar.gz: 944a1586fcb01c757c8892a7727748237c80f8a3
5
5
  SHA512:
6
- metadata.gz: f9f8edad24099e055833443a665b94ebf1df67162c4c7e7b9b8dc461e3605864329c0e93cea8574f164e59dea32406d496283cad1ac6d565a17cb0d14c5d9ec6
7
- data.tar.gz: 91bd2e5bfbe510c0890d26929416e3c216121292fae5293239f35dc43309f39af3f992a67245f1f08c6d0acb8f5427d304df6bea7869dacd542a8e095fc0c8fc
6
+ metadata.gz: 752c656388a698b2191949cd6d4afddb9364786e427037dd0df55020a6ef2dbb47ba94b29e0a39db749a16ed0546f393544c9a8bd450f898ef21aaf30482341e
7
+ data.tar.gz: 1a3a8fbec5f0904d4a094cf15ea5e3370630d23ea791900b6469139dcb8c238ef8e9d010583d7ee7ca2d364ce9952c72fe950bbd1cbc49aa9b20590b0fadb081
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.791
1
+ 3.0.792
@@ -437,6 +437,30 @@ module TencentCloud
437
437
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
438
  end
439
439
 
440
+ # 添加普罗米修斯监控1
441
+
442
+ # @param request: Request instance for CreatePrometheus.
443
+ # @type request: :class:`Tencentcloud::ckafka::V20190819::CreatePrometheusRequest`
444
+ # @rtype: :class:`Tencentcloud::ckafka::V20190819::CreatePrometheusResponse`
445
+ def CreatePrometheus(request)
446
+ body = send_request('CreatePrometheus', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = CreatePrometheusResponse.new
450
+ model.deserialize(response['Response'])
451
+ model
452
+ else
453
+ code = response['Response']['Error']['Code']
454
+ message = response['Response']['Error']['Message']
455
+ reqid = response['Response']['RequestId']
456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
457
+ end
458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
459
+ raise e
460
+ rescue StandardError => e
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
+ end
463
+
440
464
  # 添加实例路由
441
465
 
442
466
  # @param request: Request instance for CreateRoute.
@@ -1301,6 +1325,30 @@ module TencentCloud
1301
1325
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1302
1326
  end
1303
1327
 
1328
+ # 获取实例Prometheus信息
1329
+
1330
+ # @param request: Request instance for DescribePrometheus.
1331
+ # @type request: :class:`Tencentcloud::ckafka::V20190819::DescribePrometheusRequest`
1332
+ # @rtype: :class:`Tencentcloud::ckafka::V20190819::DescribePrometheusResponse`
1333
+ def DescribePrometheus(request)
1334
+ body = send_request('DescribePrometheus', request.serialize)
1335
+ response = JSON.parse(body)
1336
+ if response['Response'].key?('Error') == false
1337
+ model = DescribePrometheusResponse.new
1338
+ model.deserialize(response['Response'])
1339
+ model
1340
+ else
1341
+ code = response['Response']['Error']['Code']
1342
+ message = response['Response']['Error']['Message']
1343
+ reqid = response['Response']['RequestId']
1344
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1345
+ end
1346
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1347
+ raise e
1348
+ rescue StandardError => e
1349
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1350
+ end
1351
+
1304
1352
  # 枚举地域,只支持广州地域
1305
1353
 
1306
1354
  # @param request: Request instance for DescribeRegion.
@@ -2532,6 +2532,53 @@ module TencentCloud
2532
2532
  end
2533
2533
  end
2534
2534
 
2535
+ # CreatePrometheus请求参数结构体
2536
+ class CreatePrometheusRequest < TencentCloud::Common::AbstractModel
2537
+ # @param InstanceId: ckafka实例id
2538
+ # @type InstanceId: String
2539
+ # @param VpcId: vpc地址
2540
+ # @type VpcId: String
2541
+ # @param SubnetId: 子网地址
2542
+ # @type SubnetId: String
2543
+
2544
+ attr_accessor :InstanceId, :VpcId, :SubnetId
2545
+
2546
+ def initialize(instanceid=nil, vpcid=nil, subnetid=nil)
2547
+ @InstanceId = instanceid
2548
+ @VpcId = vpcid
2549
+ @SubnetId = subnetid
2550
+ end
2551
+
2552
+ def deserialize(params)
2553
+ @InstanceId = params['InstanceId']
2554
+ @VpcId = params['VpcId']
2555
+ @SubnetId = params['SubnetId']
2556
+ end
2557
+ end
2558
+
2559
+ # CreatePrometheus返回参数结构体
2560
+ class CreatePrometheusResponse < TencentCloud::Common::AbstractModel
2561
+ # @param Result: 打通普罗米修斯
2562
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.PrometheusResult`
2563
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2564
+ # @type RequestId: String
2565
+
2566
+ attr_accessor :Result, :RequestId
2567
+
2568
+ def initialize(result=nil, requestid=nil)
2569
+ @Result = result
2570
+ @RequestId = requestid
2571
+ end
2572
+
2573
+ def deserialize(params)
2574
+ unless params['Result'].nil?
2575
+ @Result = PrometheusResult.new
2576
+ @Result.deserialize(params['Result'])
2577
+ end
2578
+ @RequestId = params['RequestId']
2579
+ end
2580
+ end
2581
+
2535
2582
  # CreateRoute请求参数结构体
2536
2583
  class CreateRouteRequest < TencentCloud::Common::AbstractModel
2537
2584
  # @param InstanceId: 实例唯一id
@@ -5054,7 +5101,7 @@ module TencentCloud
5054
5101
  class DescribeGroupInfoRequest < TencentCloud::Common::AbstractModel
5055
5102
  # @param InstanceId: (过滤条件)按照实例 ID 过滤。
5056
5103
  # @type InstanceId: String
5057
- # @param GroupList: Kafka 消费分组,Consumer-group,这里是数组形式,格式:GroupList.0=xxx&GroupList.1=yyy
5104
+ # @param GroupList: Kafka 消费分组,Consumer-group,这里是数组形式,示例:["xxx","yyy"]
5058
5105
  # @type GroupList: Array
5059
5106
 
5060
5107
  attr_accessor :InstanceId, :GroupList
@@ -5399,6 +5446,49 @@ module TencentCloud
5399
5446
  end
5400
5447
  end
5401
5448
 
5449
+ # DescribePrometheus请求参数结构体
5450
+ class DescribePrometheusRequest < TencentCloud::Common::AbstractModel
5451
+ # @param InstanceId: ckafka实例Id
5452
+ # @type InstanceId: String
5453
+
5454
+ attr_accessor :InstanceId
5455
+
5456
+ def initialize(instanceid=nil)
5457
+ @InstanceId = instanceid
5458
+ end
5459
+
5460
+ def deserialize(params)
5461
+ @InstanceId = params['InstanceId']
5462
+ end
5463
+ end
5464
+
5465
+ # DescribePrometheus返回参数结构体
5466
+ class DescribePrometheusResponse < TencentCloud::Common::AbstractModel
5467
+ # @param Result: Prometheus监控映射列表
5468
+ # @type Result: Array
5469
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5470
+ # @type RequestId: String
5471
+
5472
+ attr_accessor :Result, :RequestId
5473
+
5474
+ def initialize(result=nil, requestid=nil)
5475
+ @Result = result
5476
+ @RequestId = requestid
5477
+ end
5478
+
5479
+ def deserialize(params)
5480
+ unless params['Result'].nil?
5481
+ @Result = []
5482
+ params['Result'].each do |i|
5483
+ prometheusdto_tmp = PrometheusDTO.new
5484
+ prometheusdto_tmp.deserialize(i)
5485
+ @Result << prometheusdto_tmp
5486
+ end
5487
+ end
5488
+ @RequestId = params['RequestId']
5489
+ end
5490
+ end
5491
+
5402
5492
  # DescribeRegion请求参数结构体
5403
5493
  class DescribeRegionRequest < TencentCloud::Common::AbstractModel
5404
5494
  # @param Offset: 偏移量
@@ -9941,6 +10031,57 @@ module TencentCloud
9941
10031
  end
9942
10032
  end
9943
10033
 
10034
+ # 普罗米修斯打通的vipVport
10035
+ class PrometheusDTO < TencentCloud::Common::AbstractModel
10036
+ # @param Type: export类型(jmx_export\node_export)
10037
+ # @type Type: String
10038
+ # @param SourceIp: vip
10039
+ # @type SourceIp: String
10040
+ # @param SourcePort: vport
10041
+ # @type SourcePort: Integer
10042
+
10043
+ attr_accessor :Type, :SourceIp, :SourcePort
10044
+
10045
+ def initialize(type=nil, sourceip=nil, sourceport=nil)
10046
+ @Type = type
10047
+ @SourceIp = sourceip
10048
+ @SourcePort = sourceport
10049
+ end
10050
+
10051
+ def deserialize(params)
10052
+ @Type = params['Type']
10053
+ @SourceIp = params['SourceIp']
10054
+ @SourcePort = params['SourcePort']
10055
+ end
10056
+ end
10057
+
10058
+ # Prometheus 监控返回
10059
+ class PrometheusResult < TencentCloud::Common::AbstractModel
10060
+ # @param ReturnCode: 返回的code,0为正常,非0为错误
10061
+ # @type ReturnCode: String
10062
+ # @param ReturnMessage: 成功消息
10063
+ # @type ReturnMessage: String
10064
+ # @param Data: 操作型返回的Data数据,可能有flowId等
10065
+ # @type Data: :class:`Tencentcloud::Ckafka.v20190819.models.OperateResponseData`
10066
+
10067
+ attr_accessor :ReturnCode, :ReturnMessage, :Data
10068
+
10069
+ def initialize(returncode=nil, returnmessage=nil, data=nil)
10070
+ @ReturnCode = returncode
10071
+ @ReturnMessage = returnmessage
10072
+ @Data = data
10073
+ end
10074
+
10075
+ def deserialize(params)
10076
+ @ReturnCode = params['ReturnCode']
10077
+ @ReturnMessage = params['ReturnMessage']
10078
+ unless params['Data'].nil?
10079
+ @Data = OperateResponseData.new
10080
+ @Data.deserialize(params['Data'])
10081
+ end
10082
+ end
10083
+ end
10084
+
9944
10085
  # record 与数据库表的映射关系
9945
10086
  class RecordMapping < TencentCloud::Common::AbstractModel
9946
10087
  # @param JsonKey: 消息的 key 名称
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ckafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.791
4
+ version: 3.0.792
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-26 00:00:00.000000000 Z
11
+ date: 2024-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common