tencentcloud-sdk-dbbrain 3.0.547 → 3.0.549

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: 52f14139eafc8b9c1f9c3beef2877eb3b7194cba
4
- data.tar.gz: 250c05dcd6786ece7a46547589afd52607a58217
3
+ metadata.gz: c2dc5ace905c70b26f0acc8952ce3d290487910c
4
+ data.tar.gz: 50c6edde31d214bca5d690874cc584ff2a1ce681
5
5
  SHA512:
6
- metadata.gz: 6598d2ba4b4c8b135d762a8517bc05c6984ce8bb7703f18fda1b5f46e3df727d605c4d904721d12cd8b932db09b7005283eb26670f6877317d37db8a3c035d4e
7
- data.tar.gz: 7b5d10a6a72505f0c34e5a7ee96ec9f9038d396f5d61ec7d5281bbf5f3373c6a5080de5e2bcc8e7f675d8bdd4d5601ae7987fea4155e4fa89f323deb36ccf013
6
+ metadata.gz: 3bc0494cd3e8042071dfb03b7f28b135418af0d248b8a2367efc68f5b5d83563cd44b1763890fbdabdab57dae40faad4b04574d13831b1f477ff857f73793b2d
7
+ data.tar.gz: 99a05ee052caf7a994a3555fbed9c98cd43b8f3a323ed30b396b3f19e6fb3b50ac9819112673abfb60e3400f959cea9c9470285367e6a2cb7e50823fe2cac0e6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.547
1
+ 3.0.549
@@ -845,6 +845,30 @@ module TencentCloud
845
845
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
846
846
  end
847
847
 
848
+ # 获取指定时间内某个sql模版的慢日志明细
849
+
850
+ # @param request: Request instance for DescribeSlowLogs.
851
+ # @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeSlowLogsRequest`
852
+ # @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeSlowLogsResponse`
853
+ def DescribeSlowLogs(request)
854
+ body = send_request('DescribeSlowLogs', request.serialize)
855
+ response = JSON.parse(body)
856
+ if response['Response'].key?('Error') == false
857
+ model = DescribeSlowLogsResponse.new
858
+ model.deserialize(response['Response'])
859
+ model
860
+ else
861
+ code = response['Response']['Error']['Code']
862
+ message = response['Response']['Error']['Message']
863
+ reqid = response['Response']['RequestId']
864
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
865
+ end
866
+ rescue TencentCloud::Common::TencentCloudSDKException => e
867
+ raise e
868
+ rescue StandardError => e
869
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
870
+ end
871
+
848
872
  # 查询实例SQL限流任务列表。
849
873
 
850
874
  # @param request: Request instance for DescribeSqlFilters.
@@ -2042,6 +2042,97 @@ module TencentCloud
2042
2042
  end
2043
2043
  end
2044
2044
 
2045
+ # DescribeSlowLogs请求参数结构体
2046
+ class DescribeSlowLogsRequest < TencentCloud::Common::AbstractModel
2047
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
2048
+ # @type Product: String
2049
+ # @param InstanceId: 实例id。
2050
+ # @type InstanceId: String
2051
+ # @param Md5: sql模版的md5值
2052
+ # @type Md5: String
2053
+ # @param StartTime: 开始时间,如“2019-09-10 12:13:14”。
2054
+ # @type StartTime: String
2055
+ # @param EndTime: 截止时间,如“2019-09-11 10:13:14”,截止时间与开始时间的间隔小于7天。
2056
+ # @type EndTime: String
2057
+ # @param Offset: 偏移量,默认为0。
2058
+ # @type Offset: Integer
2059
+ # @param Limit: 查询数目,默认为20,最大为100。
2060
+ # @type Limit: Integer
2061
+ # @param DB: 数据库列表
2062
+ # @type DB: Array
2063
+ # @param Key: 关键字
2064
+ # @type Key: Array
2065
+ # @param User: 用户
2066
+ # @type User: Array
2067
+ # @param Ip: ip
2068
+ # @type Ip: Array
2069
+ # @param Time: 耗时区间,耗时区间的左右边界分别对应数组的第0个元素和第一个元素
2070
+ # @type Time: Array
2071
+
2072
+ attr_accessor :Product, :InstanceId, :Md5, :StartTime, :EndTime, :Offset, :Limit, :DB, :Key, :User, :Ip, :Time
2073
+
2074
+ def initialize(product=nil, instanceid=nil, md5=nil, starttime=nil, endtime=nil, offset=nil, limit=nil, db=nil, key=nil, user=nil, ip=nil, time=nil)
2075
+ @Product = product
2076
+ @InstanceId = instanceid
2077
+ @Md5 = md5
2078
+ @StartTime = starttime
2079
+ @EndTime = endtime
2080
+ @Offset = offset
2081
+ @Limit = limit
2082
+ @DB = db
2083
+ @Key = key
2084
+ @User = user
2085
+ @Ip = ip
2086
+ @Time = time
2087
+ end
2088
+
2089
+ def deserialize(params)
2090
+ @Product = params['Product']
2091
+ @InstanceId = params['InstanceId']
2092
+ @Md5 = params['Md5']
2093
+ @StartTime = params['StartTime']
2094
+ @EndTime = params['EndTime']
2095
+ @Offset = params['Offset']
2096
+ @Limit = params['Limit']
2097
+ @DB = params['DB']
2098
+ @Key = params['Key']
2099
+ @User = params['User']
2100
+ @Ip = params['Ip']
2101
+ @Time = params['Time']
2102
+ end
2103
+ end
2104
+
2105
+ # DescribeSlowLogs返回参数结构体
2106
+ class DescribeSlowLogsResponse < TencentCloud::Common::AbstractModel
2107
+ # @param TotalCount: 符合条件的记录总数。
2108
+ # @type TotalCount: Integer
2109
+ # @param Rows: 慢日志明细
2110
+ # @type Rows: Array
2111
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2112
+ # @type RequestId: String
2113
+
2114
+ attr_accessor :TotalCount, :Rows, :RequestId
2115
+
2116
+ def initialize(totalcount=nil, rows=nil, requestid=nil)
2117
+ @TotalCount = totalcount
2118
+ @Rows = rows
2119
+ @RequestId = requestid
2120
+ end
2121
+
2122
+ def deserialize(params)
2123
+ @TotalCount = params['TotalCount']
2124
+ unless params['Rows'].nil?
2125
+ @Rows = []
2126
+ params['Rows'].each do |i|
2127
+ slowloginfoitem_tmp = SlowLogInfoItem.new
2128
+ slowloginfoitem_tmp.deserialize(i)
2129
+ @Rows << slowloginfoitem_tmp
2130
+ end
2131
+ end
2132
+ @RequestId = params['RequestId']
2133
+ end
2134
+ end
2135
+
2045
2136
  # DescribeSqlFilters请求参数结构体
2046
2137
  class DescribeSqlFiltersRequest < TencentCloud::Common::AbstractModel
2047
2138
  # @param InstanceId: 实例ID。
@@ -3740,6 +3831,59 @@ module TencentCloud
3740
3831
  end
3741
3832
  end
3742
3833
 
3834
+ # 慢日志详细信息
3835
+ class SlowLogInfoItem < TencentCloud::Common::AbstractModel
3836
+ # @param Timestamp: 慢日志开始时间
3837
+ # @type Timestamp: String
3838
+ # @param SqlText: sql语句
3839
+ # @type SqlText: String
3840
+ # @param Database: 数据库
3841
+ # @type Database: String
3842
+ # @param UserName: User来源
3843
+ # 注意:此字段可能返回 null,表示取不到有效值。
3844
+ # @type UserName: String
3845
+ # @param UserHost: IP来源
3846
+ # 注意:此字段可能返回 null,表示取不到有效值。
3847
+ # @type UserHost: String
3848
+ # @param QueryTime: 执行时间,单位秒
3849
+ # @type QueryTime: Integer
3850
+ # @param LockTime: 锁时间,单位秒
3851
+ # 注意:此字段可能返回 null,表示取不到有效值。
3852
+ # @type LockTime: Integer
3853
+ # @param RowsExamined: 扫描行数
3854
+ # 注意:此字段可能返回 null,表示取不到有效值。
3855
+ # @type RowsExamined: Integer
3856
+ # @param RowsSent: 返回行数
3857
+ # 注意:此字段可能返回 null,表示取不到有效值。
3858
+ # @type RowsSent: Integer
3859
+
3860
+ attr_accessor :Timestamp, :SqlText, :Database, :UserName, :UserHost, :QueryTime, :LockTime, :RowsExamined, :RowsSent
3861
+
3862
+ def initialize(timestamp=nil, sqltext=nil, database=nil, username=nil, userhost=nil, querytime=nil, locktime=nil, rowsexamined=nil, rowssent=nil)
3863
+ @Timestamp = timestamp
3864
+ @SqlText = sqltext
3865
+ @Database = database
3866
+ @UserName = username
3867
+ @UserHost = userhost
3868
+ @QueryTime = querytime
3869
+ @LockTime = locktime
3870
+ @RowsExamined = rowsexamined
3871
+ @RowsSent = rowssent
3872
+ end
3873
+
3874
+ def deserialize(params)
3875
+ @Timestamp = params['Timestamp']
3876
+ @SqlText = params['SqlText']
3877
+ @Database = params['Database']
3878
+ @UserName = params['UserName']
3879
+ @UserHost = params['UserHost']
3880
+ @QueryTime = params['QueryTime']
3881
+ @LockTime = params['LockTime']
3882
+ @RowsExamined = params['RowsExamined']
3883
+ @RowsSent = params['RowsSent']
3884
+ end
3885
+ end
3886
+
3743
3887
  # 慢日志TopSql
3744
3888
  class SlowLogTopSqlItem < TencentCloud::Common::AbstractModel
3745
3889
  # @param LockTime: sql总锁等待时间,单位秒
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.547
4
+ version: 3.0.549
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-10 00:00:00.000000000 Z
11
+ date: 2023-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common