tencentcloud-sdk-dbbrain 3.0.974 → 3.0.975
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/v20210527/client.rb +24 -0
- data/lib/v20210527/models.rb +95 -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: 533777f465df668a03aa2fc203537ea15215554b
|
4
|
+
data.tar.gz: fbe9c48e56c02739adc5b212b55b6970e129f8f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2078fac216392258a4f6ad8588d0fcc70f16ee59d8df5e300d266c4ddcb68515f9ab544ef8a37967cecda92b81170e60091169a8b6aff020814eaf945520501d
|
7
|
+
data.tar.gz: 577fd9b9fbd03950a62ddac36d2a408921ff1a7da194908a1aa396d3b33bfc09de4231a4879b24394c100594dcb3b9969cbb0a0cf716d66abfae03463d6aa1f0
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.975
|
data/lib/v20210527/client.rb
CHANGED
@@ -989,6 +989,30 @@ module TencentCloud
|
|
989
989
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
990
990
|
end
|
991
991
|
|
992
|
+
# 热Key分析
|
993
|
+
|
994
|
+
# @param request: Request instance for DescribeRedisTopHotKeys.
|
995
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeRedisTopHotKeysRequest`
|
996
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeRedisTopHotKeysResponse`
|
997
|
+
def DescribeRedisTopHotKeys(request)
|
998
|
+
body = send_request('DescribeRedisTopHotKeys', request.serialize)
|
999
|
+
response = JSON.parse(body)
|
1000
|
+
if response['Response'].key?('Error') == false
|
1001
|
+
model = DescribeRedisTopHotKeysResponse.new
|
1002
|
+
model.deserialize(response['Response'])
|
1003
|
+
model
|
1004
|
+
else
|
1005
|
+
code = response['Response']['Error']['Code']
|
1006
|
+
message = response['Response']['Error']['Message']
|
1007
|
+
reqid = response['Response']['RequestId']
|
1008
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1009
|
+
end
|
1010
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1011
|
+
raise e
|
1012
|
+
rescue StandardError => e
|
1013
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1014
|
+
end
|
1015
|
+
|
992
1016
|
# 查询redis实例top key前缀列表。
|
993
1017
|
|
994
1018
|
# @param request: Request instance for DescribeRedisTopKeyPrefixList.
|
data/lib/v20210527/models.rb
CHANGED
@@ -2753,6 +2753,69 @@ module TencentCloud
|
|
2753
2753
|
end
|
2754
2754
|
end
|
2755
2755
|
|
2756
|
+
# DescribeRedisTopHotKeys请求参数结构体
|
2757
|
+
class DescribeRedisTopHotKeysRequest < TencentCloud::Common::AbstractModel
|
2758
|
+
# @param InstanceId: 实例 ID 。
|
2759
|
+
# @type InstanceId: String
|
2760
|
+
# @param StartTime: 开始时间,如“2024-09-22T00:00:00+00:00”。0天 < 当前服务器时间 - 开始时间 <= 10天。
|
2761
|
+
# @type StartTime: String
|
2762
|
+
# @param EndTime: 结束时间,如“2024-09-22T01:00:00+00:00”,0天 < 结束时间 - 开始时间 <= 10天。
|
2763
|
+
# @type EndTime: String
|
2764
|
+
# @param Product: 服务产品类型,仅仅支持值 "redis" - 云数据库 Redis。
|
2765
|
+
# @type Product: String
|
2766
|
+
# @param InstanceNodeIds: Redis 节点数组。
|
2767
|
+
# @type InstanceNodeIds: Array
|
2768
|
+
# @param Limit: top 数目,默认为20,最大值为100。
|
2769
|
+
# @type Limit: Integer
|
2770
|
+
|
2771
|
+
attr_accessor :InstanceId, :StartTime, :EndTime, :Product, :InstanceNodeIds, :Limit
|
2772
|
+
|
2773
|
+
def initialize(instanceid=nil, starttime=nil, endtime=nil, product=nil, instancenodeids=nil, limit=nil)
|
2774
|
+
@InstanceId = instanceid
|
2775
|
+
@StartTime = starttime
|
2776
|
+
@EndTime = endtime
|
2777
|
+
@Product = product
|
2778
|
+
@InstanceNodeIds = instancenodeids
|
2779
|
+
@Limit = limit
|
2780
|
+
end
|
2781
|
+
|
2782
|
+
def deserialize(params)
|
2783
|
+
@InstanceId = params['InstanceId']
|
2784
|
+
@StartTime = params['StartTime']
|
2785
|
+
@EndTime = params['EndTime']
|
2786
|
+
@Product = params['Product']
|
2787
|
+
@InstanceNodeIds = params['InstanceNodeIds']
|
2788
|
+
@Limit = params['Limit']
|
2789
|
+
end
|
2790
|
+
end
|
2791
|
+
|
2792
|
+
# DescribeRedisTopHotKeys返回参数结构体
|
2793
|
+
class DescribeRedisTopHotKeysResponse < TencentCloud::Common::AbstractModel
|
2794
|
+
# @param TopHotKeys: 热Key分析结果
|
2795
|
+
# @type TopHotKeys: Array
|
2796
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2797
|
+
# @type RequestId: String
|
2798
|
+
|
2799
|
+
attr_accessor :TopHotKeys, :RequestId
|
2800
|
+
|
2801
|
+
def initialize(tophotkeys=nil, requestid=nil)
|
2802
|
+
@TopHotKeys = tophotkeys
|
2803
|
+
@RequestId = requestid
|
2804
|
+
end
|
2805
|
+
|
2806
|
+
def deserialize(params)
|
2807
|
+
unless params['TopHotKeys'].nil?
|
2808
|
+
@TopHotKeys = []
|
2809
|
+
params['TopHotKeys'].each do |i|
|
2810
|
+
tophotkeys_tmp = TopHotKeys.new
|
2811
|
+
tophotkeys_tmp.deserialize(i)
|
2812
|
+
@TopHotKeys << tophotkeys_tmp
|
2813
|
+
end
|
2814
|
+
end
|
2815
|
+
@RequestId = params['RequestId']
|
2816
|
+
end
|
2817
|
+
end
|
2818
|
+
|
2756
2819
|
# DescribeRedisTopKeyPrefixList请求参数结构体
|
2757
2820
|
class DescribeRedisTopKeyPrefixListRequest < TencentCloud::Common::AbstractModel
|
2758
2821
|
# @param InstanceId: 实例ID。
|
@@ -5971,6 +6034,38 @@ module TencentCloud
|
|
5971
6034
|
end
|
5972
6035
|
end
|
5973
6036
|
|
6037
|
+
# 热key分析返回信息
|
6038
|
+
class TopHotKeys < TencentCloud::Common::AbstractModel
|
6039
|
+
# @param Count: 访问频次。
|
6040
|
+
# @type Count: Integer
|
6041
|
+
# @param Db: 热Key所属数据库。
|
6042
|
+
# @type Db: String
|
6043
|
+
# @param InstanceNodeId: Redis节点。
|
6044
|
+
# @type InstanceNodeId: String
|
6045
|
+
# @param Key: 热Key。
|
6046
|
+
# @type Key: String
|
6047
|
+
# @param Type: 数据类型。
|
6048
|
+
# @type Type: String
|
6049
|
+
|
6050
|
+
attr_accessor :Count, :Db, :InstanceNodeId, :Key, :Type
|
6051
|
+
|
6052
|
+
def initialize(count=nil, db=nil, instancenodeid=nil, key=nil, type=nil)
|
6053
|
+
@Count = count
|
6054
|
+
@Db = db
|
6055
|
+
@InstanceNodeId = instancenodeid
|
6056
|
+
@Key = key
|
6057
|
+
@Type = type
|
6058
|
+
end
|
6059
|
+
|
6060
|
+
def deserialize(params)
|
6061
|
+
@Count = params['Count']
|
6062
|
+
@Db = params['Db']
|
6063
|
+
@InstanceNodeId = params['InstanceNodeId']
|
6064
|
+
@Key = params['Key']
|
6065
|
+
@Type = params['Type']
|
6066
|
+
end
|
6067
|
+
end
|
6068
|
+
|
5974
6069
|
# UpdateAgentSwitch请求参数结构体
|
5975
6070
|
class UpdateAgentSwitchRequest < TencentCloud::Common::AbstractModel
|
5976
6071
|
# @param AgentId: Agent标识。
|
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.975
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-01-
|
11
|
+
date: 2025-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|