tencentcloud-sdk-dbbrain 3.0.546 → 3.0.548

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: 7726a287fa78dcf81f1023f08a42e2c442590f6d
4
- data.tar.gz: 2e360aeea035fae1093dca0414f5631e4ce457cf
3
+ metadata.gz: b8d8be6cd345416a911e29bcf438d86d45b4b3cd
4
+ data.tar.gz: f94b32d2d7b553c4c57942a0cd11b90422cb07fd
5
5
  SHA512:
6
- metadata.gz: b1abe1737f0bc5455ec3649e6111a3bdb401d143bf99c51ce95610cc6b4b19a61d1f21791359a9f7c76547f7b15b4fb4395f4537873667049bbf589c6145f979
7
- data.tar.gz: 6110448e750fea5bd01d3eb9da0645c3a7a216ae577590a0c1ce76c037e7b47faea9b980425d3523e91c734e09b4f5e4a8a1bfdee54d1b0f1e05f583380e0e92
6
+ metadata.gz: 3613b8f15130534327619ee0346538ee77dc8c78fec6bc8d3cf011170cb36d72a45e10d85fd9e8dace9b01119a0a26301a48b42ec63163dc014994709a14fe8a
7
+ data.tar.gz: 83d544cfd92cb4760f85fa3fb8e2ce067e4a02a8ab526a1678e521406dbb8848ca83dbd2fef4f15b122461289731f97d0171f388c22ab4869b62a68a6bf6c7df
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.546
1
+ 3.0.548
@@ -269,6 +269,30 @@ module TencentCloud
269
269
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
270
  end
271
271
 
272
+ # 根据任务id删除健康报告生成任务
273
+
274
+ # @param request: Request instance for DeleteDBDiagReportTasks.
275
+ # @type request: :class:`Tencentcloud::dbbrain::V20210527::DeleteDBDiagReportTasksRequest`
276
+ # @rtype: :class:`Tencentcloud::dbbrain::V20210527::DeleteDBDiagReportTasksResponse`
277
+ def DeleteDBDiagReportTasks(request)
278
+ body = send_request('DeleteDBDiagReportTasks', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = DeleteDBDiagReportTasksResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
272
296
  # 删除安全审计日志导出任务。
273
297
 
274
298
  # @param request: Request instance for DeleteSecurityAuditLogExportTasks.
@@ -821,6 +845,30 @@ module TencentCloud
821
845
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
822
846
  end
823
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
+
824
872
  # 查询实例SQL限流任务列表。
825
873
 
826
874
  # @param request: Request instance for DescribeSqlFilters.
@@ -560,6 +560,51 @@ module TencentCloud
560
560
  end
561
561
  end
562
562
 
563
+ # DeleteDBDiagReportTasks请求参数结构体
564
+ class DeleteDBDiagReportTasksRequest < TencentCloud::Common::AbstractModel
565
+ # @param AsyncRequestIds: 需要删除的任务id列表
566
+ # @type AsyncRequestIds: Array
567
+ # @param InstanceId: 实例ID
568
+ # @type InstanceId: String
569
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL, "mongodb" - 云数据库 CynosDB for MySQL,
570
+ # 默认值为"mysql"。
571
+ # @type Product: String
572
+
573
+ attr_accessor :AsyncRequestIds, :InstanceId, :Product
574
+
575
+ def initialize(asyncrequestids=nil, instanceid=nil, product=nil)
576
+ @AsyncRequestIds = asyncrequestids
577
+ @InstanceId = instanceid
578
+ @Product = product
579
+ end
580
+
581
+ def deserialize(params)
582
+ @AsyncRequestIds = params['AsyncRequestIds']
583
+ @InstanceId = params['InstanceId']
584
+ @Product = params['Product']
585
+ end
586
+ end
587
+
588
+ # DeleteDBDiagReportTasks返回参数结构体
589
+ class DeleteDBDiagReportTasksResponse < TencentCloud::Common::AbstractModel
590
+ # @param Status: 任务删除状态, 0-删除成功
591
+ # @type Status: Integer
592
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
593
+ # @type RequestId: String
594
+
595
+ attr_accessor :Status, :RequestId
596
+
597
+ def initialize(status=nil, requestid=nil)
598
+ @Status = status
599
+ @RequestId = requestid
600
+ end
601
+
602
+ def deserialize(params)
603
+ @Status = params['Status']
604
+ @RequestId = params['RequestId']
605
+ end
606
+ end
607
+
563
608
  # DeleteSecurityAuditLogExportTasks请求参数结构体
564
609
  class DeleteSecurityAuditLogExportTasksRequest < TencentCloud::Common::AbstractModel
565
610
  # @param SecAuditGroupId: 安全审计组Id。
@@ -1997,6 +2042,97 @@ module TencentCloud
1997
2042
  end
1998
2043
  end
1999
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: 分页参数
2058
+ # @type Offset: Integer
2059
+ # @param Limit: 分页参数
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
+
2000
2136
  # DescribeSqlFilters请求参数结构体
2001
2137
  class DescribeSqlFiltersRequest < TencentCloud::Common::AbstractModel
2002
2138
  # @param InstanceId: 实例ID。
@@ -3695,6 +3831,59 @@ module TencentCloud
3695
3831
  end
3696
3832
  end
3697
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
+
3698
3887
  # 慢日志TopSql
3699
3888
  class SlowLogTopSqlItem < TencentCloud::Common::AbstractModel
3700
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.546
4
+ version: 3.0.548
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-07 00:00:00.000000000 Z
11
+ date: 2023-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common