tencentcloud-sdk-dbbrain 3.0.1140 → 3.0.1143

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: f16c5454cb84bed258751e32490e0a8a48808d46
4
- data.tar.gz: 1c09d213d92a1f5e1f2f14ab496e6f3dbe085df9
3
+ metadata.gz: a6138d87acb0eacb8b117a6ef086aa35617f4df9
4
+ data.tar.gz: 0d6043d043f81bcb4960d3941a6be2e76bc1d3fc
5
5
  SHA512:
6
- metadata.gz: f45a4488a42343db0bc93095a80a8504248ba8fd8ec8d817530290c0633e0a59f139a8842a9b9be3d5b7d59e46e524651dbf506396469cfd774e99f338682fe9
7
- data.tar.gz: b0d4c6ead5a0245b298b720584ef14e1e73fe2bfddf3cd6509e3bd57c88902bcc3f857f19cfab10247c09dcb276252aeef8ba94f6fc2d11145d95858ec79edb9
6
+ metadata.gz: 73f39e8542b32f2074892d04730efaaaa8fd6abd5fb9e11454aaae806e5057d712d107dbb7ef1c6d163a4deeae45c646bb9879e75b552480a4b09c298d76bfbb
7
+ data.tar.gz: 71aac81d0413170af9fb8e8729581494695f57e88bc128d26d9a7555f7a97532bc562966c7bfa6895f60dadee32dc402acc5153b03646b38f45781c8c9ab36fc
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1140
1
+ 3.0.1143
@@ -965,6 +965,30 @@ module TencentCloud
965
965
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
966
966
  end
967
967
 
968
+ # 获取指定时间段内的健康得分趋势
969
+
970
+ # @param request: Request instance for DescribeHealthScoreTimeSeries.
971
+ # @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeHealthScoreTimeSeriesRequest`
972
+ # @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeHealthScoreTimeSeriesResponse`
973
+ def DescribeHealthScoreTimeSeries(request)
974
+ body = send_request('DescribeHealthScoreTimeSeries', request.serialize)
975
+ response = JSON.parse(body)
976
+ if response['Response'].key?('Error') == false
977
+ model = DescribeHealthScoreTimeSeriesResponse.new
978
+ model.deserialize(response['Response'])
979
+ model
980
+ else
981
+ code = response['Response']['Error']['Code']
982
+ message = response['Response']['Error']['Message']
983
+ reqid = response['Response']['RequestId']
984
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
985
+ end
986
+ rescue TencentCloud::Common::TencentCloudSDKException => e
987
+ raise e
988
+ rescue StandardError => e
989
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
990
+ end
991
+
968
992
  # 查询某张表的慢查模板概览,这个接口是对用户点击对应的推荐索引后,展示慢日志用的
969
993
 
970
994
  # @param request: Request instance for DescribeIndexRecommendAggregationSlowLogs.
@@ -1301,6 +1325,30 @@ module TencentCloud
1301
1325
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1302
1326
  end
1303
1327
 
1328
+ # 获取指定时间段内Redis 访问命令 cost top N
1329
+
1330
+ # @param request: Request instance for DescribeRedisTopCostCommands.
1331
+ # @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeRedisTopCostCommandsRequest`
1332
+ # @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeRedisTopCostCommandsResponse`
1333
+ def DescribeRedisTopCostCommands(request)
1334
+ body = send_request('DescribeRedisTopCostCommands', request.serialize)
1335
+ response = JSON.parse(body)
1336
+ if response['Response'].key?('Error') == false
1337
+ model = DescribeRedisTopCostCommandsResponse.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
  # 热Key分析
1305
1353
 
1306
1354
  # @param request: Request instance for DescribeRedisTopHotKeys.
@@ -2737,6 +2737,57 @@ module TencentCloud
2737
2737
  end
2738
2738
  end
2739
2739
 
2740
+ # DescribeHealthScoreTimeSeries请求参数结构体
2741
+ class DescribeHealthScoreTimeSeriesRequest < TencentCloud::Common::AbstractModel
2742
+ # @param StartTime: 开始时间,如“2021-05-27 00:00:00”,支持的最早查询时间为当前时间的前30天。
2743
+ # @type StartTime: String
2744
+ # @param EndTime: 结束时间,如“2021-05-27 01:00:00”,支持的最早查询时间为当前时间的前30天。
2745
+ # @type EndTime: String
2746
+ # @param InstanceId: 实例ID列表。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。
2747
+ # @type InstanceId: String
2748
+ # @param Product: 服务产品类型,支持值包括:"mysql" - 云数据库 MySQL,"redis" - 云数据库 Redis,"mariadb"-数据库mariadb 默认为"mysql"。
2749
+ # @type Product: String
2750
+
2751
+ attr_accessor :StartTime, :EndTime, :InstanceId, :Product
2752
+
2753
+ def initialize(starttime=nil, endtime=nil, instanceid=nil, product=nil)
2754
+ @StartTime = starttime
2755
+ @EndTime = endtime
2756
+ @InstanceId = instanceid
2757
+ @Product = product
2758
+ end
2759
+
2760
+ def deserialize(params)
2761
+ @StartTime = params['StartTime']
2762
+ @EndTime = params['EndTime']
2763
+ @InstanceId = params['InstanceId']
2764
+ @Product = params['Product']
2765
+ end
2766
+ end
2767
+
2768
+ # DescribeHealthScoreTimeSeries返回参数结构体
2769
+ class DescribeHealthScoreTimeSeriesResponse < TencentCloud::Common::AbstractModel
2770
+ # @param Data: 健康得分趋势数据
2771
+ # @type Data: :class:`Tencentcloud::Dbbrain.v20210527.models.HealthScoreTimeSeriesData`
2772
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2773
+ # @type RequestId: String
2774
+
2775
+ attr_accessor :Data, :RequestId
2776
+
2777
+ def initialize(data=nil, requestid=nil)
2778
+ @Data = data
2779
+ @RequestId = requestid
2780
+ end
2781
+
2782
+ def deserialize(params)
2783
+ unless params['Data'].nil?
2784
+ @Data = HealthScoreTimeSeriesData.new
2785
+ @Data.deserialize(params['Data'])
2786
+ end
2787
+ @RequestId = params['RequestId']
2788
+ end
2789
+ end
2790
+
2740
2791
  # DescribeIndexRecommendAggregationSlowLogs请求参数结构体
2741
2792
  class DescribeIndexRecommendAggregationSlowLogsRequest < TencentCloud::Common::AbstractModel
2742
2793
  # @param Product: 服务产品类型,支持值包括:"mongodb" - 云数据库 。
@@ -3669,6 +3720,65 @@ module TencentCloud
3669
3720
  end
3670
3721
  end
3671
3722
 
3723
+ # DescribeRedisTopCostCommands请求参数结构体
3724
+ class DescribeRedisTopCostCommandsRequest < TencentCloud::Common::AbstractModel
3725
+ # @param StartTime: 开始时间,如“2021-05-27 00:00:00”,支持的最早查询时间为当前时间的前30天。
3726
+ # @type StartTime: String
3727
+ # @param EndTime: 结束时间,如“2021-05-27 01:00:00”,支持的最早查询时间为当前时间的前30天。
3728
+ # @type EndTime: String
3729
+ # @param InstanceId: 实例ID列表。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。
3730
+ # @type InstanceId: String
3731
+ # @param Product: 服务产品类型,支持值包括:"mysql" - 云数据库 MySQL,"redis" - 云数据库 Redis,"mariadb"-数据库mariadb 默认为"mysql"。
3732
+ # @type Product: String
3733
+ # @param Limit: 默认前20条
3734
+ # @type Limit: Integer
3735
+
3736
+ attr_accessor :StartTime, :EndTime, :InstanceId, :Product, :Limit
3737
+
3738
+ def initialize(starttime=nil, endtime=nil, instanceid=nil, product=nil, limit=nil)
3739
+ @StartTime = starttime
3740
+ @EndTime = endtime
3741
+ @InstanceId = instanceid
3742
+ @Product = product
3743
+ @Limit = limit
3744
+ end
3745
+
3746
+ def deserialize(params)
3747
+ @StartTime = params['StartTime']
3748
+ @EndTime = params['EndTime']
3749
+ @InstanceId = params['InstanceId']
3750
+ @Product = params['Product']
3751
+ @Limit = params['Limit']
3752
+ end
3753
+ end
3754
+
3755
+ # DescribeRedisTopCostCommands返回参数结构体
3756
+ class DescribeRedisTopCostCommandsResponse < TencentCloud::Common::AbstractModel
3757
+ # @param TopCostCmdList: 命令列表
3758
+ # @type TopCostCmdList: Array
3759
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3760
+ # @type RequestId: String
3761
+
3762
+ attr_accessor :TopCostCmdList, :RequestId
3763
+
3764
+ def initialize(topcostcmdlist=nil, requestid=nil)
3765
+ @TopCostCmdList = topcostcmdlist
3766
+ @RequestId = requestid
3767
+ end
3768
+
3769
+ def deserialize(params)
3770
+ unless params['TopCostCmdList'].nil?
3771
+ @TopCostCmdList = []
3772
+ params['TopCostCmdList'].each do |i|
3773
+ rediscostcmd_tmp = RedisCostCmd.new
3774
+ rediscostcmd_tmp.deserialize(i)
3775
+ @TopCostCmdList << rediscostcmd_tmp
3776
+ end
3777
+ end
3778
+ @RequestId = params['RequestId']
3779
+ end
3780
+ end
3781
+
3672
3782
  # DescribeRedisTopHotKeys请求参数结构体
3673
3783
  class DescribeRedisTopHotKeysRequest < TencentCloud::Common::AbstractModel
3674
3784
  # @param InstanceId: 实例 ID 。
@@ -5037,6 +5147,45 @@ module TencentCloud
5037
5147
  end
5038
5148
  end
5039
5149
 
5150
+ # 健康得分趋势
5151
+ class HealthScoreTimeSeriesData < TencentCloud::Common::AbstractModel
5152
+ # @param Avg: 平均得分
5153
+ # @type Avg: Float
5154
+ # @param HealthStatus: 健康状态
5155
+ # 1-health
5156
+ # 2-warning
5157
+ # 3-critical
5158
+ # @type HealthStatus: Integer
5159
+ # @param Metric: 指标名称
5160
+ # @type Metric: String
5161
+ # @param Series: 得分序列
5162
+ # @type Series: Array
5163
+ # @param Timestamp: 时间序列,单位:毫秒数
5164
+ # @type Timestamp: Array
5165
+ # @param Unit: 单位
5166
+ # @type Unit: String
5167
+
5168
+ attr_accessor :Avg, :HealthStatus, :Metric, :Series, :Timestamp, :Unit
5169
+
5170
+ def initialize(avg=nil, healthstatus=nil, metric=nil, series=nil, timestamp=nil, unit=nil)
5171
+ @Avg = avg
5172
+ @HealthStatus = healthstatus
5173
+ @Metric = metric
5174
+ @Series = series
5175
+ @Timestamp = timestamp
5176
+ @Unit = unit
5177
+ end
5178
+
5179
+ def deserialize(params)
5180
+ @Avg = params['Avg']
5181
+ @HealthStatus = params['HealthStatus']
5182
+ @Metric = params['Metric']
5183
+ @Series = params['Series']
5184
+ @Timestamp = params['Timestamp']
5185
+ @Unit = params['Unit']
5186
+ end
5187
+ end
5188
+
5040
5189
  # 实例健康详情。
5041
5190
  class HealthStatus < TencentCloud::Common::AbstractModel
5042
5191
  # @param HealthScore: 健康分数,满分100。
@@ -6337,6 +6486,26 @@ module TencentCloud
6337
6486
  end
6338
6487
  end
6339
6488
 
6489
+ # redis命令cost详情
6490
+ class RedisCostCmd < TencentCloud::Common::AbstractModel
6491
+ # @param Cmd: 命令
6492
+ # @type Cmd: String
6493
+ # @param MaxCost: 最大cost
6494
+ # @type MaxCost: Integer
6495
+
6496
+ attr_accessor :Cmd, :MaxCost
6497
+
6498
+ def initialize(cmd=nil, maxcost=nil)
6499
+ @Cmd = cmd
6500
+ @MaxCost = maxcost
6501
+ end
6502
+
6503
+ def deserialize(params)
6504
+ @Cmd = params['Cmd']
6505
+ @MaxCost = params['MaxCost']
6506
+ end
6507
+ end
6508
+
6340
6509
  # Redis实例内存配置参数
6341
6510
  class RedisInstanceConf < TencentCloud::Common::AbstractModel
6342
6511
  # @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.1140
4
+ version: 3.0.1143
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-09-15 00:00:00.000000000 Z
11
+ date: 2025-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common