tencentcloud-sdk-cdb 3.0.658 → 3.0.659

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20170320/models.rb +55 -6
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2be7074def6afcf1f42a90cb38ed53998bab6662
4
- data.tar.gz: 41827cd662d23371356b35803690c0a1569d4ac3
3
+ metadata.gz: 5efeec24cb596991ebad6eb903a2be900efea85a
4
+ data.tar.gz: d423548fe1f821bedc99a6982359fbfe145e0aec
5
5
  SHA512:
6
- metadata.gz: 3e6aada06f70fd0a17d0acd5f64a79f2673940048a56cc55725c9b789197785b33bc11dfe16275418e96236b91f60036e3ce9b5b91017c76bc36d7a86a992894
7
- data.tar.gz: 789d65ffdf676b215ff83a59f3fd25038bfde0eacf405bbb7f15a49326fac12d238e195bc6c679089fefa39f861161f5b021dd14c9de9da0e716718089b14b5c
6
+ metadata.gz: f7cea48455468e7b256155e04c61af492d2094e871b4e2f1649b8ebc11b1b7c0e926404f94e09485269df07c2822c117787c729602f17b3d49b55c09ebec3cf8
7
+ data.tar.gz: a27f8cfb7d46f2ce86f30343d1e678b59c9e0a8110cfaf56c4d652bd0eb7b9ef430b84ae439c4bd9044bff42ed4ef3e34d3d684c0a452cb429deba9d038bfe27
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.658
1
+ 3.0.659
@@ -515,10 +515,13 @@ module TencentCloud
515
515
  # @param TrxLivingTime: 事物持续时间,微秒。
516
516
  # 注意:此字段可能返回 null,表示取不到有效值。
517
517
  # @type TrxLivingTime: Integer
518
+ # @param TemplateInfo: 日志命中规则模板的基本信息
519
+ # 注意:此字段可能返回 null,表示取不到有效值。
520
+ # @type TemplateInfo: Array
518
521
 
519
- attr_accessor :AffectRows, :ErrCode, :SqlType, :PolicyName, :DBName, :Sql, :Host, :User, :ExecTime, :Timestamp, :SentRows, :ThreadId, :CheckRows, :CpuTime, :IoWaitTime, :LockWaitTime, :NsTime, :TrxLivingTime
522
+ attr_accessor :AffectRows, :ErrCode, :SqlType, :PolicyName, :DBName, :Sql, :Host, :User, :ExecTime, :Timestamp, :SentRows, :ThreadId, :CheckRows, :CpuTime, :IoWaitTime, :LockWaitTime, :NsTime, :TrxLivingTime, :TemplateInfo
520
523
 
521
- 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)
524
+ 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, templateinfo=nil)
522
525
  @AffectRows = affectrows
523
526
  @ErrCode = errcode
524
527
  @SqlType = sqltype
@@ -537,6 +540,7 @@ module TencentCloud
537
540
  @LockWaitTime = lockwaittime
538
541
  @NsTime = nstime
539
542
  @TrxLivingTime = trxlivingtime
543
+ @TemplateInfo = templateinfo
540
544
  end
541
545
 
542
546
  def deserialize(params)
@@ -558,6 +562,14 @@ module TencentCloud
558
562
  @LockWaitTime = params['LockWaitTime']
559
563
  @NsTime = params['NsTime']
560
564
  @TrxLivingTime = params['TrxLivingTime']
565
+ unless params['TemplateInfo'].nil?
566
+ @TemplateInfo = []
567
+ params['TemplateInfo'].each do |i|
568
+ logruletemplateinfo_tmp = LogRuleTemplateInfo.new
569
+ logruletemplateinfo_tmp.deserialize(i)
570
+ @TemplateInfo << logruletemplateinfo_tmp
571
+ end
572
+ end
561
573
  end
562
574
  end
563
575
 
@@ -3678,6 +3690,7 @@ module TencentCloud
3678
3690
  # @param TotalCount: 符合条件的审计日志文件个数。
3679
3691
  # @type TotalCount: Integer
3680
3692
  # @param Items: 审计日志文件详情。
3693
+ # 注意:此字段可能返回 null,表示取不到有效值。
3681
3694
  # @type Items: Array
3682
3695
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3683
3696
  # @type RequestId: String
@@ -7511,7 +7524,7 @@ module TencentCloud
7511
7524
  # @param Type: 过滤项。目前支持以下搜索条件:
7512
7525
 
7513
7526
  # 包含、不包含、包含(分词维度)、不包含(分词维度):
7514
- # sql - SQL详情
7527
+ # sql - SQL详情;alarmLevel - 告警等级;ruleTemplateId - 规则模板Id
7515
7528
 
7516
7529
  # 等于、不等于、包含、不包含:
7517
7530
  # host - 客户端地址;
@@ -7929,6 +7942,38 @@ module TencentCloud
7929
7942
  end
7930
7943
  end
7931
7944
 
7945
+ # 审计日志命中规则模板的基本信息
7946
+ class LogRuleTemplateInfo < TencentCloud::Common::AbstractModel
7947
+ # @param RuleTemplateId: 模板ID。
7948
+ # 注意:此字段可能返回 null,表示取不到有效值。
7949
+ # @type RuleTemplateId: String
7950
+ # @param RuleTemplateName: 规则模板名
7951
+ # 注意:此字段可能返回 null,表示取不到有效值。
7952
+ # @type RuleTemplateName: String
7953
+ # @param AlarmLevel: 告警等级。1-低风险,2-中风险,3-高风险。
7954
+ # 注意:此字段可能返回 null,表示取不到有效值。
7955
+ # @type AlarmLevel: String
7956
+ # @param RuleTemplateStatus: 规则模板变更状态:0-未变更;1-已变更;2-已删除
7957
+ # 注意:此字段可能返回 null,表示取不到有效值。
7958
+ # @type RuleTemplateStatus: Integer
7959
+
7960
+ attr_accessor :RuleTemplateId, :RuleTemplateName, :AlarmLevel, :RuleTemplateStatus
7961
+
7962
+ def initialize(ruletemplateid=nil, ruletemplatename=nil, alarmlevel=nil, ruletemplatestatus=nil)
7963
+ @RuleTemplateId = ruletemplateid
7964
+ @RuleTemplateName = ruletemplatename
7965
+ @AlarmLevel = alarmlevel
7966
+ @RuleTemplateStatus = ruletemplatestatus
7967
+ end
7968
+
7969
+ def deserialize(params)
7970
+ @RuleTemplateId = params['RuleTemplateId']
7971
+ @RuleTemplateName = params['RuleTemplateName']
7972
+ @AlarmLevel = params['AlarmLevel']
7973
+ @RuleTemplateStatus = params['RuleTemplateStatus']
7974
+ end
7975
+ end
7976
+
7932
7977
  # 主实例信息
7933
7978
  class MasterInfo < TencentCloud::Common::AbstractModel
7934
7979
  # @param Region: 地域信息
@@ -9463,17 +9508,20 @@ module TencentCloud
9463
9508
  # @type HighLogExpireDay: Integer
9464
9509
  # @param AuditRuleFilters: 审计规则。同RuleTemplateIds都不填是全审计。
9465
9510
  # @type AuditRuleFilters: Array
9466
- # @param RuleTemplateIds: 规则模版ID。同AuditRuleFilters都不填是全审计。
9511
+ # @param RuleTemplateIds: 规则模板ID。同AuditRuleFilters都不填是全审计。
9467
9512
  # @type RuleTemplateIds: Array
9513
+ # @param AuditAll: 审计类型。true-全审计;默认false-规则审计。
9514
+ # @type AuditAll: Boolean
9468
9515
 
9469
- attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay, :AuditRuleFilters, :RuleTemplateIds
9516
+ attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay, :AuditRuleFilters, :RuleTemplateIds, :AuditAll
9470
9517
 
9471
- def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil, auditrulefilters=nil, ruletemplateids=nil)
9518
+ def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil, auditrulefilters=nil, ruletemplateids=nil, auditall=nil)
9472
9519
  @InstanceId = instanceid
9473
9520
  @LogExpireDay = logexpireday
9474
9521
  @HighLogExpireDay = highlogexpireday
9475
9522
  @AuditRuleFilters = auditrulefilters
9476
9523
  @RuleTemplateIds = ruletemplateids
9524
+ @AuditAll = auditall
9477
9525
  end
9478
9526
 
9479
9527
  def deserialize(params)
@@ -9489,6 +9537,7 @@ module TencentCloud
9489
9537
  end
9490
9538
  end
9491
9539
  @RuleTemplateIds = params['RuleTemplateIds']
9540
+ @AuditAll = params['AuditAll']
9492
9541
  end
9493
9542
  end
9494
9543
 
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.658
4
+ version: 3.0.659
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-09-13 00:00:00.000000000 Z
11
+ date: 2023-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common