tencentcloud-sdk-dbbrain 3.0.1174 → 3.0.1195

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 486db3d6a82e0cb69375cf28119c9f7e7081954d
4
- data.tar.gz: 6a48cc94b416619bbe9d31835cb9155dc243965d
3
+ metadata.gz: 9acfc15f5937a07d4e2eb2c6f731b1fcde81d132
4
+ data.tar.gz: f0d62175576791bfdc36516c5abc0243fe6dc404
5
5
  SHA512:
6
- metadata.gz: b51187e7b42e8356b28ad50517443f8d7f7d4c9f05d0eb4ede3c06a423485b4bab50915aaa44c26281dcdede8097dff6157a7ef503127b1fd2016743d97a6fb9
7
- data.tar.gz: 1ad946834fb69156aa2c477786c85e74646948cb833afe377e118b913267e33e26b4aa8ef4ef57401a75dcf252c3386e2795964e523eaefb7e07689c9924e1e7
6
+ metadata.gz: 62ba6889ff67ebb1b0a2ec1b9d14dcad55b03c06b49a8e779ec3bae7b8fba453477eacfa25d0ecb58c12598a6d9a0658ae0cadb3ff5d75c6c13254a55a14e5d1
7
+ data.tar.gz: f1a065f277bdac7ab7f4102572f3772af10659a124245ac619b3bca659451f0d1249c80ee9d3349b17aefcee4cc320f7316949bf3c0168fa2b06c547e80f5078
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1174
1
+ 3.0.1195
@@ -2,12 +2,12 @@
2
2
 
3
3
  require 'tencentcloud-sdk-common'
4
4
 
5
- require_relative 'v20210527/client'
6
- require_relative 'v20210527/models'
7
-
8
5
  require_relative 'v20191016/client'
9
6
  require_relative 'v20191016/models'
10
7
 
8
+ require_relative 'v20210527/client'
9
+ require_relative 'v20210527/models'
10
+
11
11
  module TencentCloud
12
12
  module Dbbrain
13
13
  end
@@ -1445,6 +1445,30 @@ module TencentCloud
1445
1445
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1446
1446
  end
1447
1447
 
1448
+ # 查询Redis全量Key的内存分布情况。
1449
+
1450
+ # @param request: Request instance for DescribeRedisUnExpiredKeyStatistics.
1451
+ # @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeRedisUnExpiredKeyStatisticsRequest`
1452
+ # @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeRedisUnExpiredKeyStatisticsResponse`
1453
+ def DescribeRedisUnExpiredKeyStatistics(request)
1454
+ body = send_request('DescribeRedisUnExpiredKeyStatistics', request.serialize)
1455
+ response = JSON.parse(body)
1456
+ if response['Response'].key?('Error') == false
1457
+ model = DescribeRedisUnExpiredKeyStatisticsResponse.new
1458
+ model.deserialize(response['Response'])
1459
+ model
1460
+ else
1461
+ code = response['Response']['Error']['Code']
1462
+ message = response['Response']['Error']['Message']
1463
+ reqid = response['Response']['RequestId']
1464
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1465
+ end
1466
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1467
+ raise e
1468
+ rescue StandardError => e
1469
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1470
+ end
1471
+
1448
1472
  # 查询安全审计日志导出文件下载链接。目前日志文件下载仅提供腾讯云内网地址,请通过广州地域的腾讯云服务器进行下载。
1449
1473
 
1450
1474
  # @param request: Request instance for DescribeSecurityAuditLogDownloadUrls.
@@ -3810,10 +3810,10 @@ module TencentCloud
3810
3810
  class DescribeRedisTopBigKeysRequest < TencentCloud::Common::AbstractModel
3811
3811
  # @param InstanceId: 实例 ID。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。
3812
3812
  # @type InstanceId: String
3813
- # @param Date: 查询日期,如2021-05-27,最早可为前30天的日期。
3814
- # @type Date: String
3815
3813
  # @param Product: 服务产品类型,支持值包括 "redis" - 云数据库 Redis。
3816
3814
  # @type Product: String
3815
+ # @param Date: 查询某个日期最新的任务,如2021-05-27,最早可为前30天的日期。该参数与AsyncRequestId参数不可同时为空。
3816
+ # @type Date: String
3817
3817
  # @param SortBy: 排序字段,取值包括Capacity - 内存,ItemCount - 元素数量,默认为Capacity。
3818
3818
  # @type SortBy: String
3819
3819
  # @param KeyType: key类型筛选条件,默认为不进行筛选,取值包括string, list, set, hash, sortedset, stream。
@@ -3824,29 +3824,34 @@ module TencentCloud
3824
3824
  # @type AsyncRequestId: Integer
3825
3825
  # @param ShardIds: 分片节点序号列表。当列表为空时,选择所有分片节点。
3826
3826
  # @type ShardIds: Array
3827
+ # @param UnExpireKey: 是否仅查询未设置过期时间的大Key。
3828
+ # 当为true时,仅查询未设置过期时间的大Key,默认为false。
3829
+ # @type UnExpireKey: Boolean
3827
3830
 
3828
- attr_accessor :InstanceId, :Date, :Product, :SortBy, :KeyType, :Limit, :AsyncRequestId, :ShardIds
3831
+ attr_accessor :InstanceId, :Product, :Date, :SortBy, :KeyType, :Limit, :AsyncRequestId, :ShardIds, :UnExpireKey
3829
3832
 
3830
- def initialize(instanceid=nil, date=nil, product=nil, sortby=nil, keytype=nil, limit=nil, asyncrequestid=nil, shardids=nil)
3833
+ def initialize(instanceid=nil, product=nil, date=nil, sortby=nil, keytype=nil, limit=nil, asyncrequestid=nil, shardids=nil, unexpirekey=nil)
3831
3834
  @InstanceId = instanceid
3832
- @Date = date
3833
3835
  @Product = product
3836
+ @Date = date
3834
3837
  @SortBy = sortby
3835
3838
  @KeyType = keytype
3836
3839
  @Limit = limit
3837
3840
  @AsyncRequestId = asyncrequestid
3838
3841
  @ShardIds = shardids
3842
+ @UnExpireKey = unexpirekey
3839
3843
  end
3840
3844
 
3841
3845
  def deserialize(params)
3842
3846
  @InstanceId = params['InstanceId']
3843
- @Date = params['Date']
3844
3847
  @Product = params['Product']
3848
+ @Date = params['Date']
3845
3849
  @SortBy = params['SortBy']
3846
3850
  @KeyType = params['KeyType']
3847
3851
  @Limit = params['Limit']
3848
3852
  @AsyncRequestId = params['AsyncRequestId']
3849
3853
  @ShardIds = params['ShardIds']
3854
+ @UnExpireKey = params['UnExpireKey']
3850
3855
  end
3851
3856
  end
3852
3857
 
@@ -4070,6 +4075,65 @@ module TencentCloud
4070
4075
  end
4071
4076
  end
4072
4077
 
4078
+ # DescribeRedisUnExpiredKeyStatistics请求参数结构体
4079
+ class DescribeRedisUnExpiredKeyStatisticsRequest < TencentCloud::Common::AbstractModel
4080
+ # @param InstanceId: 实例 ID。可通过接口获取。
4081
+ # @type InstanceId: String
4082
+ # @param Product: 服务产品类型,支持值包括 "redis" - 云数据库 Redis。
4083
+ # @type Product: String
4084
+ # @param Date: 查询某个日期最新的任务,如2021-05-27,最早可为前30天的日期。该参数与AsyncRequestId参数不可同时为空。
4085
+ # @type Date: String
4086
+ # @param AsyncRequestId: 异步任务ID。当为空时,选择最近任务的ID。
4087
+ # @type AsyncRequestId: Integer
4088
+ # @param ShardIds: 分片节点序号列表。当列表为空时,选择所有分片节点。
4089
+ # @type ShardIds: Array
4090
+
4091
+ attr_accessor :InstanceId, :Product, :Date, :AsyncRequestId, :ShardIds
4092
+
4093
+ def initialize(instanceid=nil, product=nil, date=nil, asyncrequestid=nil, shardids=nil)
4094
+ @InstanceId = instanceid
4095
+ @Product = product
4096
+ @Date = date
4097
+ @AsyncRequestId = asyncrequestid
4098
+ @ShardIds = shardids
4099
+ end
4100
+
4101
+ def deserialize(params)
4102
+ @InstanceId = params['InstanceId']
4103
+ @Product = params['Product']
4104
+ @Date = params['Date']
4105
+ @AsyncRequestId = params['AsyncRequestId']
4106
+ @ShardIds = params['ShardIds']
4107
+ end
4108
+ end
4109
+
4110
+ # DescribeRedisUnExpiredKeyStatistics返回参数结构体
4111
+ class DescribeRedisUnExpiredKeyStatisticsResponse < TencentCloud::Common::AbstractModel
4112
+ # @param SeriesData: 全量Key的聚合分布信息列表。
4113
+ # @type SeriesData: Array
4114
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4115
+ # @type RequestId: String
4116
+
4117
+ attr_accessor :SeriesData, :RequestId
4118
+
4119
+ def initialize(seriesdata=nil, requestid=nil)
4120
+ @SeriesData = seriesdata
4121
+ @RequestId = requestid
4122
+ end
4123
+
4124
+ def deserialize(params)
4125
+ unless params['SeriesData'].nil?
4126
+ @SeriesData = []
4127
+ params['SeriesData'].each do |i|
4128
+ redisglobalkeyinfo_tmp = RedisGlobalKeyInfo.new
4129
+ redisglobalkeyinfo_tmp.deserialize(i)
4130
+ @SeriesData << redisglobalkeyinfo_tmp
4131
+ end
4132
+ end
4133
+ @RequestId = params['RequestId']
4134
+ end
4135
+ end
4136
+
4073
4137
  # DescribeSecurityAuditLogDownloadUrls请求参数结构体
4074
4138
  class DescribeSecurityAuditLogDownloadUrlsRequest < TencentCloud::Common::AbstractModel
4075
4139
  # @param SecAuditGroupId: 安全审计组Id。
@@ -6787,6 +6851,36 @@ module TencentCloud
6787
6851
  end
6788
6852
  end
6789
6853
 
6854
+ # Redis全量Key的聚合信息。
6855
+ class RedisGlobalKeyInfo < TencentCloud::Common::AbstractModel
6856
+ # @param Capacity: 占用内存大小,单位Byte。
6857
+ # @type Capacity: Integer
6858
+ # @param Count: Key个数。
6859
+ # @type Count: Integer
6860
+ # @param RangeMax: 剩余过期时间范围的结束时间,当小于0时,代表已过期时间,单位:小时。当RangeMin与RangeMax同时为空时,代表未设置过期时间。当RangeMax为空时,代表剩余过期时间大于等于RangeMin小时。
6861
+ # 注意:此字段可能返回 null,表示取不到有效值。
6862
+ # @type RangeMax: Integer
6863
+ # @param RangeMin: 剩余过期时间范围的起始时间,当小于0时,代表已过期时间,单位:小时。当RangeMin与RangeMax同时为空时,代表未设置过期时间。当RangeMin为空时,代表已过期。
6864
+ # 注意:此字段可能返回 null,表示取不到有效值。
6865
+ # @type RangeMin: Integer
6866
+
6867
+ attr_accessor :Capacity, :Count, :RangeMax, :RangeMin
6868
+
6869
+ def initialize(capacity=nil, count=nil, rangemax=nil, rangemin=nil)
6870
+ @Capacity = capacity
6871
+ @Count = count
6872
+ @RangeMax = rangemax
6873
+ @RangeMin = rangemin
6874
+ end
6875
+
6876
+ def deserialize(params)
6877
+ @Capacity = params['Capacity']
6878
+ @Count = params['Count']
6879
+ @RangeMax = params['RangeMax']
6880
+ @RangeMin = params['RangeMin']
6881
+ end
6882
+ end
6883
+
6790
6884
  # Redis实例内存配置参数
6791
6885
  class RedisInstanceConf < TencentCloud::Common::AbstractModel
6792
6886
  # @param ReplicasNum: 副本数量
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.1174
4
+ version: 3.0.1195
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-11-28 00:00:00.000000000 Z
11
+ date: 2026-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,11 +33,11 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20191016/models.rb
36
+ - lib/v20210527/client.rb
37
+ - lib/v20210527/models.rb
37
38
  - lib/v20191016/client.rb
39
+ - lib/v20191016/models.rb
38
40
  - lib/tencentcloud-sdk-dbbrain.rb
39
- - lib/v20210527/models.rb
40
- - lib/v20210527/client.rb
41
41
  - lib/VERSION
42
42
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
43
43
  licenses: