tencentcloud-sdk-dbbrain 3.0.480 → 3.0.481
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210527/client.rb +24 -0
- data/lib/v20210527/models.rb +74 -0
- 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: d30dc093e61b883a04692291bf83df32d064901f
|
4
|
+
data.tar.gz: 554be5c66ba19ed2fdbe774ada49912bd9e7c141
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85159d32a65aff75db97e047095f11fec4b016a53779734a73ce98f36ac09e2822532f7dab9bc71921a4e34b281512305b8ac5dc3da9ef36e498a4afe1c374f6
|
7
|
+
data.tar.gz: 2e5df6aa6fcb2542bbdd869d99876ee9bd2c6e55cb1a63e7ff5776d0303219e28537afbc00728d7086badbabc9e6ad7ad32fbd3dfb52d78d45a573a1b00bf3ae
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.481
|
data/lib/v20210527/client.rb
CHANGED
@@ -605,6 +605,30 @@ module TencentCloud
|
|
605
605
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
606
606
|
end
|
607
607
|
|
608
|
+
# 获取当前实例会话统计详情信息。【注意】该接口仅限部分环境调用。
|
609
|
+
|
610
|
+
# @param request: Request instance for DescribeProxyProcessStatistics.
|
611
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeProxyProcessStatisticsRequest`
|
612
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeProxyProcessStatisticsResponse`
|
613
|
+
def DescribeProxyProcessStatistics(request)
|
614
|
+
body = send_request('DescribeProxyProcessStatistics', request.serialize)
|
615
|
+
response = JSON.parse(body)
|
616
|
+
if response['Response'].key?('Error') == false
|
617
|
+
model = DescribeProxyProcessStatisticsResponse.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
|
+
|
608
632
|
# 用于查询 redis 执行 kill 会话任务后代理节点的执行结果,入参异步任务 ID 从接口 CreateProxySessionKillTask 调用成功后取得。当前 product 只支持:redis。
|
609
633
|
|
610
634
|
# @param request: Request instance for DescribeProxySessionKillTasks.
|
data/lib/v20210527/models.rb
CHANGED
@@ -1431,6 +1431,69 @@ module TencentCloud
|
|
1431
1431
|
end
|
1432
1432
|
end
|
1433
1433
|
|
1434
|
+
# DescribeProxyProcessStatistics请求参数结构体
|
1435
|
+
class DescribeProxyProcessStatisticsRequest < TencentCloud::Common::AbstractModel
|
1436
|
+
# @param InstanceId: 实例 ID 。
|
1437
|
+
# @type InstanceId: String
|
1438
|
+
# @param InstanceProxyId: 当前实例下的 ProxyID。
|
1439
|
+
# @type InstanceProxyId: String
|
1440
|
+
# @param Limit: 返回数量。
|
1441
|
+
# @type Limit: Integer
|
1442
|
+
# @param Product: 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
|
1443
|
+
# @type Product: String
|
1444
|
+
# @param Offset: 偏移量,默认0。
|
1445
|
+
# @type Offset: Integer
|
1446
|
+
# @param SortBy: 按照某字断排序。支持值包括:"AllConn","ActiveConn","Ip"。
|
1447
|
+
# @type SortBy: String
|
1448
|
+
# @param OrderDirection: 排序方向。支持值包括:"DESC","ASC"。
|
1449
|
+
# @type OrderDirection: String
|
1450
|
+
|
1451
|
+
attr_accessor :InstanceId, :InstanceProxyId, :Limit, :Product, :Offset, :SortBy, :OrderDirection
|
1452
|
+
|
1453
|
+
def initialize(instanceid=nil, instanceproxyid=nil, limit=nil, product=nil, offset=nil, sortby=nil, orderdirection=nil)
|
1454
|
+
@InstanceId = instanceid
|
1455
|
+
@InstanceProxyId = instanceproxyid
|
1456
|
+
@Limit = limit
|
1457
|
+
@Product = product
|
1458
|
+
@Offset = offset
|
1459
|
+
@SortBy = sortby
|
1460
|
+
@OrderDirection = orderdirection
|
1461
|
+
end
|
1462
|
+
|
1463
|
+
def deserialize(params)
|
1464
|
+
@InstanceId = params['InstanceId']
|
1465
|
+
@InstanceProxyId = params['InstanceProxyId']
|
1466
|
+
@Limit = params['Limit']
|
1467
|
+
@Product = params['Product']
|
1468
|
+
@Offset = params['Offset']
|
1469
|
+
@SortBy = params['SortBy']
|
1470
|
+
@OrderDirection = params['OrderDirection']
|
1471
|
+
end
|
1472
|
+
end
|
1473
|
+
|
1474
|
+
# DescribeProxyProcessStatistics返回参数结构体
|
1475
|
+
class DescribeProxyProcessStatisticsResponse < TencentCloud::Common::AbstractModel
|
1476
|
+
# @param ProcessStatistics: 实时会话统计详情。
|
1477
|
+
# @type ProcessStatistics: :class:`Tencentcloud::Dbbrain.v20210527.models.ProcessStatistic`
|
1478
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1479
|
+
# @type RequestId: String
|
1480
|
+
|
1481
|
+
attr_accessor :ProcessStatistics, :RequestId
|
1482
|
+
|
1483
|
+
def initialize(processstatistics=nil, requestid=nil)
|
1484
|
+
@ProcessStatistics = processstatistics
|
1485
|
+
@RequestId = requestid
|
1486
|
+
end
|
1487
|
+
|
1488
|
+
def deserialize(params)
|
1489
|
+
unless params['ProcessStatistics'].nil?
|
1490
|
+
@ProcessStatistics = ProcessStatistic.new
|
1491
|
+
@ProcessStatistics.deserialize(params['ProcessStatistics'])
|
1492
|
+
end
|
1493
|
+
@RequestId = params['RequestId']
|
1494
|
+
end
|
1495
|
+
end
|
1496
|
+
|
1434
1497
|
# DescribeProxySessionKillTasks请求参数结构体
|
1435
1498
|
class DescribeProxySessionKillTasksRequest < TencentCloud::Common::AbstractModel
|
1436
1499
|
# @param InstanceId: 实例ID。
|
@@ -3169,6 +3232,17 @@ module TencentCloud
|
|
3169
3232
|
end
|
3170
3233
|
end
|
3171
3234
|
|
3235
|
+
# 实时会话统计详情。
|
3236
|
+
class ProcessStatistic < TencentCloud::Common::AbstractModel
|
3237
|
+
|
3238
|
+
|
3239
|
+
def initialize()
|
3240
|
+
end
|
3241
|
+
|
3242
|
+
def deserialize(params)
|
3243
|
+
end
|
3244
|
+
end
|
3245
|
+
|
3172
3246
|
# 用户配置的信息
|
3173
3247
|
class ProfileInfo < TencentCloud::Common::AbstractModel
|
3174
3248
|
# @param Language: 语言, 如"zh"。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dbbrain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.481
|
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-12-
|
11
|
+
date: 2022-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|