tencentcloud-sdk-ckafka 3.0.790 → 3.0.792
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190819/client.rb +48 -0
- data/lib/v20190819/models.rb +148 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c5a71506bc732b1b9f3c98320c95f94c0bd23be
|
4
|
+
data.tar.gz: 944a1586fcb01c757c8892a7727748237c80f8a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 752c656388a698b2191949cd6d4afddb9364786e427037dd0df55020a6ef2dbb47ba94b29e0a39db749a16ed0546f393544c9a8bd450f898ef21aaf30482341e
|
7
|
+
data.tar.gz: 1a3a8fbec5f0904d4a094cf15ea5e3370630d23ea791900b6469139dcb8c238ef8e9d010583d7ee7ca2d364ce9952c72fe950bbd1cbc49aa9b20590b0fadb081
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.792
|
data/lib/v20190819/client.rb
CHANGED
@@ -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.
|
data/lib/v20190819/models.rb
CHANGED
@@ -2046,12 +2046,12 @@ module TencentCloud
|
|
2046
2046
|
class CreateInstancePostRequest < TencentCloud::Common::AbstractModel
|
2047
2047
|
# @param InstanceName: 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
|
2048
2048
|
# @type InstanceName: String
|
2049
|
-
# @param BandWidth: 实例内网峰值带宽。单位 MB/s。标准版需传入当前实例规格所对应的峰值带宽。注意如果创建的实例为专业版实例,峰值带宽,分区数等参数配置需要满足专业版的计费规格。
|
2050
|
-
# @type BandWidth: Integer
|
2051
2049
|
# @param VpcId: 创建的实例默认接入点所在的 vpc 对应 vpcId。目前不支持创建基础网络实例,因此该参数必填
|
2052
2050
|
# @type VpcId: String
|
2053
2051
|
# @param SubnetId: 子网id。创建实例默认接入点所在的子网对应的子网 id
|
2054
2052
|
# @type SubnetId: String
|
2053
|
+
# @param BandWidth: 实例内网峰值带宽。单位 MB/s。标准版需传入当前实例规格所对应的峰值带宽。注意如果创建的实例为专业版实例,峰值带宽,分区数等参数配置需要满足专业版的计费规格。
|
2054
|
+
# @type BandWidth: Integer
|
2055
2055
|
# @param InstanceType: 国际站标准版实例规格。目前只有国际站标准版使用当前字段区分规格,国内站标准版使用峰值带宽区分规格。除了国际站标准版外的所有实例填写 1 即可。国际站标准版实例:入门型(general)]填写1;[标准型(standard)]填写2;[进阶型(advanced)]填写3;[容量型(capacity)]填写4;[高阶型1(specialized-1)]填写5;[高阶型2(specialized-2)]填写6;[高阶型3(specialized-3)]填写7;[高阶型4(specialized-4)]填写8。
|
2056
2056
|
# @type InstanceType: Integer
|
2057
2057
|
# @param MsgRetentionTime: 实例日志的默认最长保留时间,单位分钟。不传入该参数时默认为 1440 分钟(1天),最大30天。当 topic 显式设置消息保留时间时,以 topic 保留时间为准
|
@@ -2081,13 +2081,13 @@ module TencentCloud
|
|
2081
2081
|
# @param PublicNetworkMonthly: 公网带宽大小,单位 Mbps。默认是没有加上免费 3Mbps 带宽。例如总共需要 3Mbps 公网带宽,此处传 0;总共需要 6Mbps 公网带宽,此处传 3。需要保证传入参数为 3 的整数倍
|
2082
2082
|
# @type PublicNetworkMonthly: Integer
|
2083
2083
|
|
2084
|
-
attr_accessor :InstanceName, :
|
2084
|
+
attr_accessor :InstanceName, :VpcId, :SubnetId, :BandWidth, :InstanceType, :MsgRetentionTime, :ClusterId, :KafkaVersion, :SpecificationsType, :DiskType, :DiskSize, :Partition, :TopicNum, :ZoneId, :MultiZoneFlag, :ZoneIds, :InstanceNum, :PublicNetworkMonthly
|
2085
2085
|
|
2086
|
-
def initialize(instancename=nil,
|
2086
|
+
def initialize(instancename=nil, vpcid=nil, subnetid=nil, bandwidth=nil, instancetype=nil, msgretentiontime=nil, clusterid=nil, kafkaversion=nil, specificationstype=nil, disktype=nil, disksize=nil, partition=nil, topicnum=nil, zoneid=nil, multizoneflag=nil, zoneids=nil, instancenum=nil, publicnetworkmonthly=nil)
|
2087
2087
|
@InstanceName = instancename
|
2088
|
-
@BandWidth = bandwidth
|
2089
2088
|
@VpcId = vpcid
|
2090
2089
|
@SubnetId = subnetid
|
2090
|
+
@BandWidth = bandwidth
|
2091
2091
|
@InstanceType = instancetype
|
2092
2092
|
@MsgRetentionTime = msgretentiontime
|
2093
2093
|
@ClusterId = clusterid
|
@@ -2106,9 +2106,9 @@ module TencentCloud
|
|
2106
2106
|
|
2107
2107
|
def deserialize(params)
|
2108
2108
|
@InstanceName = params['InstanceName']
|
2109
|
-
@BandWidth = params['BandWidth']
|
2110
2109
|
@VpcId = params['VpcId']
|
2111
2110
|
@SubnetId = params['SubnetId']
|
2111
|
+
@BandWidth = params['BandWidth']
|
2112
2112
|
@InstanceType = params['InstanceType']
|
2113
2113
|
@MsgRetentionTime = params['MsgRetentionTime']
|
2114
2114
|
@ClusterId = params['ClusterId']
|
@@ -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
|
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.
|
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-
|
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
|