tencentcloud-sdk-cynosdb 3.0.659 → 3.0.660
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190107/client.rb +4 -4
- data/lib/v20190107/models.rb +204 -55
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7466445881ea98c6cdfd903036f12ac2dcf9ef7
|
4
|
+
data.tar.gz: 2fc13d6d3c2588b1970eb84a87449355c83d4d62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f72cf1f1db746b9c8830c4ead5b37585f836db8d1c44b4ec975f4a42c214be4918b9923dc1224b8287de5e231aacd2168bbd208080c4c238b6f35c909ea989c
|
7
|
+
data.tar.gz: 6969009463bef6d51857010644c5bc52807b5fd8892b27f4914675aac24e0bd0926489f829737cd7ffd08e2a183e5c0ff186bb7f993b29f03647091af4d9c0f3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.660
|
data/lib/v20190107/client.rb
CHANGED
@@ -317,7 +317,7 @@ module TencentCloud
|
|
317
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
318
|
end
|
319
319
|
|
320
|
-
#
|
320
|
+
# 创建审计规则模板
|
321
321
|
|
322
322
|
# @param request: Request instance for CreateAuditRuleTemplate.
|
323
323
|
# @type request: :class:`Tencentcloud::cynosdb::V20190107::CreateAuditRuleTemplateRequest`
|
@@ -557,7 +557,7 @@ module TencentCloud
|
|
557
557
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
558
558
|
end
|
559
559
|
|
560
|
-
#
|
560
|
+
# 删除审计规则模板
|
561
561
|
|
562
562
|
# @param request: Request instance for DeleteAuditRuleTemplates.
|
563
563
|
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DeleteAuditRuleTemplatesRequest`
|
@@ -773,7 +773,7 @@ module TencentCloud
|
|
773
773
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
774
|
end
|
775
775
|
|
776
|
-
#
|
776
|
+
# 查询审计规则模板信息
|
777
777
|
|
778
778
|
# @param request: Request instance for DescribeAuditRuleTemplates.
|
779
779
|
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeAuditRuleTemplatesRequest`
|
@@ -1973,7 +1973,7 @@ module TencentCloud
|
|
1973
1973
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1974
1974
|
end
|
1975
1975
|
|
1976
|
-
#
|
1976
|
+
# 修改审计规则模板
|
1977
1977
|
|
1978
1978
|
# @param request: Request instance for ModifyAuditRuleTemplates.
|
1979
1979
|
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyAuditRuleTemplatesRequest`
|
data/lib/v20190107/models.rb
CHANGED
@@ -411,10 +411,13 @@ module TencentCloud
|
|
411
411
|
# @param NsTime: 开始时间,与timestamp构成一个精确到纳秒的时间。
|
412
412
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
413
413
|
# @type NsTime: Integer
|
414
|
+
# @param TemplateInfo: 日志命中规则模板的基本信息
|
415
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
416
|
+
# @type TemplateInfo: Array
|
414
417
|
|
415
|
-
attr_accessor :AffectRows, :ErrCode, :SqlType, :TableName, :InstanceName, :PolicyName, :DBName, :Sql, :Host, :User, :ExecTime, :Timestamp, :SentRows, :ThreadId, :CheckRows, :CpuTime, :IoWaitTime, :LockWaitTime, :TrxLivingTime, :NsTime
|
418
|
+
attr_accessor :AffectRows, :ErrCode, :SqlType, :TableName, :InstanceName, :PolicyName, :DBName, :Sql, :Host, :User, :ExecTime, :Timestamp, :SentRows, :ThreadId, :CheckRows, :CpuTime, :IoWaitTime, :LockWaitTime, :TrxLivingTime, :NsTime, :TemplateInfo
|
416
419
|
|
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)
|
420
|
+
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, templateinfo=nil)
|
418
421
|
@AffectRows = affectrows
|
419
422
|
@ErrCode = errcode
|
420
423
|
@SqlType = sqltype
|
@@ -435,6 +438,7 @@ module TencentCloud
|
|
435
438
|
@LockWaitTime = lockwaittime
|
436
439
|
@TrxLivingTime = trxlivingtime
|
437
440
|
@NsTime = nstime
|
441
|
+
@TemplateInfo = templateinfo
|
438
442
|
end
|
439
443
|
|
440
444
|
def deserialize(params)
|
@@ -458,6 +462,14 @@ module TencentCloud
|
|
458
462
|
@LockWaitTime = params['LockWaitTime']
|
459
463
|
@TrxLivingTime = params['TrxLivingTime']
|
460
464
|
@NsTime = params['NsTime']
|
465
|
+
unless params['TemplateInfo'].nil?
|
466
|
+
@TemplateInfo = []
|
467
|
+
params['TemplateInfo'].each do |i|
|
468
|
+
logruletemplateinfo_tmp = LogRuleTemplateInfo.new
|
469
|
+
logruletemplateinfo_tmp.deserialize(i)
|
470
|
+
@TemplateInfo << logruletemplateinfo_tmp
|
471
|
+
end
|
472
|
+
end
|
461
473
|
end
|
462
474
|
end
|
463
475
|
|
@@ -570,6 +582,7 @@ module TencentCloud
|
|
570
582
|
# 规则审计的过滤条件
|
571
583
|
class AuditRuleFilters < TencentCloud::Common::AbstractModel
|
572
584
|
# @param RuleFilters: 单条审计规则。
|
585
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
573
586
|
# @type RuleFilters: Array
|
574
587
|
|
575
588
|
attr_accessor :RuleFilters
|
@@ -590,28 +603,48 @@ module TencentCloud
|
|
590
603
|
end
|
591
604
|
end
|
592
605
|
|
593
|
-
#
|
606
|
+
# 审计规则模板的详情
|
594
607
|
class AuditRuleTemplateInfo < TencentCloud::Common::AbstractModel
|
595
|
-
# @param RuleTemplateId:
|
608
|
+
# @param RuleTemplateId: 规则模板ID。
|
596
609
|
# @type RuleTemplateId: String
|
597
|
-
# @param RuleTemplateName:
|
610
|
+
# @param RuleTemplateName: 规则模板名称。
|
598
611
|
# @type RuleTemplateName: String
|
599
|
-
# @param RuleFilters:
|
612
|
+
# @param RuleFilters: 规则模板的过滤条件
|
600
613
|
# @type RuleFilters: Array
|
601
|
-
# @param Description:
|
614
|
+
# @param Description: 规则模板描述。
|
602
615
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
603
616
|
# @type Description: String
|
604
|
-
# @param CreateAt:
|
617
|
+
# @param CreateAt: 规则模板创建时间。
|
605
618
|
# @type CreateAt: String
|
619
|
+
# @param UpdateAt: 规则模板修改时间。
|
620
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
621
|
+
# @type UpdateAt: String
|
622
|
+
# @param AlarmLevel: 告警等级。1-低风险,2-中风险,3-高风险。
|
623
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
624
|
+
# @type AlarmLevel: Integer
|
625
|
+
# @param AlarmPolicy: 告警策略。0-不告警,1-告警。
|
626
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
627
|
+
# @type AlarmPolicy: Integer
|
628
|
+
# @param Status: 模版状态。0-无任务 ,1-修改中。
|
629
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
630
|
+
# @type Status: Integer
|
631
|
+
# @param AffectedInstances: 规则模板应用在哪些在实例。
|
632
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
633
|
+
# @type AffectedInstances: Array
|
606
634
|
|
607
|
-
attr_accessor :RuleTemplateId, :RuleTemplateName, :RuleFilters, :Description, :CreateAt
|
635
|
+
attr_accessor :RuleTemplateId, :RuleTemplateName, :RuleFilters, :Description, :CreateAt, :UpdateAt, :AlarmLevel, :AlarmPolicy, :Status, :AffectedInstances
|
608
636
|
|
609
|
-
def initialize(ruletemplateid=nil, ruletemplatename=nil, rulefilters=nil, description=nil, createat=nil)
|
637
|
+
def initialize(ruletemplateid=nil, ruletemplatename=nil, rulefilters=nil, description=nil, createat=nil, updateat=nil, alarmlevel=nil, alarmpolicy=nil, status=nil, affectedinstances=nil)
|
610
638
|
@RuleTemplateId = ruletemplateid
|
611
639
|
@RuleTemplateName = ruletemplatename
|
612
640
|
@RuleFilters = rulefilters
|
613
641
|
@Description = description
|
614
642
|
@CreateAt = createat
|
643
|
+
@UpdateAt = updateat
|
644
|
+
@AlarmLevel = alarmlevel
|
645
|
+
@AlarmPolicy = alarmpolicy
|
646
|
+
@Status = status
|
647
|
+
@AffectedInstances = affectedinstances
|
615
648
|
end
|
616
649
|
|
617
650
|
def deserialize(params)
|
@@ -627,6 +660,11 @@ module TencentCloud
|
|
627
660
|
end
|
628
661
|
@Description = params['Description']
|
629
662
|
@CreateAt = params['CreateAt']
|
663
|
+
@UpdateAt = params['UpdateAt']
|
664
|
+
@AlarmLevel = params['AlarmLevel']
|
665
|
+
@AlarmPolicy = params['AlarmPolicy']
|
666
|
+
@Status = params['Status']
|
667
|
+
@AffectedInstances = params['AffectedInstances']
|
630
668
|
end
|
631
669
|
end
|
632
670
|
|
@@ -1241,17 +1279,23 @@ module TencentCloud
|
|
1241
1279
|
class CreateAuditRuleTemplateRequest < TencentCloud::Common::AbstractModel
|
1242
1280
|
# @param RuleFilters: 审计规则。
|
1243
1281
|
# @type RuleFilters: Array
|
1244
|
-
# @param RuleTemplateName:
|
1282
|
+
# @param RuleTemplateName: 规则模板名称。
|
1245
1283
|
# @type RuleTemplateName: String
|
1246
|
-
# @param Description:
|
1284
|
+
# @param Description: 规则模板描述。
|
1247
1285
|
# @type Description: String
|
1286
|
+
# @param AlarmLevel: 告警等级。1-低风险,2-中风险,3-高风险
|
1287
|
+
# @type AlarmLevel: Integer
|
1288
|
+
# @param AlarmPolicy: 告警策略。0-不告警,1-告警。
|
1289
|
+
# @type AlarmPolicy: Integer
|
1248
1290
|
|
1249
|
-
attr_accessor :RuleFilters, :RuleTemplateName, :Description
|
1291
|
+
attr_accessor :RuleFilters, :RuleTemplateName, :Description, :AlarmLevel, :AlarmPolicy
|
1250
1292
|
|
1251
|
-
def initialize(rulefilters=nil, ruletemplatename=nil, description=nil)
|
1293
|
+
def initialize(rulefilters=nil, ruletemplatename=nil, description=nil, alarmlevel=nil, alarmpolicy=nil)
|
1252
1294
|
@RuleFilters = rulefilters
|
1253
1295
|
@RuleTemplateName = ruletemplatename
|
1254
1296
|
@Description = description
|
1297
|
+
@AlarmLevel = alarmlevel
|
1298
|
+
@AlarmPolicy = alarmpolicy
|
1255
1299
|
end
|
1256
1300
|
|
1257
1301
|
def deserialize(params)
|
@@ -1265,12 +1309,14 @@ module TencentCloud
|
|
1265
1309
|
end
|
1266
1310
|
@RuleTemplateName = params['RuleTemplateName']
|
1267
1311
|
@Description = params['Description']
|
1312
|
+
@AlarmLevel = params['AlarmLevel']
|
1313
|
+
@AlarmPolicy = params['AlarmPolicy']
|
1268
1314
|
end
|
1269
1315
|
end
|
1270
1316
|
|
1271
1317
|
# CreateAuditRuleTemplate返回参数结构体
|
1272
1318
|
class CreateAuditRuleTemplateResponse < TencentCloud::Common::AbstractModel
|
1273
|
-
# @param RuleTemplateId:
|
1319
|
+
# @param RuleTemplateId: 生成的规则模板ID。
|
1274
1320
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1275
1321
|
# @type RuleTemplateId: String
|
1276
1322
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
@@ -3326,7 +3372,7 @@ module TencentCloud
|
|
3326
3372
|
|
3327
3373
|
# DeleteAuditRuleTemplates请求参数结构体
|
3328
3374
|
class DeleteAuditRuleTemplatesRequest < TencentCloud::Common::AbstractModel
|
3329
|
-
# @param RuleTemplateIds:
|
3375
|
+
# @param RuleTemplateIds: 审计规则模板ID。
|
3330
3376
|
# @type RuleTemplateIds: Array
|
3331
3377
|
|
3332
3378
|
attr_accessor :RuleTemplateIds
|
@@ -3821,22 +3867,28 @@ module TencentCloud
|
|
3821
3867
|
|
3822
3868
|
# DescribeAuditRuleTemplates请求参数结构体
|
3823
3869
|
class DescribeAuditRuleTemplatesRequest < TencentCloud::Common::AbstractModel
|
3824
|
-
# @param RuleTemplateIds:
|
3870
|
+
# @param RuleTemplateIds: 规则模板ID。
|
3825
3871
|
# @type RuleTemplateIds: Array
|
3826
|
-
# @param RuleTemplateNames:
|
3872
|
+
# @param RuleTemplateNames: 规则模板名称
|
3827
3873
|
# @type RuleTemplateNames: Array
|
3828
3874
|
# @param Limit: 单次请求返回的数量。默认值20。
|
3829
3875
|
# @type Limit: Integer
|
3830
3876
|
# @param Offset: 偏移量,默认值为 0。
|
3831
3877
|
# @type Offset: Integer
|
3878
|
+
# @param AlarmLevel: 告警等级。1-低风险,2-中风险,3-高风险。
|
3879
|
+
# @type AlarmLevel: Integer
|
3880
|
+
# @param AlarmPolicy: 告警策略。0-不告警,1-告警。
|
3881
|
+
# @type AlarmPolicy: Integer
|
3832
3882
|
|
3833
|
-
attr_accessor :RuleTemplateIds, :RuleTemplateNames, :Limit, :Offset
|
3883
|
+
attr_accessor :RuleTemplateIds, :RuleTemplateNames, :Limit, :Offset, :AlarmLevel, :AlarmPolicy
|
3834
3884
|
|
3835
|
-
def initialize(ruletemplateids=nil, ruletemplatenames=nil, limit=nil, offset=nil)
|
3885
|
+
def initialize(ruletemplateids=nil, ruletemplatenames=nil, limit=nil, offset=nil, alarmlevel=nil, alarmpolicy=nil)
|
3836
3886
|
@RuleTemplateIds = ruletemplateids
|
3837
3887
|
@RuleTemplateNames = ruletemplatenames
|
3838
3888
|
@Limit = limit
|
3839
3889
|
@Offset = offset
|
3890
|
+
@AlarmLevel = alarmlevel
|
3891
|
+
@AlarmPolicy = alarmpolicy
|
3840
3892
|
end
|
3841
3893
|
|
3842
3894
|
def deserialize(params)
|
@@ -3844,6 +3896,8 @@ module TencentCloud
|
|
3844
3896
|
@RuleTemplateNames = params['RuleTemplateNames']
|
3845
3897
|
@Limit = params['Limit']
|
3846
3898
|
@Offset = params['Offset']
|
3899
|
+
@AlarmLevel = params['AlarmLevel']
|
3900
|
+
@AlarmPolicy = params['AlarmPolicy']
|
3847
3901
|
end
|
3848
3902
|
end
|
3849
3903
|
|
@@ -3851,7 +3905,7 @@ module TencentCloud
|
|
3851
3905
|
class DescribeAuditRuleTemplatesResponse < TencentCloud::Common::AbstractModel
|
3852
3906
|
# @param TotalCount: 符合查询条件的实例总数。
|
3853
3907
|
# @type TotalCount: Integer
|
3854
|
-
# @param Items:
|
3908
|
+
# @param Items: 规则模板详细信息列表。
|
3855
3909
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
3856
3910
|
# @type Items: Array
|
3857
3911
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
@@ -6544,28 +6598,13 @@ module TencentCloud
|
|
6544
6598
|
class InstanceAuditLogFilter < TencentCloud::Common::AbstractModel
|
6545
6599
|
# @param Type: 过滤项。目前支持以下搜索条件:
|
6546
6600
|
|
6547
|
-
# 包含、不包含、包含(分词维度)、不包含(分词维度):
|
6548
|
-
|
6549
|
-
|
6550
|
-
|
6551
|
-
#
|
6552
|
-
|
6553
|
-
#
|
6554
|
-
|
6555
|
-
# 等于、不等于:
|
6556
|
-
# sqlType - SQL类型;
|
6557
|
-
# errCode - 错误码;
|
6558
|
-
# threadId - 线程ID;
|
6559
|
-
|
6560
|
-
# 范围搜索(时间类型统一为微妙):
|
6561
|
-
# execTime - 执行时间;
|
6562
|
-
# lockWaitTime - 锁等待时间;
|
6563
|
-
# ioWaitTime - IO等待时间;
|
6564
|
-
# trxLivingTime - 事物持续时间;
|
6565
|
-
# cpuTime - cpu时间;
|
6566
|
-
# checkRows - 扫描行数;
|
6567
|
-
# affectRows - 影响行数;
|
6568
|
-
# sentRows - 返回行数。
|
6601
|
+
# 包含、不包含、包含(分词维度)、不包含(分词维度): sql - SQL详情;alarmLevel - 告警等级;ruleTemplateId - 规则模板Id
|
6602
|
+
|
6603
|
+
# 等于、不等于、包含、不包含: host - 客户端地址; user - 用户名; dbName - 数据库名称;
|
6604
|
+
|
6605
|
+
# 等于、不等于: sqlType - SQL类型; errCode - 错误码; threadId - 线程ID;
|
6606
|
+
|
6607
|
+
# 范围搜索(时间类型统一为微秒): execTime - 执行时间; lockWaitTime - 执行时间; ioWaitTime - IO等待时间; trxLivingTime - 事物持续时间; cpuTime - cpu时间; checkRows - 扫描行数; affectRows - 影响行数; sentRows - 返回行数。
|
6569
6608
|
# @type Type: String
|
6570
6609
|
# @param Compare: 过滤条件。支持以下条件:
|
6571
6610
|
# WINC-包含(分词维度),
|
@@ -6594,7 +6633,7 @@ module TencentCloud
|
|
6594
6633
|
end
|
6595
6634
|
end
|
6596
6635
|
|
6597
|
-
#
|
6636
|
+
# 实例的审计规则详情。
|
6598
6637
|
class InstanceAuditRule < TencentCloud::Common::AbstractModel
|
6599
6638
|
# @param InstanceId: 实例ID。
|
6600
6639
|
# @type InstanceId: String
|
@@ -6604,13 +6643,21 @@ module TencentCloud
|
|
6604
6643
|
# @param AuditRuleFilters: 审计规则详情。仅当AuditRule=true时有效。
|
6605
6644
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6606
6645
|
# @type AuditRuleFilters: Array
|
6646
|
+
# @param OldRule: 是否是审计策略
|
6647
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6648
|
+
# @type OldRule: Boolean
|
6649
|
+
# @param RuleTemplates: 实例应用的规则模板详情
|
6650
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6651
|
+
# @type RuleTemplates: Array
|
6607
6652
|
|
6608
|
-
attr_accessor :InstanceId, :AuditRule, :AuditRuleFilters
|
6653
|
+
attr_accessor :InstanceId, :AuditRule, :AuditRuleFilters, :OldRule, :RuleTemplates
|
6609
6654
|
|
6610
|
-
def initialize(instanceid=nil, auditrule=nil, auditrulefilters=nil)
|
6655
|
+
def initialize(instanceid=nil, auditrule=nil, auditrulefilters=nil, oldrule=nil, ruletemplates=nil)
|
6611
6656
|
@InstanceId = instanceid
|
6612
6657
|
@AuditRule = auditrule
|
6613
6658
|
@AuditRuleFilters = auditrulefilters
|
6659
|
+
@OldRule = oldrule
|
6660
|
+
@RuleTemplates = ruletemplates
|
6614
6661
|
end
|
6615
6662
|
|
6616
6663
|
def deserialize(params)
|
@@ -6624,6 +6671,15 @@ module TencentCloud
|
|
6624
6671
|
@AuditRuleFilters << auditrulefilters_tmp
|
6625
6672
|
end
|
6626
6673
|
end
|
6674
|
+
@OldRule = params['OldRule']
|
6675
|
+
unless params['RuleTemplates'].nil?
|
6676
|
+
@RuleTemplates = []
|
6677
|
+
params['RuleTemplates'].each do |i|
|
6678
|
+
ruletemplateinfo_tmp = RuleTemplateInfo.new
|
6679
|
+
ruletemplateinfo_tmp.deserialize(i)
|
6680
|
+
@RuleTemplates << ruletemplateinfo_tmp
|
6681
|
+
end
|
6682
|
+
end
|
6627
6683
|
end
|
6628
6684
|
end
|
6629
6685
|
|
@@ -6921,6 +6977,38 @@ module TencentCloud
|
|
6921
6977
|
end
|
6922
6978
|
end
|
6923
6979
|
|
6980
|
+
# 审计日志命中规则模板的基本信息
|
6981
|
+
class LogRuleTemplateInfo < TencentCloud::Common::AbstractModel
|
6982
|
+
# @param RuleTemplateId: 模板ID
|
6983
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6984
|
+
# @type RuleTemplateId: String
|
6985
|
+
# @param RuleTemplateName: 规则模板名
|
6986
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6987
|
+
# @type RuleTemplateName: String
|
6988
|
+
# @param AlarmLevel: 告警等级。1-低风险,2-中风险,3-高风险。
|
6989
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6990
|
+
# @type AlarmLevel: String
|
6991
|
+
# @param RuleTemplateStatus: 规则模板变更状态:0-未变更;1-已变更;2-已删除
|
6992
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6993
|
+
# @type RuleTemplateStatus: Integer
|
6994
|
+
|
6995
|
+
attr_accessor :RuleTemplateId, :RuleTemplateName, :AlarmLevel, :RuleTemplateStatus
|
6996
|
+
|
6997
|
+
def initialize(ruletemplateid=nil, ruletemplatename=nil, alarmlevel=nil, ruletemplatestatus=nil)
|
6998
|
+
@RuleTemplateId = ruletemplateid
|
6999
|
+
@RuleTemplateName = ruletemplatename
|
7000
|
+
@AlarmLevel = alarmlevel
|
7001
|
+
@RuleTemplateStatus = ruletemplatestatus
|
7002
|
+
end
|
7003
|
+
|
7004
|
+
def deserialize(params)
|
7005
|
+
@RuleTemplateId = params['RuleTemplateId']
|
7006
|
+
@RuleTemplateName = params['RuleTemplateName']
|
7007
|
+
@AlarmLevel = params['AlarmLevel']
|
7008
|
+
@RuleTemplateStatus = params['RuleTemplateStatus']
|
7009
|
+
end
|
7010
|
+
end
|
7011
|
+
|
6924
7012
|
# 参数是否可修改的详细信息
|
6925
7013
|
class ModifiableInfo < TencentCloud::Common::AbstractModel
|
6926
7014
|
|
@@ -7136,22 +7224,28 @@ module TencentCloud
|
|
7136
7224
|
|
7137
7225
|
# ModifyAuditRuleTemplates请求参数结构体
|
7138
7226
|
class ModifyAuditRuleTemplatesRequest < TencentCloud::Common::AbstractModel
|
7139
|
-
# @param RuleTemplateIds:
|
7227
|
+
# @param RuleTemplateIds: 审计规则模板ID。
|
7140
7228
|
# @type RuleTemplateIds: Array
|
7141
7229
|
# @param RuleFilters: 修改后的审计规则。
|
7142
7230
|
# @type RuleFilters: Array
|
7143
|
-
# @param RuleTemplateName:
|
7231
|
+
# @param RuleTemplateName: 修改后的规则模板名称。
|
7144
7232
|
# @type RuleTemplateName: String
|
7145
|
-
# @param Description:
|
7233
|
+
# @param Description: 修改后的规则模板描述。
|
7146
7234
|
# @type Description: String
|
7235
|
+
# @param AlarmLevel: 告警等级。1-低风险,2-中风险,3-高风险。
|
7236
|
+
# @type AlarmLevel: Integer
|
7237
|
+
# @param AlarmPolicy: 告警策略。0-不告警,1-告警。
|
7238
|
+
# @type AlarmPolicy: Integer
|
7147
7239
|
|
7148
|
-
attr_accessor :RuleTemplateIds, :RuleFilters, :RuleTemplateName, :Description
|
7240
|
+
attr_accessor :RuleTemplateIds, :RuleFilters, :RuleTemplateName, :Description, :AlarmLevel, :AlarmPolicy
|
7149
7241
|
|
7150
|
-
def initialize(ruletemplateids=nil, rulefilters=nil, ruletemplatename=nil, description=nil)
|
7242
|
+
def initialize(ruletemplateids=nil, rulefilters=nil, ruletemplatename=nil, description=nil, alarmlevel=nil, alarmpolicy=nil)
|
7151
7243
|
@RuleTemplateIds = ruletemplateids
|
7152
7244
|
@RuleFilters = rulefilters
|
7153
7245
|
@RuleTemplateName = ruletemplatename
|
7154
7246
|
@Description = description
|
7247
|
+
@AlarmLevel = alarmlevel
|
7248
|
+
@AlarmPolicy = alarmpolicy
|
7155
7249
|
end
|
7156
7250
|
|
7157
7251
|
def deserialize(params)
|
@@ -7166,6 +7260,8 @@ module TencentCloud
|
|
7166
7260
|
end
|
7167
7261
|
@RuleTemplateName = params['RuleTemplateName']
|
7168
7262
|
@Description = params['Description']
|
7263
|
+
@AlarmLevel = params['AlarmLevel']
|
7264
|
+
@AlarmPolicy = params['AlarmPolicy']
|
7169
7265
|
end
|
7170
7266
|
end
|
7171
7267
|
|
@@ -7197,7 +7293,7 @@ module TencentCloud
|
|
7197
7293
|
# @type AuditAll: Boolean
|
7198
7294
|
# @param AuditRuleFilters: 规则审计。
|
7199
7295
|
# @type AuditRuleFilters: Array
|
7200
|
-
# @param RuleTemplateIds:
|
7296
|
+
# @param RuleTemplateIds: 规则模板ID。
|
7201
7297
|
# @type RuleTemplateIds: Array
|
7202
7298
|
|
7203
7299
|
attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay, :AuditAll, :AuditRuleFilters, :RuleTemplateIds
|
@@ -8495,17 +8591,20 @@ module TencentCloud
|
|
8495
8591
|
# @type HighLogExpireDay: Integer
|
8496
8592
|
# @param AuditRuleFilters: 审计规则。同RuleTemplateIds都不填是全审计。
|
8497
8593
|
# @type AuditRuleFilters: Array
|
8498
|
-
# @param RuleTemplateIds:
|
8594
|
+
# @param RuleTemplateIds: 规则模板ID。同AuditRuleFilters都不填是全审计。
|
8499
8595
|
# @type RuleTemplateIds: Array
|
8596
|
+
# @param AuditAll: 审计类型。true-全审计;默认false-规则审计。
|
8597
|
+
# @type AuditAll: Boolean
|
8500
8598
|
|
8501
|
-
attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay, :AuditRuleFilters, :RuleTemplateIds
|
8599
|
+
attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay, :AuditRuleFilters, :RuleTemplateIds, :AuditAll
|
8502
8600
|
|
8503
|
-
def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil, auditrulefilters=nil, ruletemplateids=nil)
|
8601
|
+
def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil, auditrulefilters=nil, ruletemplateids=nil, auditall=nil)
|
8504
8602
|
@InstanceId = instanceid
|
8505
8603
|
@LogExpireDay = logexpireday
|
8506
8604
|
@HighLogExpireDay = highlogexpireday
|
8507
8605
|
@AuditRuleFilters = auditrulefilters
|
8508
8606
|
@RuleTemplateIds = ruletemplateids
|
8607
|
+
@AuditAll = auditall
|
8509
8608
|
end
|
8510
8609
|
|
8511
8610
|
def deserialize(params)
|
@@ -8521,6 +8620,7 @@ module TencentCloud
|
|
8521
8620
|
end
|
8522
8621
|
end
|
8523
8622
|
@RuleTemplateIds = params['RuleTemplateIds']
|
8623
|
+
@AuditAll = params['AuditAll']
|
8524
8624
|
end
|
8525
8625
|
end
|
8526
8626
|
|
@@ -10121,6 +10221,55 @@ module TencentCloud
|
|
10121
10221
|
end
|
10122
10222
|
end
|
10123
10223
|
|
10224
|
+
# 规则模板内容
|
10225
|
+
class RuleTemplateInfo < TencentCloud::Common::AbstractModel
|
10226
|
+
# @param RuleTemplateId: 规则模板ID。
|
10227
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10228
|
+
# @type RuleTemplateId: String
|
10229
|
+
# @param RuleTemplateName: 规则模板名称。
|
10230
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10231
|
+
# @type RuleTemplateName: String
|
10232
|
+
# @param RuleFilters: 规则内容。
|
10233
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10234
|
+
# @type RuleFilters: Array
|
10235
|
+
# @param AlarmLevel: 告警等级。1-低风险,2-中风险,3-高风险。
|
10236
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10237
|
+
# @type AlarmLevel: Integer
|
10238
|
+
# @param AlarmPolicy: 告警策略。0-不告警,1-告警。
|
10239
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10240
|
+
# @type AlarmPolicy: Integer
|
10241
|
+
# @param Description: 规则描述。
|
10242
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10243
|
+
# @type Description: String
|
10244
|
+
|
10245
|
+
attr_accessor :RuleTemplateId, :RuleTemplateName, :RuleFilters, :AlarmLevel, :AlarmPolicy, :Description
|
10246
|
+
|
10247
|
+
def initialize(ruletemplateid=nil, ruletemplatename=nil, rulefilters=nil, alarmlevel=nil, alarmpolicy=nil, description=nil)
|
10248
|
+
@RuleTemplateId = ruletemplateid
|
10249
|
+
@RuleTemplateName = ruletemplatename
|
10250
|
+
@RuleFilters = rulefilters
|
10251
|
+
@AlarmLevel = alarmlevel
|
10252
|
+
@AlarmPolicy = alarmpolicy
|
10253
|
+
@Description = description
|
10254
|
+
end
|
10255
|
+
|
10256
|
+
def deserialize(params)
|
10257
|
+
@RuleTemplateId = params['RuleTemplateId']
|
10258
|
+
@RuleTemplateName = params['RuleTemplateName']
|
10259
|
+
unless params['RuleFilters'].nil?
|
10260
|
+
@RuleFilters = []
|
10261
|
+
params['RuleFilters'].each do |i|
|
10262
|
+
rulefilters_tmp = RuleFilters.new
|
10263
|
+
rulefilters_tmp.deserialize(i)
|
10264
|
+
@RuleFilters << rulefilters_tmp
|
10265
|
+
end
|
10266
|
+
end
|
10267
|
+
@AlarmLevel = params['AlarmLevel']
|
10268
|
+
@AlarmPolicy = params['AlarmPolicy']
|
10269
|
+
@Description = params['Description']
|
10270
|
+
end
|
10271
|
+
end
|
10272
|
+
|
10124
10273
|
# 资源包明细说明
|
10125
10274
|
class SalePackageSpec < TencentCloud::Common::AbstractModel
|
10126
10275
|
# @param PackageRegion: 资源包使用地域
|
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.
|
4
|
+
version: 3.0.660
|
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-
|
11
|
+
date: 2023-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|