tencentcloud-sdk-dbbrain 3.0.974 → 3.0.976

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: e237b7ab889406928ca28d75852f0589ddefac34
4
- data.tar.gz: ce90b10d704a666c17bc95fab8ed5004bf322910
3
+ metadata.gz: 89d7faf8693a7dfa49701a6c5839f4fd9092a4c0
4
+ data.tar.gz: 8cbd6e36d4b19621d8f1f1e2bb5058429f078c6d
5
5
  SHA512:
6
- metadata.gz: 998309798a46771cad61838ec1165f8daeeebaabe00afde7ff1d3d992b51015f604e5fe5c014342a19e0b4336d769f96f7239429621b9ce063355fea3b37c2cf
7
- data.tar.gz: ad3c541811fc5f05bdfdd20a151ec240fa3a6a1e34659958ff2e5e8f8dd14f06494fdff9fcdb7ecae46fe05b5446d3e33f519350807be867d83de7b0fe612a8e
6
+ metadata.gz: 1e5a4d58ed263f408de982aa9968d78b1415bdf1c7e2d6c52bdae10e2600c9ff4aef8374f1537d0c4a0f37d2d10bfdc94beb260b4ad3dab921a24ea537593927
7
+ data.tar.gz: 617804b796e46e186f5edaee3bbb1dccc97c28a50feae61a57f8cca8fcf8f41c447dc22b8dc09dd72cd4b5831b981edf9f99d8489d49b5789e750d1e50195a3a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.974
1
+ 3.0.976
@@ -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.
@@ -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.974
4
+ version: 3.0.976
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-02 00:00:00.000000000 Z
11
+ date: 2025-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common