tencentcloud-sdk-cls 3.0.710 → 3.0.712

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/v20201016/models.rb +142 -12
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90f679fd57df9536983315246c4835c69bf583a2
4
- data.tar.gz: 4e40184ff2fa0e431edc0aad166735eaeead3d71
3
+ metadata.gz: fdad479ed4d5301091601c349abb7f79498baf2b
4
+ data.tar.gz: 89341b4a91b5dee6ecf8cd1d9c9098fd6261c37d
5
5
  SHA512:
6
- metadata.gz: f831f22c25ca53d4767f8c65fde2db7b2efdd58635c2b95d32024e5a875a953f2b8629f93a432403ed87ecb44e3ed7ba261e9a3e6a3e3eaa140815c924b913ab
7
- data.tar.gz: 2f2b2a44157d83014701eb2973a5eabc3c383cf539fed3534b75dc7b973d1b2d171e94c204d99ccbdb4d60a0d4f88fd75ff8d23172ed55b092c59cfb2cfbd751
6
+ metadata.gz: 6b047ebdbb2637e5dc6a49e23c8b4edede80c346a6a3ba3cb531a33ce98588bae679120a69ea84a6608d0add63e33f95d1318b689b7d52b755cabf07e42fe9e1
7
+ data.tar.gz: d4b71940eb8f0526eb0e8a1b0631d7b0c7a611a0788350c7e0acd2338d4986f0ed03c4ade06872079cf43c052898c92eda06a2d4afb8c5fcf6f100412d1cd560
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.710
1
+ 3.0.712
@@ -79,6 +79,26 @@ module TencentCloud
79
79
  end
80
80
  end
81
81
 
82
+ # 告警分类信息
83
+ class AlarmClassification < TencentCloud::Common::AbstractModel
84
+ # @param Key: 分类键
85
+ # @type Key: String
86
+ # @param Value: 分类值
87
+ # @type Value: String
88
+
89
+ attr_accessor :Key, :Value
90
+
91
+ def initialize(key=nil, value=nil)
92
+ @Key = key
93
+ @Value = value
94
+ end
95
+
96
+ def deserialize(params)
97
+ @Key = params['Key']
98
+ @Value = params['Value']
99
+ end
100
+ end
101
+
82
102
  # 告警策略描述
83
103
  class AlarmInfo < TencentCloud::Common::AbstractModel
84
104
  # @param Name: 告警策略名称。
@@ -1448,6 +1468,8 @@ module TencentCloud
1448
1468
 
1449
1469
  # 默认值为true
1450
1470
  # @type Status: Boolean
1471
+ # @param Enable: 是否开启告警策略。默认值为true
1472
+ # @type Enable: Boolean
1451
1473
  # @param MessageTemplate: 用户自定义告警内容
1452
1474
  # @type MessageTemplate: String
1453
1475
  # @param CallBack: 用户自定义回调
@@ -1470,10 +1492,18 @@ module TencentCloud
1470
1492
 
1471
1493
  # 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。
1472
1494
  # @type MonitorObjectType: Integer
1495
+ # @param Classifications: 告警附加分类信息列表。
1496
+
1497
+ # Classifications元素个数不能超过20个。
1498
+
1499
+ # Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,字符规则 ^[a-z]([a-z0-9_]{0,49})$。
1473
1500
 
1474
- attr_accessor :Name, :AlarmTargets, :MonitorTime, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :Condition, :AlarmLevel, :MultiConditions, :Status, :MessageTemplate, :CallBack, :Analysis, :GroupTriggerStatus, :GroupTriggerCondition, :Tags, :MonitorObjectType
1501
+ # Classifications元素的Value长度不能超过200个字符。
1502
+ # @type Classifications: Array
1475
1503
 
1476
- def initialize(name=nil, alarmtargets=nil, monitortime=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, condition=nil, alarmlevel=nil, multiconditions=nil, status=nil, messagetemplate=nil, callback=nil, analysis=nil, grouptriggerstatus=nil, grouptriggercondition=nil, tags=nil, monitorobjecttype=nil)
1504
+ attr_accessor :Name, :AlarmTargets, :MonitorTime, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :Condition, :AlarmLevel, :MultiConditions, :Status, :Enable, :MessageTemplate, :CallBack, :Analysis, :GroupTriggerStatus, :GroupTriggerCondition, :Tags, :MonitorObjectType, :Classifications
1505
+
1506
+ def initialize(name=nil, alarmtargets=nil, monitortime=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, condition=nil, alarmlevel=nil, multiconditions=nil, status=nil, enable=nil, messagetemplate=nil, callback=nil, analysis=nil, grouptriggerstatus=nil, grouptriggercondition=nil, tags=nil, monitorobjecttype=nil, classifications=nil)
1477
1507
  @Name = name
1478
1508
  @AlarmTargets = alarmtargets
1479
1509
  @MonitorTime = monitortime
@@ -1484,6 +1514,7 @@ module TencentCloud
1484
1514
  @AlarmLevel = alarmlevel
1485
1515
  @MultiConditions = multiconditions
1486
1516
  @Status = status
1517
+ @Enable = enable
1487
1518
  @MessageTemplate = messagetemplate
1488
1519
  @CallBack = callback
1489
1520
  @Analysis = analysis
@@ -1491,6 +1522,7 @@ module TencentCloud
1491
1522
  @GroupTriggerCondition = grouptriggercondition
1492
1523
  @Tags = tags
1493
1524
  @MonitorObjectType = monitorobjecttype
1525
+ @Classifications = classifications
1494
1526
  end
1495
1527
 
1496
1528
  def deserialize(params)
@@ -1521,6 +1553,7 @@ module TencentCloud
1521
1553
  end
1522
1554
  end
1523
1555
  @Status = params['Status']
1556
+ @Enable = params['Enable']
1524
1557
  @MessageTemplate = params['MessageTemplate']
1525
1558
  unless params['CallBack'].nil?
1526
1559
  @CallBack = CallBackInfo.new
@@ -1545,6 +1578,14 @@ module TencentCloud
1545
1578
  end
1546
1579
  end
1547
1580
  @MonitorObjectType = params['MonitorObjectType']
1581
+ unless params['Classifications'].nil?
1582
+ @Classifications = []
1583
+ params['Classifications'].each do |i|
1584
+ alarmclassification_tmp = AlarmClassification.new
1585
+ alarmclassification_tmp.deserialize(i)
1586
+ @Classifications << alarmclassification_tmp
1587
+ end
1588
+ end
1548
1589
  end
1549
1590
  end
1550
1591
 
@@ -2520,7 +2561,7 @@ module TencentCloud
2520
2561
  # @param HotPeriod: 0:关闭日志沉降。
2521
2562
  # 非0:开启日志沉降后标准存储的天数。HotPeriod需要大于等于7,且小于Period。仅在StorageType为 hot 时生效
2522
2563
  # @type HotPeriod: Integer
2523
- # @param IsWebTracking: webtracking开关; false: 关闭 true: 开启
2564
+ # @param IsWebTracking: 免鉴权开关; false: 关闭 true: 开启
2524
2565
  # @type IsWebTracking: Boolean
2525
2566
 
2526
2567
  attr_accessor :LogsetId, :TopicName, :PartitionCount, :Tags, :AutoSplit, :MaxSplitPartitions, :StorageType, :Period, :Describes, :HotPeriod, :IsWebTracking
@@ -6341,6 +6382,28 @@ module TencentCloud
6341
6382
  end
6342
6383
  end
6343
6384
 
6385
+ # 过滤器
6386
+ class MetricLabel < TencentCloud::Common::AbstractModel
6387
+ # @param Key: 指标名称
6388
+ # 注意:此字段可能返回 null,表示取不到有效值。
6389
+ # @type Key: String
6390
+ # @param Value: 指标内容
6391
+ # 注意:此字段可能返回 null,表示取不到有效值。
6392
+ # @type Value: String
6393
+
6394
+ attr_accessor :Key, :Value
6395
+
6396
+ def initialize(key=nil, value=nil)
6397
+ @Key = key
6398
+ @Value = value
6399
+ end
6400
+
6401
+ def deserialize(params)
6402
+ @Key = params['Key']
6403
+ @Value = params['Value']
6404
+ end
6405
+ end
6406
+
6344
6407
  # ModifyAlarmNotice请求参数结构体
6345
6408
  class ModifyAlarmNoticeRequest < TencentCloud::Common::AbstractModel
6346
6409
  # @param AlarmNoticeId: 通知渠道组ID。
@@ -6457,6 +6520,8 @@ module TencentCloud
6457
6520
  # @type AlarmTargets: Array
6458
6521
  # @param Status: 是否开启告警策略。
6459
6522
  # @type Status: Boolean
6523
+ # @param Enable: 是否开启告警策略。默认值为true
6524
+ # @type Enable: Boolean
6460
6525
  # @param MessageTemplate: 用户自定义告警内容
6461
6526
  # @type MessageTemplate: String
6462
6527
  # @param CallBack: 用户自定义回调
@@ -6467,13 +6532,20 @@ module TencentCloud
6467
6532
  # @type GroupTriggerStatus: Boolean
6468
6533
  # @param GroupTriggerCondition: 分组触发条件。
6469
6534
  # @type GroupTriggerCondition: Array
6535
+ # @param Tags: 标签描述列表,通过指定该参数可以同时绑定标签到相应的告警策略。最大支持10个标签键值对,并且不能有重复的键值对。
6536
+ # @type Tags: Array
6470
6537
  # @param MonitorObjectType: 监控对象类型。0:执行语句共用监控对象; 1:每个执行语句单独选择监控对象。
6471
- # <li> 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。
6538
+ # 当值为1时,AlarmTargets元素个数不能超过10个,AlarmTargets中的Number必须是从1开始的连续正整数,不能重复。
6472
6539
  # @type MonitorObjectType: Integer
6540
+ # @param Classifications: 告警附加分类信息列表。
6541
+ # Classifications元素个数不能超过20个。
6542
+ # Classifications元素的Key不能为空,不能重复,长度不能超过50个字符,符合正则 `^[a-z]([a-z0-9_]{0,49})$`。
6543
+ # Classifications元素的Value长度不能超过200个字符。
6544
+ # @type Classifications: Array
6473
6545
 
6474
- attr_accessor :AlarmId, :Name, :MonitorTime, :Condition, :AlarmLevel, :MultiConditions, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :AlarmTargets, :Status, :MessageTemplate, :CallBack, :Analysis, :GroupTriggerStatus, :GroupTriggerCondition, :MonitorObjectType
6546
+ attr_accessor :AlarmId, :Name, :MonitorTime, :Condition, :AlarmLevel, :MultiConditions, :TriggerCount, :AlarmPeriod, :AlarmNoticeIds, :AlarmTargets, :Status, :Enable, :MessageTemplate, :CallBack, :Analysis, :GroupTriggerStatus, :GroupTriggerCondition, :Tags, :MonitorObjectType, :Classifications
6475
6547
 
6476
- def initialize(alarmid=nil, name=nil, monitortime=nil, condition=nil, alarmlevel=nil, multiconditions=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, alarmtargets=nil, status=nil, messagetemplate=nil, callback=nil, analysis=nil, grouptriggerstatus=nil, grouptriggercondition=nil, monitorobjecttype=nil)
6548
+ def initialize(alarmid=nil, name=nil, monitortime=nil, condition=nil, alarmlevel=nil, multiconditions=nil, triggercount=nil, alarmperiod=nil, alarmnoticeids=nil, alarmtargets=nil, status=nil, enable=nil, messagetemplate=nil, callback=nil, analysis=nil, grouptriggerstatus=nil, grouptriggercondition=nil, tags=nil, monitorobjecttype=nil, classifications=nil)
6477
6549
  @AlarmId = alarmid
6478
6550
  @Name = name
6479
6551
  @MonitorTime = monitortime
@@ -6485,12 +6557,15 @@ module TencentCloud
6485
6557
  @AlarmNoticeIds = alarmnoticeids
6486
6558
  @AlarmTargets = alarmtargets
6487
6559
  @Status = status
6560
+ @Enable = enable
6488
6561
  @MessageTemplate = messagetemplate
6489
6562
  @CallBack = callback
6490
6563
  @Analysis = analysis
6491
6564
  @GroupTriggerStatus = grouptriggerstatus
6492
6565
  @GroupTriggerCondition = grouptriggercondition
6566
+ @Tags = tags
6493
6567
  @MonitorObjectType = monitorobjecttype
6568
+ @Classifications = classifications
6494
6569
  end
6495
6570
 
6496
6571
  def deserialize(params)
@@ -6522,6 +6597,7 @@ module TencentCloud
6522
6597
  end
6523
6598
  end
6524
6599
  @Status = params['Status']
6600
+ @Enable = params['Enable']
6525
6601
  @MessageTemplate = params['MessageTemplate']
6526
6602
  unless params['CallBack'].nil?
6527
6603
  @CallBack = CallBackInfo.new
@@ -6537,7 +6613,23 @@ module TencentCloud
6537
6613
  end
6538
6614
  @GroupTriggerStatus = params['GroupTriggerStatus']
6539
6615
  @GroupTriggerCondition = params['GroupTriggerCondition']
6616
+ unless params['Tags'].nil?
6617
+ @Tags = []
6618
+ params['Tags'].each do |i|
6619
+ tag_tmp = Tag.new
6620
+ tag_tmp.deserialize(i)
6621
+ @Tags << tag_tmp
6622
+ end
6623
+ end
6540
6624
  @MonitorObjectType = params['MonitorObjectType']
6625
+ unless params['Classifications'].nil?
6626
+ @Classifications = []
6627
+ params['Classifications'].each do |i|
6628
+ alarmclassification_tmp = AlarmClassification.new
6629
+ alarmclassification_tmp.deserialize(i)
6630
+ @Classifications << alarmclassification_tmp
6631
+ end
6632
+ end
6541
6633
  end
6542
6634
  end
6543
6635
 
@@ -8118,14 +8210,27 @@ module TencentCloud
8118
8210
  # @type BizType: Integer
8119
8211
  # @param MetricName: 指标名称
8120
8212
  # @type MetricName: String
8121
-
8122
- attr_accessor :TopicId, :Region, :BizType, :MetricName
8123
-
8124
- def initialize(topicid=nil, region=nil, biztype=nil, metricname=nil)
8213
+ # @param MetricNames: 指标名称
8214
+ # BizType为1时,优先使用MetricNames字段信息。多指标只能填充到MetricNames字段,单指标建议填充到MetricNames字段
8215
+ # @type MetricNames: Array
8216
+ # @param MetricLabels: 指标项
8217
+ # @type MetricLabels: Array
8218
+ # @param CustomTime: 自定义时间
8219
+ # @type CustomTime: String
8220
+ # @param CustomMetricLabels: 自定义标签
8221
+ # @type CustomMetricLabels: Array
8222
+
8223
+ attr_accessor :TopicId, :Region, :BizType, :MetricName, :MetricNames, :MetricLabels, :CustomTime, :CustomMetricLabels
8224
+
8225
+ def initialize(topicid=nil, region=nil, biztype=nil, metricname=nil, metricnames=nil, metriclabels=nil, customtime=nil, custommetriclabels=nil)
8125
8226
  @TopicId = topicid
8126
8227
  @Region = region
8127
8228
  @BizType = biztype
8128
8229
  @MetricName = metricname
8230
+ @MetricNames = metricnames
8231
+ @MetricLabels = metriclabels
8232
+ @CustomTime = customtime
8233
+ @CustomMetricLabels = custommetriclabels
8129
8234
  end
8130
8235
 
8131
8236
  def deserialize(params)
@@ -8133,6 +8238,17 @@ module TencentCloud
8133
8238
  @Region = params['Region']
8134
8239
  @BizType = params['BizType']
8135
8240
  @MetricName = params['MetricName']
8241
+ @MetricNames = params['MetricNames']
8242
+ @MetricLabels = params['MetricLabels']
8243
+ @CustomTime = params['CustomTime']
8244
+ unless params['CustomMetricLabels'].nil?
8245
+ @CustomMetricLabels = []
8246
+ params['CustomMetricLabels'].each do |i|
8247
+ metriclabel_tmp = MetricLabel.new
8248
+ metriclabel_tmp.deserialize(i)
8249
+ @CustomMetricLabels << metriclabel_tmp
8250
+ end
8251
+ end
8136
8252
  end
8137
8253
  end
8138
8254
 
@@ -8878,10 +8994,20 @@ module TencentCloud
8878
8994
  # 热存储为 hotPeriod, 冷存储则为 Period-hotPeriod。
8879
8995
  # 注意:此字段可能返回 null,表示取不到有效值。
8880
8996
  # @type HotPeriod: Integer
8997
+ # @param BizType: 主题类型。
8998
+ # - 0: 日志主题
8999
+ # - 1: 指标主题
9000
+ # 注意:此字段可能返回 null,表示取不到有效值。
9001
+ # @type BizType: Integer
9002
+ # @param IsWebTracking: 免鉴权开关。
9003
+ # - false: 关闭
9004
+ # - true: 开启
9005
+ # 注意:此字段可能返回 null,表示取不到有效值。
9006
+ # @type IsWebTracking: Boolean
8881
9007
 
8882
- attr_accessor :LogsetId, :TopicId, :TopicName, :PartitionCount, :Index, :AssumerName, :CreateTime, :Status, :Tags, :AutoSplit, :MaxSplitPartitions, :StorageType, :Period, :SubAssumerName, :Describes, :HotPeriod
9008
+ attr_accessor :LogsetId, :TopicId, :TopicName, :PartitionCount, :Index, :AssumerName, :CreateTime, :Status, :Tags, :AutoSplit, :MaxSplitPartitions, :StorageType, :Period, :SubAssumerName, :Describes, :HotPeriod, :BizType, :IsWebTracking
8883
9009
 
8884
- def initialize(logsetid=nil, topicid=nil, topicname=nil, partitioncount=nil, index=nil, assumername=nil, createtime=nil, status=nil, tags=nil, autosplit=nil, maxsplitpartitions=nil, storagetype=nil, period=nil, subassumername=nil, describes=nil, hotperiod=nil)
9010
+ def initialize(logsetid=nil, topicid=nil, topicname=nil, partitioncount=nil, index=nil, assumername=nil, createtime=nil, status=nil, tags=nil, autosplit=nil, maxsplitpartitions=nil, storagetype=nil, period=nil, subassumername=nil, describes=nil, hotperiod=nil, biztype=nil, iswebtracking=nil)
8885
9011
  @LogsetId = logsetid
8886
9012
  @TopicId = topicid
8887
9013
  @TopicName = topicname
@@ -8898,6 +9024,8 @@ module TencentCloud
8898
9024
  @SubAssumerName = subassumername
8899
9025
  @Describes = describes
8900
9026
  @HotPeriod = hotperiod
9027
+ @BizType = biztype
9028
+ @IsWebTracking = iswebtracking
8901
9029
  end
8902
9030
 
8903
9031
  def deserialize(params)
@@ -8924,6 +9052,8 @@ module TencentCloud
8924
9052
  @SubAssumerName = params['SubAssumerName']
8925
9053
  @Describes = params['Describes']
8926
9054
  @HotPeriod = params['HotPeriod']
9055
+ @BizType = params['BizType']
9056
+ @IsWebTracking = params['IsWebTracking']
8927
9057
  end
8928
9058
  end
8929
9059
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cls
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.710
4
+ version: 3.0.712
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-11-22 00:00:00.000000000 Z
11
+ date: 2023-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common