tencentcloud-sdk-cdb 3.0.612 → 3.0.613

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: 69ebf24906846bf0708357d134ac9605986038dc
4
- data.tar.gz: 38ab0cf3fc3aec1aa51796661fccf46fe03b778b
3
+ metadata.gz: 8ec022138ad0411c337df9b79d21129d53999aeb
4
+ data.tar.gz: c8ef71f85fbb614ecd421ae6c31136724c041ec9
5
5
  SHA512:
6
- metadata.gz: fe0eca487287f65863fb4c2036bd58e68397363aec541b1110428828782c5332aaf9de8a4b5da9d1daa29f43ac47e40425bfd8757e4b732c175617277bccd2e1
7
- data.tar.gz: 31c8612d878cb175ef47c6ede7e93316d5ec567b43026c9bf24d7968f2e5bd0077563f7b03970bf3bb1ce6347ac553c0cd2cfb581926004aaa44610723ee6ebb
6
+ metadata.gz: cc7b2d36c4461a6dfd6fd572f9a44ff9ac87851d117e29f6efc02a7132ed3d80248a2bbbbda5c86455d0fca51dbc173d94ebc688aa89c08b428af3efacd76557
7
+ data.tar.gz: 523e5b9a06593fd91ead1f598ba997166692d1b91eaa079c6e664457cdad439aab4d4e1556400574536cedb0a11ad4b069089df2be644012a8385caf1ca209d5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.612
1
+ 3.0.613
@@ -936,6 +936,30 @@ module TencentCloud
936
936
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
937
937
  end
938
938
 
939
+ # 本接口(DescribeAuditLogs)用于查询数据库审计日志。
940
+
941
+ # @param request: Request instance for DescribeAuditLogs.
942
+ # @type request: :class:`Tencentcloud::cdb::V20170320::DescribeAuditLogsRequest`
943
+ # @rtype: :class:`Tencentcloud::cdb::V20170320::DescribeAuditLogsResponse`
944
+ def DescribeAuditLogs(request)
945
+ body = send_request('DescribeAuditLogs', request.serialize)
946
+ response = JSON.parse(body)
947
+ if response['Response'].key?('Error') == false
948
+ model = DescribeAuditLogsResponse.new
949
+ model.deserialize(response['Response'])
950
+ model
951
+ else
952
+ code = response['Response']['Error']['Code']
953
+ message = response['Response']['Error']['Message']
954
+ reqid = response['Response']['RequestId']
955
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
956
+ end
957
+ rescue TencentCloud::Common::TencentCloudSDKException => e
958
+ raise e
959
+ rescue StandardError => e
960
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
961
+ end
962
+
939
963
  # 本接口(DescribeAuditPolicies)用于查询云数据库实例的审计策略。
940
964
 
941
965
  # @param request: Request instance for DescribeAuditPolicies.
@@ -508,6 +508,96 @@ module TencentCloud
508
508
  end
509
509
  end
510
510
 
511
+ # 审计日志详细信息
512
+ class AuditLog < TencentCloud::Common::AbstractModel
513
+ # @param AffectRows: 影响行数。
514
+ # @type AffectRows: Integer
515
+ # @param ErrCode: 错误码。
516
+ # @type ErrCode: Integer
517
+ # @param SqlType: SQL 类型。
518
+ # @type SqlType: String
519
+ # @param PolicyName: 审计策略名称,逐步下线。
520
+ # @type PolicyName: String
521
+ # @param DBName: 数据库名称。
522
+ # @type DBName: String
523
+ # @param Sql: SQL 语句。
524
+ # @type Sql: String
525
+ # @param Host: 客户端地址。
526
+ # @type Host: String
527
+ # @param User: 用户名。
528
+ # @type User: String
529
+ # @param ExecTime: 执行时间,微秒。
530
+ # @type ExecTime: Integer
531
+ # @param Timestamp: 时间。
532
+ # @type Timestamp: String
533
+ # @param SentRows: 返回行数。
534
+ # @type SentRows: Integer
535
+ # @param ThreadId: 线程ID。
536
+ # @type ThreadId: Integer
537
+ # @param CheckRows: 扫描行数。
538
+ # 注意:此字段可能返回 null,表示取不到有效值。
539
+ # @type CheckRows: Integer
540
+ # @param CpuTime: cpu执行时间,微秒。
541
+ # 注意:此字段可能返回 null,表示取不到有效值。
542
+ # @type CpuTime: Float
543
+ # @param IoWaitTime: IO等待时间,微秒。
544
+ # 注意:此字段可能返回 null,表示取不到有效值。
545
+ # @type IoWaitTime: Integer
546
+ # @param LockWaitTime: 锁等待时间,微秒。
547
+ # 注意:此字段可能返回 null,表示取不到有效值。
548
+ # @type LockWaitTime: Integer
549
+ # @param NsTime: 开始时间,与timestamp构成一个精确到纳秒的时间。
550
+ # 注意:此字段可能返回 null,表示取不到有效值。
551
+ # @type NsTime: Integer
552
+ # @param TrxLivingTime: 事物持续时间,微秒。
553
+ # 注意:此字段可能返回 null,表示取不到有效值。
554
+ # @type TrxLivingTime: Integer
555
+
556
+ attr_accessor :AffectRows, :ErrCode, :SqlType, :PolicyName, :DBName, :Sql, :Host, :User, :ExecTime, :Timestamp, :SentRows, :ThreadId, :CheckRows, :CpuTime, :IoWaitTime, :LockWaitTime, :NsTime, :TrxLivingTime
557
+
558
+ def initialize(affectrows=nil, errcode=nil, sqltype=nil, policyname=nil, dbname=nil, sql=nil, host=nil, user=nil, exectime=nil, timestamp=nil, sentrows=nil, threadid=nil, checkrows=nil, cputime=nil, iowaittime=nil, lockwaittime=nil, nstime=nil, trxlivingtime=nil)
559
+ @AffectRows = affectrows
560
+ @ErrCode = errcode
561
+ @SqlType = sqltype
562
+ @PolicyName = policyname
563
+ @DBName = dbname
564
+ @Sql = sql
565
+ @Host = host
566
+ @User = user
567
+ @ExecTime = exectime
568
+ @Timestamp = timestamp
569
+ @SentRows = sentrows
570
+ @ThreadId = threadid
571
+ @CheckRows = checkrows
572
+ @CpuTime = cputime
573
+ @IoWaitTime = iowaittime
574
+ @LockWaitTime = lockwaittime
575
+ @NsTime = nstime
576
+ @TrxLivingTime = trxlivingtime
577
+ end
578
+
579
+ def deserialize(params)
580
+ @AffectRows = params['AffectRows']
581
+ @ErrCode = params['ErrCode']
582
+ @SqlType = params['SqlType']
583
+ @PolicyName = params['PolicyName']
584
+ @DBName = params['DBName']
585
+ @Sql = params['Sql']
586
+ @Host = params['Host']
587
+ @User = params['User']
588
+ @ExecTime = params['ExecTime']
589
+ @Timestamp = params['Timestamp']
590
+ @SentRows = params['SentRows']
591
+ @ThreadId = params['ThreadId']
592
+ @CheckRows = params['CheckRows']
593
+ @CpuTime = params['CpuTime']
594
+ @IoWaitTime = params['IoWaitTime']
595
+ @LockWaitTime = params['LockWaitTime']
596
+ @NsTime = params['NsTime']
597
+ @TrxLivingTime = params['TrxLivingTime']
598
+ end
599
+ end
600
+
511
601
  # 审计日志分析结果
512
602
  class AuditLogAggregationResult < TencentCloud::Common::AbstractModel
513
603
  # @param AggregationField: 聚合维度
@@ -3746,6 +3836,92 @@ module TencentCloud
3746
3836
  end
3747
3837
  end
3748
3838
 
3839
+ # DescribeAuditLogs请求参数结构体
3840
+ class DescribeAuditLogsRequest < TencentCloud::Common::AbstractModel
3841
+ # @param InstanceId: 实例 ID。
3842
+ # @type InstanceId: String
3843
+ # @param StartTime: 开始时间。
3844
+ # @type StartTime: String
3845
+ # @param EndTime: 结束时间。
3846
+ # @type EndTime: String
3847
+ # @param Limit: 分页参数,单次返回的数据条数。默认值为100,最大值为100。
3848
+ # @type Limit: Integer
3849
+ # @param Offset: 分页偏移量。
3850
+ # @type Offset: Integer
3851
+ # @param Order: 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。
3852
+ # @type Order: String
3853
+ # @param OrderBy: 排序字段。支持值包括:
3854
+ # "timestamp" - 时间戳;
3855
+ # "affectRows" - 影响行数;
3856
+ # "execTime" - 执行时间。
3857
+ # @type OrderBy: String
3858
+ # @param LogFilter: 过滤条件。可按设置的过滤条件过滤日志。
3859
+ # @type LogFilter: Array
3860
+
3861
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Limit, :Offset, :Order, :OrderBy, :LogFilter
3862
+
3863
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, limit=nil, offset=nil, order=nil, orderby=nil, logfilter=nil)
3864
+ @InstanceId = instanceid
3865
+ @StartTime = starttime
3866
+ @EndTime = endtime
3867
+ @Limit = limit
3868
+ @Offset = offset
3869
+ @Order = order
3870
+ @OrderBy = orderby
3871
+ @LogFilter = logfilter
3872
+ end
3873
+
3874
+ def deserialize(params)
3875
+ @InstanceId = params['InstanceId']
3876
+ @StartTime = params['StartTime']
3877
+ @EndTime = params['EndTime']
3878
+ @Limit = params['Limit']
3879
+ @Offset = params['Offset']
3880
+ @Order = params['Order']
3881
+ @OrderBy = params['OrderBy']
3882
+ unless params['LogFilter'].nil?
3883
+ @LogFilter = []
3884
+ params['LogFilter'].each do |i|
3885
+ instanceauditlogfilters_tmp = InstanceAuditLogFilters.new
3886
+ instanceauditlogfilters_tmp.deserialize(i)
3887
+ @LogFilter << instanceauditlogfilters_tmp
3888
+ end
3889
+ end
3890
+ end
3891
+ end
3892
+
3893
+ # DescribeAuditLogs返回参数结构体
3894
+ class DescribeAuditLogsResponse < TencentCloud::Common::AbstractModel
3895
+ # @param TotalCount: 符合条件的审计日志条数。
3896
+ # @type TotalCount: Integer
3897
+ # @param Items: 审计日志详情。
3898
+ # 注意:此字段可能返回 null,表示取不到有效值。
3899
+ # @type Items: Array
3900
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3901
+ # @type RequestId: String
3902
+
3903
+ attr_accessor :TotalCount, :Items, :RequestId
3904
+
3905
+ def initialize(totalcount=nil, items=nil, requestid=nil)
3906
+ @TotalCount = totalcount
3907
+ @Items = items
3908
+ @RequestId = requestid
3909
+ end
3910
+
3911
+ def deserialize(params)
3912
+ @TotalCount = params['TotalCount']
3913
+ unless params['Items'].nil?
3914
+ @Items = []
3915
+ params['Items'].each do |i|
3916
+ auditlog_tmp = AuditLog.new
3917
+ auditlog_tmp.deserialize(i)
3918
+ @Items << auditlog_tmp
3919
+ end
3920
+ end
3921
+ @RequestId = params['RequestId']
3922
+ end
3923
+ end
3924
+
3749
3925
  # DescribeAuditPolicies请求参数结构体
3750
3926
  class DescribeAuditPoliciesRequest < TencentCloud::Common::AbstractModel
3751
3927
  # @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.612
4
+ version: 3.0.613
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-07-13 00:00:00.000000000 Z
11
+ date: 2023-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common