tencentcloud-sdk-dbbrain 3.0.1031 → 3.0.1033

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: 6765bdad9d0f8fa9a0d54f1d06b618f39c353b21
4
- data.tar.gz: 2f2c7fb759e500b80844090bc5934e2d663450a0
3
+ metadata.gz: f2b59990f8c345d855c7c2014a4d4993082c6d03
4
+ data.tar.gz: 3f4bbc9b73835ce9b3a9b2db06e8deb96de533f5
5
5
  SHA512:
6
- metadata.gz: 32533a44a2ec8f285c7480d3764b1820d1823755efb740ca0527ee0055912ded086836697dc74d9a555fcc70e197b32e008472161e5863b81981352209327d50
7
- data.tar.gz: 39bc78c4314f7eec23cb1ef7ecfd16aa36b455fb8d4433aab4c49eba67cac192ce1d437e81f9aa28feb9787013b671f0b3a137d94cf8abb6bc575774cd43d746
6
+ metadata.gz: f527c001d73384c552b8e8957136823e15a503281af7f96fafb1db1c2d513ba470fbd91fc685087761a5474799f07d5d0a68db680c2731b7e88572e96575d868
7
+ data.tar.gz: 77e87b0b410b78845317213d67e66427b30adbe5db651679a02db47b2bfcaa481f0c00ae3426df8a265880c1c5369a8634b64d9de5a5d079c07e1d612a92b7d5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1031
1
+ 3.0.1033
@@ -413,6 +413,30 @@ module TencentCloud
413
413
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
414
  end
415
415
 
416
+ # 查询关系型数据库的实时线程列表。
417
+
418
+ # @param request: Request instance for DescribeMySqlProcessList.
419
+ # @type request: :class:`Tencentcloud::dbbrain::V20191016::DescribeMySqlProcessListRequest`
420
+ # @rtype: :class:`Tencentcloud::dbbrain::V20191016::DescribeMySqlProcessListResponse`
421
+ def DescribeMySqlProcessList(request)
422
+ body = send_request('DescribeMySqlProcessList', request.serialize)
423
+ response = JSON.parse(body)
424
+ if response['Response'].key?('Error') == false
425
+ model = DescribeMySqlProcessListResponse.new
426
+ model.deserialize(response['Response'])
427
+ model
428
+ else
429
+ code = response['Response']['Error']['Code']
430
+ message = response['Response']['Error']['Message']
431
+ reqid = response['Response']['RequestId']
432
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
433
+ end
434
+ rescue TencentCloud::Common::TencentCloudSDKException => e
435
+ raise e
436
+ rescue StandardError => e
437
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
+ end
439
+
416
440
  # 查询安全审计日志导出文件下载链接。目前日志文件下载仅提供腾讯云内网地址,请通过广州地域的腾讯云服务器进行下载。
417
441
 
418
442
  # @param request: Request instance for DescribeSecurityAuditLogDownloadUrls.
@@ -952,6 +952,89 @@ module TencentCloud
952
952
  end
953
953
  end
954
954
 
955
+ # DescribeMySqlProcessList请求参数结构体
956
+ class DescribeMySqlProcessListRequest < TencentCloud::Common::AbstractModel
957
+ # @param InstanceId: 实例ID。
958
+ # @type InstanceId: String
959
+ # @param ID: 线程的ID,用于筛选线程列表。
960
+ # @type ID: Integer
961
+ # @param User: 线程的操作账号名,用于筛选线程列表。
962
+ # @type User: String
963
+ # @param Host: 线程的操作主机地址,用于筛选线程列表。
964
+ # @type Host: String
965
+ # @param DB: 线程的操作数据库,用于筛选线程列表。
966
+ # @type DB: String
967
+ # @param State: 线程的操作状态,用于筛选线程列表。
968
+ # @type State: String
969
+ # @param Command: 线程的执行类型,用于筛选线程列表。
970
+ # @type Command: String
971
+ # @param Time: 线程的操作时长最小值,单位秒,用于筛选操作时长大于该值的线程列表。
972
+ # @type Time: Integer
973
+ # @param Info: 线程的操作语句,用于筛选线程列表。
974
+ # @type Info: String
975
+ # @param Limit: 返回数量,默认20。
976
+ # @type Limit: Integer
977
+ # @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
978
+ # @type Product: String
979
+
980
+ attr_accessor :InstanceId, :ID, :User, :Host, :DB, :State, :Command, :Time, :Info, :Limit, :Product
981
+
982
+ def initialize(instanceid=nil, id=nil, user=nil, host=nil, db=nil, state=nil, command=nil, time=nil, info=nil, limit=nil, product=nil)
983
+ @InstanceId = instanceid
984
+ @ID = id
985
+ @User = user
986
+ @Host = host
987
+ @DB = db
988
+ @State = state
989
+ @Command = command
990
+ @Time = time
991
+ @Info = info
992
+ @Limit = limit
993
+ @Product = product
994
+ end
995
+
996
+ def deserialize(params)
997
+ @InstanceId = params['InstanceId']
998
+ @ID = params['ID']
999
+ @User = params['User']
1000
+ @Host = params['Host']
1001
+ @DB = params['DB']
1002
+ @State = params['State']
1003
+ @Command = params['Command']
1004
+ @Time = params['Time']
1005
+ @Info = params['Info']
1006
+ @Limit = params['Limit']
1007
+ @Product = params['Product']
1008
+ end
1009
+ end
1010
+
1011
+ # DescribeMySqlProcessList返回参数结构体
1012
+ class DescribeMySqlProcessListResponse < TencentCloud::Common::AbstractModel
1013
+ # @param ProcessList: 实时线程列表。
1014
+ # @type ProcessList: Array
1015
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1016
+ # @type RequestId: String
1017
+
1018
+ attr_accessor :ProcessList, :RequestId
1019
+
1020
+ def initialize(processlist=nil, requestid=nil)
1021
+ @ProcessList = processlist
1022
+ @RequestId = requestid
1023
+ end
1024
+
1025
+ def deserialize(params)
1026
+ unless params['ProcessList'].nil?
1027
+ @ProcessList = []
1028
+ params['ProcessList'].each do |i|
1029
+ mysqlprocess_tmp = MySqlProcess.new
1030
+ mysqlprocess_tmp.deserialize(i)
1031
+ @ProcessList << mysqlprocess_tmp
1032
+ end
1033
+ end
1034
+ @RequestId = params['RequestId']
1035
+ end
1036
+ end
1037
+
955
1038
  # DescribeSecurityAuditLogDownloadUrls请求参数结构体
956
1039
  class DescribeSecurityAuditLogDownloadUrlsRequest < TencentCloud::Common::AbstractModel
957
1040
  # @param SecAuditGroupId: 安全审计组Id。
@@ -2303,6 +2386,50 @@ module TencentCloud
2303
2386
  end
2304
2387
  end
2305
2388
 
2389
+ # 关系型数据库线程
2390
+ class MySqlProcess < TencentCloud::Common::AbstractModel
2391
+ # @param ID: 线程ID。
2392
+ # @type ID: String
2393
+ # @param User: 线程的操作账号名。
2394
+ # @type User: String
2395
+ # @param Host: 线程的操作主机地址。
2396
+ # @type Host: String
2397
+ # @param DB: 线程的操作数据库。
2398
+ # @type DB: String
2399
+ # @param State: 线程的操作状态。
2400
+ # @type State: String
2401
+ # @param Command: 线程的执行类型。
2402
+ # @type Command: String
2403
+ # @param Time: 线程的操作时长,单位秒。
2404
+ # @type Time: String
2405
+ # @param Info: 线程的操作语句。
2406
+ # @type Info: String
2407
+
2408
+ attr_accessor :ID, :User, :Host, :DB, :State, :Command, :Time, :Info
2409
+
2410
+ def initialize(id=nil, user=nil, host=nil, db=nil, state=nil, command=nil, time=nil, info=nil)
2411
+ @ID = id
2412
+ @User = user
2413
+ @Host = host
2414
+ @DB = db
2415
+ @State = state
2416
+ @Command = command
2417
+ @Time = time
2418
+ @Info = info
2419
+ end
2420
+
2421
+ def deserialize(params)
2422
+ @ID = params['ID']
2423
+ @User = params['User']
2424
+ @Host = params['Host']
2425
+ @DB = params['DB']
2426
+ @State = params['State']
2427
+ @Command = params['Command']
2428
+ @Time = params['Time']
2429
+ @Info = params['Info']
2430
+ end
2431
+ end
2432
+
2306
2433
  # 用户配置的信息
2307
2434
  class ProfileInfo < TencentCloud::Common::AbstractModel
2308
2435
  # @param Language: 语言, 如"zh"。
@@ -1181,6 +1181,30 @@ module TencentCloud
1181
1181
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1182
1182
  end
1183
1183
 
1184
+ # 统计排序指定时间段内的top慢sql。
1185
+
1186
+ # @param request: Request instance for DescribeRedisSlowLogTopSqls.
1187
+ # @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeRedisSlowLogTopSqlsRequest`
1188
+ # @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeRedisSlowLogTopSqlsResponse`
1189
+ def DescribeRedisSlowLogTopSqls(request)
1190
+ body = send_request('DescribeRedisSlowLogTopSqls', request.serialize)
1191
+ response = JSON.parse(body)
1192
+ if response['Response'].key?('Error') == false
1193
+ model = DescribeRedisSlowLogTopSqlsResponse.new
1194
+ model.deserialize(response['Response'])
1195
+ model
1196
+ else
1197
+ code = response['Response']['Error']['Code']
1198
+ message = response['Response']['Error']['Message']
1199
+ reqid = response['Response']['RequestId']
1200
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1201
+ end
1202
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1203
+ raise e
1204
+ rescue StandardError => e
1205
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1206
+ end
1207
+
1184
1208
  # 查询redis实例大key列表。
1185
1209
 
1186
1210
  # @param request: Request instance for DescribeRedisTopBigKeys.
@@ -1301,6 +1325,30 @@ module TencentCloud
1301
1325
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1302
1326
  end
1303
1327
 
1328
+ # 统计排序指定时间段内的top慢sql。
1329
+
1330
+ # @param request: Request instance for DescribeSlowLogQueryTimeStats.
1331
+ # @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeSlowLogQueryTimeStatsRequest`
1332
+ # @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeSlowLogQueryTimeStatsResponse`
1333
+ def DescribeSlowLogQueryTimeStats(request)
1334
+ body = send_request('DescribeSlowLogQueryTimeStats', request.serialize)
1335
+ response = JSON.parse(body)
1336
+ if response['Response'].key?('Error') == false
1337
+ model = DescribeSlowLogQueryTimeStatsResponse.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
  # 获取慢日志统计柱状图。
1305
1353
 
1306
1354
  # @param request: Request instance for DescribeSlowLogTimeSeriesStats.
@@ -3343,6 +3343,85 @@ module TencentCloud
3343
3343
  end
3344
3344
  end
3345
3345
 
3346
+ # DescribeRedisSlowLogTopSqls请求参数结构体
3347
+ class DescribeRedisSlowLogTopSqlsRequest < TencentCloud::Common::AbstractModel
3348
+ # @param InstanceId: 实例 ID 。
3349
+ # @type InstanceId: String
3350
+ # @param StartTime: 开始时间,如“2019-09-10 12:13:14”。
3351
+ # @type StartTime: String
3352
+ # @param EndTime: 截止时间,如“2019-09-11 10:13:14”,截止时间与开始时间的间隔小于7天。
3353
+ # @type EndTime: String
3354
+ # @param Product: 服务产品类型,支持值: "redis" - 云数据库 Redis。
3355
+ # @type Product: String
3356
+ # @param InstanceProxyId: Redis Proxy节点ID。
3357
+ # @type InstanceProxyId: String
3358
+ # @param SortBy: 排序键,支持ExecTimes,QueryTime,QueryTimeMax,QueryTimeAvg等排序键,默认为QueryTime。
3359
+ # @type SortBy: String
3360
+ # @param OrderBy: 排序方式,支持ASC(升序)以及DESC(降序),默认为DESC。
3361
+ # @type OrderBy: String
3362
+ # @param Limit: 返回数量,默认为20,最大值为100。
3363
+ # @type Limit: Integer
3364
+ # @param Offset: 偏移量,默认为0。
3365
+ # @type Offset: Integer
3366
+
3367
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Product, :InstanceProxyId, :SortBy, :OrderBy, :Limit, :Offset
3368
+
3369
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, product=nil, instanceproxyid=nil, sortby=nil, orderby=nil, limit=nil, offset=nil)
3370
+ @InstanceId = instanceid
3371
+ @StartTime = starttime
3372
+ @EndTime = endtime
3373
+ @Product = product
3374
+ @InstanceProxyId = instanceproxyid
3375
+ @SortBy = sortby
3376
+ @OrderBy = orderby
3377
+ @Limit = limit
3378
+ @Offset = offset
3379
+ end
3380
+
3381
+ def deserialize(params)
3382
+ @InstanceId = params['InstanceId']
3383
+ @StartTime = params['StartTime']
3384
+ @EndTime = params['EndTime']
3385
+ @Product = params['Product']
3386
+ @InstanceProxyId = params['InstanceProxyId']
3387
+ @SortBy = params['SortBy']
3388
+ @OrderBy = params['OrderBy']
3389
+ @Limit = params['Limit']
3390
+ @Offset = params['Offset']
3391
+ end
3392
+ end
3393
+
3394
+ # DescribeRedisSlowLogTopSqls返回参数结构体
3395
+ class DescribeRedisSlowLogTopSqlsResponse < TencentCloud::Common::AbstractModel
3396
+ # @param TotalCount: 符合条件的记录总数。
3397
+ # @type TotalCount: Integer
3398
+ # @param Rows: 慢日志 top sql 列表。
3399
+ # @type Rows: Array
3400
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3401
+ # @type RequestId: String
3402
+
3403
+ attr_accessor :TotalCount, :Rows, :RequestId
3404
+
3405
+ def initialize(totalcount=nil, rows=nil, requestid=nil)
3406
+ @TotalCount = totalcount
3407
+ @Rows = rows
3408
+ @RequestId = requestid
3409
+ end
3410
+
3411
+ def deserialize(params)
3412
+ @TotalCount = params['TotalCount']
3413
+ unless params['Rows'].nil?
3414
+ @Rows = []
3415
+ params['Rows'].each do |i|
3416
+ slowlogagg_tmp = SlowLogAgg.new
3417
+ slowlogagg_tmp.deserialize(i)
3418
+ @Rows << slowlogagg_tmp
3419
+ end
3420
+ end
3421
+ @RequestId = params['RequestId']
3422
+ end
3423
+ end
3424
+
3346
3425
  # DescribeRedisTopBigKeys请求参数结构体
3347
3426
  class DescribeRedisTopBigKeysRequest < TencentCloud::Common::AbstractModel
3348
3427
  # @param InstanceId: 实例ID。
@@ -3655,6 +3734,77 @@ module TencentCloud
3655
3734
  end
3656
3735
  end
3657
3736
 
3737
+ # DescribeSlowLogQueryTimeStats请求参数结构体
3738
+ class DescribeSlowLogQueryTimeStatsRequest < TencentCloud::Common::AbstractModel
3739
+ # @param InstanceId: 实例 ID 。
3740
+ # @type InstanceId: String
3741
+ # @param StartTime: 开始时间,如“2019-09-10 12:13:14”。
3742
+ # @type StartTime: String
3743
+ # @param EndTime: 截止时间,如“2019-09-11 10:13:14”,截止时间与开始时间的间隔小于7天。
3744
+ # @type EndTime: String
3745
+ # @param Product: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,"mongodb" - 云数据库 MongoDB,默认为"mysql"。
3746
+ # @type Product: String
3747
+ # @param InstanceProxyId: Proxy节点ID。
3748
+ # @type InstanceProxyId: String
3749
+ # @param InstanceNodeId: 实列节点ID。
3750
+ # @type InstanceNodeId: String
3751
+ # @param Type: 查询类型,目前支持值:mongod,mongos。
3752
+ # @type Type: String
3753
+
3754
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Product, :InstanceProxyId, :InstanceNodeId, :Type
3755
+
3756
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, product=nil, instanceproxyid=nil, instancenodeid=nil, type=nil)
3757
+ @InstanceId = instanceid
3758
+ @StartTime = starttime
3759
+ @EndTime = endtime
3760
+ @Product = product
3761
+ @InstanceProxyId = instanceproxyid
3762
+ @InstanceNodeId = instancenodeid
3763
+ @Type = type
3764
+ end
3765
+
3766
+ def deserialize(params)
3767
+ @InstanceId = params['InstanceId']
3768
+ @StartTime = params['StartTime']
3769
+ @EndTime = params['EndTime']
3770
+ @Product = params['Product']
3771
+ @InstanceProxyId = params['InstanceProxyId']
3772
+ @InstanceNodeId = params['InstanceNodeId']
3773
+ @Type = params['Type']
3774
+ end
3775
+ end
3776
+
3777
+ # DescribeSlowLogQueryTimeStats返回参数结构体
3778
+ class DescribeSlowLogQueryTimeStatsResponse < TencentCloud::Common::AbstractModel
3779
+ # @param TotalCount: 符合条件的记录总数。
3780
+ # @type TotalCount: Integer
3781
+ # @param Items: 慢日志 top sql 列表。
3782
+ # @type Items: Array
3783
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3784
+ # @type RequestId: String
3785
+
3786
+ attr_accessor :TotalCount, :Items, :RequestId
3787
+
3788
+ def initialize(totalcount=nil, items=nil, requestid=nil)
3789
+ @TotalCount = totalcount
3790
+ @Items = items
3791
+ @RequestId = requestid
3792
+ end
3793
+
3794
+ def deserialize(params)
3795
+ @TotalCount = params['TotalCount']
3796
+ unless params['Items'].nil?
3797
+ @Items = []
3798
+ params['Items'].each do |i|
3799
+ sqlcostdistribution_tmp = SqlCostDistribution.new
3800
+ sqlcostdistribution_tmp.deserialize(i)
3801
+ @Items << sqlcostdistribution_tmp
3802
+ end
3803
+ end
3804
+ @RequestId = params['RequestId']
3805
+ end
3806
+ end
3807
+
3658
3808
  # DescribeSlowLogTimeSeriesStats请求参数结构体
3659
3809
  class DescribeSlowLogTimeSeriesStatsRequest < TencentCloud::Common::AbstractModel
3660
3810
  # @param InstanceId: 实例 ID 。
@@ -3663,16 +3813,25 @@ module TencentCloud
3663
3813
  # @type StartTime: String
3664
3814
  # @param EndTime: 结束时间,如“2019-09-10 12:13:14”,结束时间与开始时间的间隔最大可为7天。
3665
3815
  # @type EndTime: String
3666
- # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
3816
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,"mongodb" - 云数据库 MongoDB,默认为"mysql"。
3667
3817
  # @type Product: String
3818
+ # @param InstanceProxyId: Proxy节点ID。
3819
+ # @type InstanceProxyId: String
3820
+ # @param InstanceNodeId: 实列节点ID。
3821
+ # @type InstanceNodeId: String
3822
+ # @param Type: 查询类型,目前支持值:mongod,mongos。
3823
+ # @type Type: String
3668
3824
 
3669
- attr_accessor :InstanceId, :StartTime, :EndTime, :Product
3825
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Product, :InstanceProxyId, :InstanceNodeId, :Type
3670
3826
 
3671
- def initialize(instanceid=nil, starttime=nil, endtime=nil, product=nil)
3827
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, product=nil, instanceproxyid=nil, instancenodeid=nil, type=nil)
3672
3828
  @InstanceId = instanceid
3673
3829
  @StartTime = starttime
3674
3830
  @EndTime = endtime
3675
3831
  @Product = product
3832
+ @InstanceProxyId = instanceproxyid
3833
+ @InstanceNodeId = instancenodeid
3834
+ @Type = type
3676
3835
  end
3677
3836
 
3678
3837
  def deserialize(params)
@@ -3680,6 +3839,9 @@ module TencentCloud
3680
3839
  @StartTime = params['StartTime']
3681
3840
  @EndTime = params['EndTime']
3682
3841
  @Product = params['Product']
3842
+ @InstanceProxyId = params['InstanceProxyId']
3843
+ @InstanceNodeId = params['InstanceNodeId']
3844
+ @Type = params['Type']
3683
3845
  end
3684
3846
  end
3685
3847
 
@@ -6377,6 +6539,50 @@ module TencentCloud
6377
6539
  end
6378
6540
  end
6379
6541
 
6542
+ # redis top慢日志聚合详情。
6543
+ class SlowLogAgg < TencentCloud::Common::AbstractModel
6544
+ # @param Cmd: 命令模版。
6545
+ # @type Cmd: String
6546
+ # @param Detail: 命令详情。
6547
+ # @type Detail: String
6548
+ # @param ExecTimes: 执行次数。
6549
+ # @type ExecTimes: Integer
6550
+ # @param QueryTime: 总耗时。
6551
+ # @type QueryTime: Float
6552
+ # @param QueryTimeAvg: 平均执行时间。
6553
+ # @type QueryTimeAvg: Float
6554
+ # @param QueryTimeMax: 最大执行时间。
6555
+ # @type QueryTimeMax: Float
6556
+ # @param QueryTimeMin: 最小执行时间。
6557
+ # @type QueryTimeMin: Float
6558
+ # @param QueryTimeRatio: 总耗时占比
6559
+ # @type QueryTimeRatio: Float
6560
+
6561
+ attr_accessor :Cmd, :Detail, :ExecTimes, :QueryTime, :QueryTimeAvg, :QueryTimeMax, :QueryTimeMin, :QueryTimeRatio
6562
+
6563
+ def initialize(cmd=nil, detail=nil, exectimes=nil, querytime=nil, querytimeavg=nil, querytimemax=nil, querytimemin=nil, querytimeratio=nil)
6564
+ @Cmd = cmd
6565
+ @Detail = detail
6566
+ @ExecTimes = exectimes
6567
+ @QueryTime = querytime
6568
+ @QueryTimeAvg = querytimeavg
6569
+ @QueryTimeMax = querytimemax
6570
+ @QueryTimeMin = querytimemin
6571
+ @QueryTimeRatio = querytimeratio
6572
+ end
6573
+
6574
+ def deserialize(params)
6575
+ @Cmd = params['Cmd']
6576
+ @Detail = params['Detail']
6577
+ @ExecTimes = params['ExecTimes']
6578
+ @QueryTime = params['QueryTime']
6579
+ @QueryTimeAvg = params['QueryTimeAvg']
6580
+ @QueryTimeMax = params['QueryTimeMax']
6581
+ @QueryTimeMin = params['QueryTimeMin']
6582
+ @QueryTimeRatio = params['QueryTimeRatio']
6583
+ end
6584
+ end
6585
+
6380
6586
  # 慢日志来源地址详情。
6381
6587
  class SlowLogHost < TencentCloud::Common::AbstractModel
6382
6588
  # @param UserHost: 来源地址。
@@ -6585,6 +6791,34 @@ module TencentCloud
6585
6791
  end
6586
6792
  end
6587
6793
 
6794
+ # 分段耗时 SQL 分布
6795
+ class SqlCostDistribution < TencentCloud::Common::AbstractModel
6796
+ # @param Count: sql条数。
6797
+ # @type Count: Integer
6798
+ # @param From: 分段耗时下边界,单位是秒。
6799
+ # @type From: Float
6800
+ # @param To: 分段耗时上边界,单位是秒。
6801
+ # @type To: Float
6802
+ # @param Ratio: 耗时占比。
6803
+ # @type Ratio: Float
6804
+
6805
+ attr_accessor :Count, :From, :To, :Ratio
6806
+
6807
+ def initialize(count=nil, from=nil, to=nil, ratio=nil)
6808
+ @Count = count
6809
+ @From = from
6810
+ @To = to
6811
+ @Ratio = ratio
6812
+ end
6813
+
6814
+ def deserialize(params)
6815
+ @Count = params['Count']
6816
+ @From = params['From']
6817
+ @To = params['To']
6818
+ @Ratio = params['Ratio']
6819
+ end
6820
+ end
6821
+
6588
6822
  # 会话统计的维度信息,可以多个维度
6589
6823
  class StatDimension < TencentCloud::Common::AbstractModel
6590
6824
  # @param Dimension: 维度名称,目前仅支持:SqlTag。
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.1031
4
+ version: 3.0.1033
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-04-01 00:00:00.000000000 Z
11
+ date: 2025-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common