tencentcloud-sdk-dcdb 1.0.257 → 1.0.261

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: b3205758fa965be2789c0656690cdcdc91aff471
4
- data.tar.gz: 6c15243435ade8d548367154428cfd71b15682e0
3
+ metadata.gz: c4b1a89855d3211d8162308d8aa88d9721e8721b
4
+ data.tar.gz: 3a29499097fba22b773e637c1f4c1bf0efd1501d
5
5
  SHA512:
6
- metadata.gz: 8402efed0c14dc99c5c2efa2af2abb4b4b138ec33a78e99a05e5db1826d3f9dd17c173907e5d83ebb563c1514f61bf0c6bf91304243eee92465b0e97b7b83caf
7
- data.tar.gz: 089847f312b0898e5dd1b4d6ffa3d7648f3bff046bd828ba61bbaac2ef7ec9ccb62f20b7209d081b8255104f7474b529a963e5d9096a1c37cb59e79e05b00b55
6
+ metadata.gz: a36ae3c5bc4775ef8884518d08f5e2b2e78e9629b29046ae69df037ef4977bfb17f082b84a5f3d4f5c935399686226ca34475f18405929bf55ff0f5736d1aba1
7
+ data.tar.gz: 6c4f83df8a6440969d2ac4cf69d9041c5cd5e98847dfaa7dcc794f5595efd4e74dc8b73f80b05c8247206c8f574277bb7d0e55cc173152d1640ae8f7fc8ea00e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.257
1
+ 1.0.261
@@ -367,6 +367,30 @@ module TencentCloud
367
367
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
368
368
  end
369
369
 
370
+ # 本接口(DescribeDBSlowLogs)用于查询慢查询日志列表。
371
+
372
+ # @param request: Request instance for DescribeDBSlowLogs.
373
+ # @type request: :class:`Tencentcloud::dcdb::V20180411::DescribeDBSlowLogsRequest`
374
+ # @rtype: :class:`Tencentcloud::dcdb::V20180411::DescribeDBSlowLogsResponse`
375
+ def DescribeDBSlowLogs(request)
376
+ body = send_request('DescribeDBSlowLogs', request.serialize)
377
+ response = JSON.parse(body)
378
+ if response['Response'].key?('Error') == false
379
+ model = DescribeDBSlowLogsResponse.new
380
+ model.deserialize(response['Response'])
381
+ model
382
+ else
383
+ code = response['Response']['Error']['Code']
384
+ message = response['Response']['Error']['Message']
385
+ reqid = response['Response']['RequestId']
386
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
387
+ end
388
+ rescue TencentCloud::Common::TencentCloudSDKException => e
389
+ raise e
390
+ rescue StandardError => e
391
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
392
+ end
393
+
370
394
  # 本接口(DescribeDBSyncMode)用于查询云数据库实例的同步模式。
371
395
 
372
396
  # @param request: Request instance for DescribeDBSyncMode.
@@ -1625,6 +1625,101 @@ module TencentCloud
1625
1625
  end
1626
1626
  end
1627
1627
 
1628
+ # DescribeDBSlowLogs请求参数结构体
1629
+ class DescribeDBSlowLogsRequest < TencentCloud::Common::AbstractModel
1630
+ # @param InstanceId: 实例 ID,形如:dcdbt-hw0qj6m1
1631
+ # @type InstanceId: String
1632
+ # @param Offset: 从结果的第几条数据开始返回
1633
+ # @type Offset: Integer
1634
+ # @param Limit: 返回的结果条数
1635
+ # @type Limit: Integer
1636
+ # @param StartTime: 查询的起始时间,形如2016-07-23 14:55:20
1637
+ # @type StartTime: String
1638
+ # @param ShardId: 实例的分片ID,形如shard-53ima8ln
1639
+ # @type ShardId: String
1640
+ # @param EndTime: 查询的结束时间,形如2016-08-22 14:55:20。如果不填,那么查询结束时间就是当前时间
1641
+ # @type EndTime: String
1642
+ # @param Db: 要查询的具体数据库名称
1643
+ # @type Db: String
1644
+ # @param OrderBy: 排序指标,取值为query_time_sum或者query_count。不填默认按照query_time_sum排序
1645
+ # @type OrderBy: String
1646
+ # @param OrderByType: 排序类型,desc(降序)或者asc(升序)。不填默认desc排序
1647
+ # @type OrderByType: String
1648
+ # @param Slave: 是否查询从机的慢查询,0-主机; 1-从机。不填默认查询主机慢查询
1649
+ # @type Slave: Integer
1650
+
1651
+ attr_accessor :InstanceId, :Offset, :Limit, :StartTime, :ShardId, :EndTime, :Db, :OrderBy, :OrderByType, :Slave
1652
+
1653
+ def initialize(instanceid=nil, offset=nil, limit=nil, starttime=nil, shardid=nil, endtime=nil, db=nil, orderby=nil, orderbytype=nil, slave=nil)
1654
+ @InstanceId = instanceid
1655
+ @Offset = offset
1656
+ @Limit = limit
1657
+ @StartTime = starttime
1658
+ @ShardId = shardid
1659
+ @EndTime = endtime
1660
+ @Db = db
1661
+ @OrderBy = orderby
1662
+ @OrderByType = orderbytype
1663
+ @Slave = slave
1664
+ end
1665
+
1666
+ def deserialize(params)
1667
+ @InstanceId = params['InstanceId']
1668
+ @Offset = params['Offset']
1669
+ @Limit = params['Limit']
1670
+ @StartTime = params['StartTime']
1671
+ @ShardId = params['ShardId']
1672
+ @EndTime = params['EndTime']
1673
+ @Db = params['Db']
1674
+ @OrderBy = params['OrderBy']
1675
+ @OrderByType = params['OrderByType']
1676
+ @Slave = params['Slave']
1677
+ end
1678
+ end
1679
+
1680
+ # DescribeDBSlowLogs返回参数结构体
1681
+ class DescribeDBSlowLogsResponse < TencentCloud::Common::AbstractModel
1682
+ # @param LockTimeSum: 所有语句锁时间总和
1683
+ # @type LockTimeSum: Float
1684
+ # @param QueryCount: 所有语句查询总次数
1685
+ # @type QueryCount: Integer
1686
+ # @param Total: 总记录数
1687
+ # @type Total: Integer
1688
+ # @param QueryTimeSum: 所有语句查询时间总和
1689
+ # @type QueryTimeSum: Float
1690
+ # @param Data: 慢查询日志数据
1691
+ # @type Data: Array
1692
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1693
+ # @type RequestId: String
1694
+
1695
+ attr_accessor :LockTimeSum, :QueryCount, :Total, :QueryTimeSum, :Data, :RequestId
1696
+
1697
+ def initialize(locktimesum=nil, querycount=nil, total=nil, querytimesum=nil, data=nil, requestid=nil)
1698
+ @LockTimeSum = locktimesum
1699
+ @QueryCount = querycount
1700
+ @Total = total
1701
+ @QueryTimeSum = querytimesum
1702
+ @Data = data
1703
+ @RequestId = requestid
1704
+ end
1705
+
1706
+ def deserialize(params)
1707
+ @LockTimeSum = params['LockTimeSum']
1708
+ @QueryCount = params['QueryCount']
1709
+ @Total = params['Total']
1710
+ @QueryTimeSum = params['QueryTimeSum']
1711
+ unless params['Data'].nil?
1712
+ @Data = []
1713
+ params['Data'].each do |i|
1714
+ slowlogdata_tmp = SlowLogData.new
1715
+ slowlogdata_tmp.deserialize(i)
1716
+ @Data << slowlogdata_tmp
1717
+ end
1718
+ end
1719
+ @RequestId = params['RequestId']
1720
+ end
1721
+ end
1722
+
1628
1723
  # DescribeDBSyncMode请求参数结构体
1629
1724
  class DescribeDBSyncModeRequest < TencentCloud::Common::AbstractModel
1630
1725
  # @param InstanceId: 待修改同步模式的实例ID。形如:dcdbt-ow728lmc。
@@ -3908,6 +4003,96 @@ module TencentCloud
3908
4003
  end
3909
4004
  end
3910
4005
 
4006
+ # 慢查询条目信息
4007
+ class SlowLogData < TencentCloud::Common::AbstractModel
4008
+ # @param CheckSum: 语句校验和,用于查询详情
4009
+ # @type CheckSum: String
4010
+ # @param Db: 数据库名称
4011
+ # @type Db: String
4012
+ # @param FingerPrint: 抽象的SQL语句
4013
+ # @type FingerPrint: String
4014
+ # @param LockTimeAvg: 平均的锁时间
4015
+ # @type LockTimeAvg: String
4016
+ # @param LockTimeMax: 最大锁时间
4017
+ # @type LockTimeMax: String
4018
+ # @param LockTimeMin: 最小锁时间
4019
+ # @type LockTimeMin: String
4020
+ # @param LockTimeSum: 锁时间总和
4021
+ # @type LockTimeSum: String
4022
+ # @param QueryCount: 查询次数
4023
+ # @type QueryCount: String
4024
+ # @param QueryTimeAvg: 平均查询时间
4025
+ # @type QueryTimeAvg: String
4026
+ # @param QueryTimeMax: 最大查询时间
4027
+ # @type QueryTimeMax: String
4028
+ # @param QueryTimeMin: 最小查询时间
4029
+ # @type QueryTimeMin: String
4030
+ # @param QueryTimeSum: 查询时间总和
4031
+ # @type QueryTimeSum: String
4032
+ # @param RowsExaminedSum: 扫描行数
4033
+ # @type RowsExaminedSum: String
4034
+ # @param RowsSentSum: 发送行数
4035
+ # @type RowsSentSum: String
4036
+ # @param TsMax: 最后执行时间
4037
+ # @type TsMax: String
4038
+ # @param TsMin: 首次执行时间
4039
+ # @type TsMin: String
4040
+ # @param User: 帐号
4041
+ # @type User: String
4042
+ # @param ExampleSql: 样例Sql
4043
+ # 注意:此字段可能返回 null,表示取不到有效值。
4044
+ # @type ExampleSql: String
4045
+ # @param Host: 账户的域名
4046
+ # 注意:此字段可能返回 null,表示取不到有效值。
4047
+ # @type Host: String
4048
+
4049
+ attr_accessor :CheckSum, :Db, :FingerPrint, :LockTimeAvg, :LockTimeMax, :LockTimeMin, :LockTimeSum, :QueryCount, :QueryTimeAvg, :QueryTimeMax, :QueryTimeMin, :QueryTimeSum, :RowsExaminedSum, :RowsSentSum, :TsMax, :TsMin, :User, :ExampleSql, :Host
4050
+
4051
+ def initialize(checksum=nil, db=nil, fingerprint=nil, locktimeavg=nil, locktimemax=nil, locktimemin=nil, locktimesum=nil, querycount=nil, querytimeavg=nil, querytimemax=nil, querytimemin=nil, querytimesum=nil, rowsexaminedsum=nil, rowssentsum=nil, tsmax=nil, tsmin=nil, user=nil, examplesql=nil, host=nil)
4052
+ @CheckSum = checksum
4053
+ @Db = db
4054
+ @FingerPrint = fingerprint
4055
+ @LockTimeAvg = locktimeavg
4056
+ @LockTimeMax = locktimemax
4057
+ @LockTimeMin = locktimemin
4058
+ @LockTimeSum = locktimesum
4059
+ @QueryCount = querycount
4060
+ @QueryTimeAvg = querytimeavg
4061
+ @QueryTimeMax = querytimemax
4062
+ @QueryTimeMin = querytimemin
4063
+ @QueryTimeSum = querytimesum
4064
+ @RowsExaminedSum = rowsexaminedsum
4065
+ @RowsSentSum = rowssentsum
4066
+ @TsMax = tsmax
4067
+ @TsMin = tsmin
4068
+ @User = user
4069
+ @ExampleSql = examplesql
4070
+ @Host = host
4071
+ end
4072
+
4073
+ def deserialize(params)
4074
+ @CheckSum = params['CheckSum']
4075
+ @Db = params['Db']
4076
+ @FingerPrint = params['FingerPrint']
4077
+ @LockTimeAvg = params['LockTimeAvg']
4078
+ @LockTimeMax = params['LockTimeMax']
4079
+ @LockTimeMin = params['LockTimeMin']
4080
+ @LockTimeSum = params['LockTimeSum']
4081
+ @QueryCount = params['QueryCount']
4082
+ @QueryTimeAvg = params['QueryTimeAvg']
4083
+ @QueryTimeMax = params['QueryTimeMax']
4084
+ @QueryTimeMin = params['QueryTimeMin']
4085
+ @QueryTimeSum = params['QueryTimeSum']
4086
+ @RowsExaminedSum = params['RowsExaminedSum']
4087
+ @RowsSentSum = params['RowsSentSum']
4088
+ @TsMax = params['TsMax']
4089
+ @TsMin = params['TsMin']
4090
+ @User = params['User']
4091
+ @ExampleSql = params['ExampleSql']
4092
+ @Host = params['Host']
4093
+ end
4094
+ end
4095
+
3911
4096
  # 按机型分类的规格配置
3912
4097
  class SpecConfig < TencentCloud::Common::AbstractModel
3913
4098
  # @param Machine: 规格机型
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-dcdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.257
4
+ version: 1.0.261
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-02-16 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common