tencentcloud-sdk-cynosdb 3.0.611 → 3.0.612

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190107/models.rb +115 -11
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b7fd6066240f9a85ca58d17b3296b066bd3d09d
4
- data.tar.gz: 98e9e02df3ed23cce508c04da9daf49fa9524606
3
+ metadata.gz: 1308ccab6420632b1a4b1f56448ae475a389e841
4
+ data.tar.gz: 8d3870bcd0b15c4c8ce9ab12cd47f7e8166741f6
5
5
  SHA512:
6
- metadata.gz: 5911c91c2410535cdcdcc395103d25fd7268f47d367c43cf3e0f0b9c9ec3ad8237d350622e797f17aff19fbb02ff819a4a44e4743185307ec6fbfb0ce84ec59f
7
- data.tar.gz: cbbc16d1ffaae0f836caa9e8f67274c3e65585ca910d25c75d0b34f49c43e1d5e62bde0507711d2d74d6a69650d71184cfddbe225f2224c05f6b042d0e0a2cfa
6
+ metadata.gz: fc75f6b27bb292ec44214e0038ad6d2a4a0631140f73da0b735367b958f58f619f8cd4939b06f35a19e59c143bc5154ed417ea4967b1efe5ce157b0e2dcc8dac
7
+ data.tar.gz: d6ea2134cc162b05ba22b03d3829f8c397944a57d4d2d060b485ef773e70da9693a03cbab5714e0811483eb8b3af13ec583b581ee647eb497779b9dbaea72d83
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.611
1
+ 3.0.612
@@ -385,18 +385,36 @@ module TencentCloud
385
385
  # @type Host: String
386
386
  # @param User: 用户名。
387
387
  # @type User: String
388
- # @param ExecTime: 执行时间。
388
+ # @param ExecTime: 执行时间,微秒。
389
389
  # @type ExecTime: Integer
390
- # @param Timestamp: 时间戳。
390
+ # @param Timestamp: 时间。
391
391
  # @type Timestamp: String
392
- # @param SentRows: 发送行数。
392
+ # @param SentRows: 返回行数。
393
393
  # @type SentRows: Integer
394
394
  # @param ThreadId: 执行线程ID。
395
395
  # @type ThreadId: Integer
396
+ # @param CheckRows: 扫描行数。
397
+ # 注意:此字段可能返回 null,表示取不到有效值。
398
+ # @type CheckRows: Integer
399
+ # @param CpuTime: cpu执行时间,微秒。
400
+ # 注意:此字段可能返回 null,表示取不到有效值。
401
+ # @type CpuTime: Float
402
+ # @param IoWaitTime: IO等待时间,微秒。
403
+ # 注意:此字段可能返回 null,表示取不到有效值。
404
+ # @type IoWaitTime: Integer
405
+ # @param LockWaitTime: 锁等待时间,微秒。
406
+ # 注意:此字段可能返回 null,表示取不到有效值。
407
+ # @type LockWaitTime: Integer
408
+ # @param TrxLivingTime: 事物持续等待时间,微秒。
409
+ # 注意:此字段可能返回 null,表示取不到有效值。
410
+ # @type TrxLivingTime: Integer
411
+ # @param NsTime: 开始时间,与timestamp构成一个精确到纳秒的时间。
412
+ # 注意:此字段可能返回 null,表示取不到有效值。
413
+ # @type NsTime: Integer
396
414
 
397
- attr_accessor :AffectRows, :ErrCode, :SqlType, :TableName, :InstanceName, :PolicyName, :DBName, :Sql, :Host, :User, :ExecTime, :Timestamp, :SentRows, :ThreadId
415
+ attr_accessor :AffectRows, :ErrCode, :SqlType, :TableName, :InstanceName, :PolicyName, :DBName, :Sql, :Host, :User, :ExecTime, :Timestamp, :SentRows, :ThreadId, :CheckRows, :CpuTime, :IoWaitTime, :LockWaitTime, :TrxLivingTime, :NsTime
398
416
 
399
- def initialize(affectrows=nil, errcode=nil, sqltype=nil, tablename=nil, instancename=nil, policyname=nil, dbname=nil, sql=nil, host=nil, user=nil, exectime=nil, timestamp=nil, sentrows=nil, threadid=nil)
417
+ def initialize(affectrows=nil, errcode=nil, sqltype=nil, tablename=nil, instancename=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, trxlivingtime=nil, nstime=nil)
400
418
  @AffectRows = affectrows
401
419
  @ErrCode = errcode
402
420
  @SqlType = sqltype
@@ -411,6 +429,12 @@ module TencentCloud
411
429
  @Timestamp = timestamp
412
430
  @SentRows = sentrows
413
431
  @ThreadId = threadid
432
+ @CheckRows = checkrows
433
+ @CpuTime = cputime
434
+ @IoWaitTime = iowaittime
435
+ @LockWaitTime = lockwaittime
436
+ @TrxLivingTime = trxlivingtime
437
+ @NsTime = nstime
414
438
  end
415
439
 
416
440
  def deserialize(params)
@@ -428,6 +452,12 @@ module TencentCloud
428
452
  @Timestamp = params['Timestamp']
429
453
  @SentRows = params['SentRows']
430
454
  @ThreadId = params['ThreadId']
455
+ @CheckRows = params['CheckRows']
456
+ @CpuTime = params['CpuTime']
457
+ @IoWaitTime = params['IoWaitTime']
458
+ @LockWaitTime = params['LockWaitTime']
459
+ @TrxLivingTime = params['TrxLivingTime']
460
+ @NsTime = params['NsTime']
431
461
  end
432
462
  end
433
463
 
@@ -1124,18 +1154,21 @@ module TencentCloud
1124
1154
  # "affectRows" - 影响行数;
1125
1155
  # "execTime" - 执行时间。
1126
1156
  # @type OrderBy: String
1127
- # @param Filter: 过滤条件。可按设置的过滤条件过滤日志。
1157
+ # @param Filter: 已废弃。
1128
1158
  # @type Filter: :class:`Tencentcloud::Cynosdb.v20190107.models.AuditLogFilter`
1159
+ # @param LogFilter: 审计日志过滤条件
1160
+ # @type LogFilter: Array
1129
1161
 
1130
- attr_accessor :InstanceId, :StartTime, :EndTime, :Order, :OrderBy, :Filter
1162
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Order, :OrderBy, :Filter, :LogFilter
1131
1163
 
1132
- def initialize(instanceid=nil, starttime=nil, endtime=nil, order=nil, orderby=nil, filter=nil)
1164
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, order=nil, orderby=nil, filter=nil, logfilter=nil)
1133
1165
  @InstanceId = instanceid
1134
1166
  @StartTime = starttime
1135
1167
  @EndTime = endtime
1136
1168
  @Order = order
1137
1169
  @OrderBy = orderby
1138
1170
  @Filter = filter
1171
+ @LogFilter = logfilter
1139
1172
  end
1140
1173
 
1141
1174
  def deserialize(params)
@@ -1148,6 +1181,14 @@ module TencentCloud
1148
1181
  @Filter = AuditLogFilter.new
1149
1182
  @Filter.deserialize(params['Filter'])
1150
1183
  end
1184
+ unless params['LogFilter'].nil?
1185
+ @LogFilter = []
1186
+ params['LogFilter'].each do |i|
1187
+ instanceauditlogfilter_tmp = InstanceAuditLogFilter.new
1188
+ instanceauditlogfilter_tmp.deserialize(i)
1189
+ @LogFilter << instanceauditlogfilter_tmp
1190
+ end
1191
+ end
1151
1192
  end
1152
1193
  end
1153
1194
 
@@ -3663,16 +3704,18 @@ module TencentCloud
3663
3704
  # "affectRows" - 影响行数;
3664
3705
  # "execTime" - 执行时间。
3665
3706
  # @type OrderBy: String
3666
- # @param Filter: 过滤条件。可按设置的过滤条件过滤日志。
3707
+ # @param Filter: 已废弃。
3667
3708
  # @type Filter: :class:`Tencentcloud::Cynosdb.v20190107.models.AuditLogFilter`
3668
3709
  # @param Limit: 分页参数,单次返回的数据条数。默认值为100,最大值为100。
3669
3710
  # @type Limit: Integer
3670
3711
  # @param Offset: 分页偏移量。
3671
3712
  # @type Offset: Integer
3713
+ # @param LogFilter: 审计日志过滤条件。
3714
+ # @type LogFilter: Array
3672
3715
 
3673
- attr_accessor :InstanceId, :StartTime, :EndTime, :Order, :OrderBy, :Filter, :Limit, :Offset
3716
+ attr_accessor :InstanceId, :StartTime, :EndTime, :Order, :OrderBy, :Filter, :Limit, :Offset, :LogFilter
3674
3717
 
3675
- def initialize(instanceid=nil, starttime=nil, endtime=nil, order=nil, orderby=nil, filter=nil, limit=nil, offset=nil)
3718
+ def initialize(instanceid=nil, starttime=nil, endtime=nil, order=nil, orderby=nil, filter=nil, limit=nil, offset=nil, logfilter=nil)
3676
3719
  @InstanceId = instanceid
3677
3720
  @StartTime = starttime
3678
3721
  @EndTime = endtime
@@ -3681,6 +3724,7 @@ module TencentCloud
3681
3724
  @Filter = filter
3682
3725
  @Limit = limit
3683
3726
  @Offset = offset
3727
+ @LogFilter = logfilter
3684
3728
  end
3685
3729
 
3686
3730
  def deserialize(params)
@@ -3695,6 +3739,14 @@ module TencentCloud
3695
3739
  end
3696
3740
  @Limit = params['Limit']
3697
3741
  @Offset = params['Offset']
3742
+ unless params['LogFilter'].nil?
3743
+ @LogFilter = []
3744
+ params['LogFilter'].each do |i|
3745
+ instanceauditlogfilter_tmp = InstanceAuditLogFilter.new
3746
+ instanceauditlogfilter_tmp.deserialize(i)
3747
+ @LogFilter << instanceauditlogfilter_tmp
3748
+ end
3749
+ end
3698
3750
  end
3699
3751
  end
3700
3752
 
@@ -6437,6 +6489,58 @@ module TencentCloud
6437
6489
  end
6438
6490
  end
6439
6491
 
6492
+ # 审计日志搜索条件
6493
+ class InstanceAuditLogFilter < TencentCloud::Common::AbstractModel
6494
+ # @param Type: 过滤项。支持以下搜索条件:
6495
+
6496
+ # 分词搜索:
6497
+ # sql - SQL语句;
6498
+
6499
+ # 等于、不等于、包含、不包含:
6500
+ # host - 客户端地址;
6501
+ # user - 用户名;
6502
+ # dbName - 数据库名称;
6503
+
6504
+ # 等于、不等于:
6505
+ # sqlType - SQL类型;
6506
+ # errCode - 错误码;
6507
+ # threadId - 线程ID;
6508
+
6509
+ # 范围搜索(时间类型统一为微妙):
6510
+ # execTime - 执行时间;
6511
+ # lockWaitTime - 执行时间;
6512
+ # ioWaitTime - IO等待时间;
6513
+ # trxLivingTime - 事物持续时间;
6514
+ # cpuTime - cpu时间;
6515
+ # checkRows - 扫描行数;
6516
+ # affectRows - 影响行数;
6517
+ # sentRows - 返回行数。
6518
+ # @type Type: String
6519
+ # @param Compare: 过滤条件。支持以下选项:
6520
+ # INC - 包含,
6521
+ # EXC - 不包含,
6522
+ # EQS - 等于,
6523
+ # NEQ - 不等于,
6524
+ # RA - 范围.
6525
+ # @type Compare: String
6526
+ # @param Value: 过滤的值。
6527
+ # @type Value: Array
6528
+
6529
+ attr_accessor :Type, :Compare, :Value
6530
+
6531
+ def initialize(type=nil, compare=nil, value=nil)
6532
+ @Type = type
6533
+ @Compare = compare
6534
+ @Value = value
6535
+ end
6536
+
6537
+ def deserialize(params)
6538
+ @Type = params['Type']
6539
+ @Compare = params['Compare']
6540
+ @Value = params['Value']
6541
+ end
6542
+ end
6543
+
6440
6544
  # 实例的审计规则详情,DescribeAuditRuleWithInstanceIds接口的出参。
6441
6545
  class InstanceAuditRule < TencentCloud::Common::AbstractModel
6442
6546
  # @param InstanceId: 实例ID。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cynosdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.611
4
+ version: 3.0.612
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-12 00:00:00.000000000 Z
11
+ date: 2023-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common