tencentcloud-sdk-monitor 3.0.723 → 3.0.724

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/v20180724/models.rb +71 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 171bd32834dbe834575bc2e62c65c133fb44af31
4
- data.tar.gz: c64dd6b73c00f0761d169f3b7ef5ed502f2893bf
3
+ metadata.gz: 4cddeeeb21929e2f8e1e7a05351854938d3f6925
4
+ data.tar.gz: 7f2cb73aa43ed5ac96dad0d843b45837f71de7cf
5
5
  SHA512:
6
- metadata.gz: 836891b350b82d2418c0ba4c933e2a1f143150ed23cc0113601c8d477d6ac0fcc0206f8e870e9225590a0c8a76d43e5cf40b1066359663219808ad44b35dd9a2
7
- data.tar.gz: 432e54131dd452e96ee019a3b631b6071fa6c18dd7373fa84928de0003668b8f2a8f831b55dbee086cf2a5d436eb4bfb660787118071ef8663ec9f8624a1aa1b
6
+ metadata.gz: 8949ff0115c5ed5184ec33bb4b5b87f997fd6b79d9669d31d383ea957ac1d0c29ef2ffafc4ee2c4fa9e1fe66005f44925fd32eafec6d04892ae9991587959795
7
+ data.tar.gz: 94f2a7b320ead220d0b89474bc5e2a5b3af5e5bb3565ba73f351799db8c294244fd623a35b181f319d8790d64c2fc0d5718b51b8f8475788fc0780194fdd98ee
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.723
1
+ 3.0.724
@@ -17,6 +17,33 @@
17
17
  module TencentCloud
18
18
  module Monitor
19
19
  module V20180724
20
+ # 策略过滤条件
21
+ class AlarmConditionFilter < TencentCloud::Common::AbstractModel
22
+ # @param Type: 类型
23
+ # 注意:此字段可能返回 null,表示取不到有效值。
24
+ # @type Type: String
25
+ # @param Expression: 表达式
26
+ # 注意:此字段可能返回 null,表示取不到有效值。
27
+ # @type Expression: String
28
+ # @param Dimensions: 过滤条件
29
+ # 注意:此字段可能返回 null,表示取不到有效值。
30
+ # @type Dimensions: String
31
+
32
+ attr_accessor :Type, :Expression, :Dimensions
33
+
34
+ def initialize(type=nil, expression=nil, dimensions=nil)
35
+ @Type = type
36
+ @Expression = expression
37
+ @Dimensions = dimensions
38
+ end
39
+
40
+ def deserialize(params)
41
+ @Type = params['Type']
42
+ @Expression = params['Expression']
43
+ @Dimensions = params['Dimensions']
44
+ end
45
+ end
46
+
20
47
  # 告警事件
21
48
  class AlarmEvent < TencentCloud::Common::AbstractModel
22
49
  # @param EventName: 事件名
@@ -41,6 +68,28 @@ module TencentCloud
41
68
  end
42
69
  end
43
70
 
71
+ # 聚合条件
72
+ class AlarmGroupByItem < TencentCloud::Common::AbstractModel
73
+ # @param Id: Item Id
74
+ # 注意:此字段可能返回 null,表示取不到有效值。
75
+ # @type Id: String
76
+ # @param Name: 名称
77
+ # 注意:此字段可能返回 null,表示取不到有效值。
78
+ # @type Name: String
79
+
80
+ attr_accessor :Id, :Name
81
+
82
+ def initialize(id=nil, name=nil)
83
+ @Id = id
84
+ @Name = name
85
+ end
86
+
87
+ def deserialize(params)
88
+ @Id = params['Id']
89
+ @Name = params['Name']
90
+ end
91
+ end
92
+
44
93
  # 通知模板ID及通知等级列表,["Remind","Serious"]表示该通知模板仅接收提醒和严重类别的告警
45
94
  class AlarmHierarchicalNotice < TencentCloud::Common::AbstractModel
46
95
  # @param NoticeId: 通知模板ID
@@ -488,6 +537,12 @@ module TencentCloud
488
537
  # @param TagInstances: 标签
489
538
  # 注意:此字段可能返回 null,表示取不到有效值。
490
539
  # @type TagInstances: Array
540
+ # @param Filter: 过滤条件
541
+ # 注意:此字段可能返回 null,表示取不到有效值。
542
+ # @type Filter: :class:`Tencentcloud::Monitor.v20180724.models.AlarmConditionFilter`
543
+ # @param GroupBy: 聚合条件
544
+ # 注意:此字段可能返回 null,表示取不到有效值。
545
+ # @type GroupBy: Array
491
546
  # @param FilterDimensionsParam: 策略关联的过滤维度信息
492
547
  # 注意:此字段可能返回 null,表示取不到有效值。
493
548
  # @type FilterDimensionsParam: String
@@ -510,9 +565,9 @@ module TencentCloud
510
565
  # 注意:此字段可能返回 null,表示取不到有效值。
511
566
  # @type IsSupportAlarmTag: Integer
512
567
 
513
- attr_accessor :PolicyId, :PolicyName, :Remark, :MonitorType, :Enable, :UseSum, :ProjectId, :ProjectName, :Namespace, :ConditionTemplateId, :Condition, :EventCondition, :NoticeIds, :Notices, :TriggerTasks, :ConditionsTemp, :LastEditUin, :UpdateTime, :InsertTime, :Region, :NamespaceShowName, :IsDefault, :CanSetDefault, :InstanceGroupId, :InstanceSum, :InstanceGroupName, :RuleType, :OriginId, :TagInstances, :FilterDimensionsParam, :IsOneClick, :OneClickStatus, :AdvancedMetricNumber, :IsBindAll, :Tags, :IsSupportAlarmTag
568
+ attr_accessor :PolicyId, :PolicyName, :Remark, :MonitorType, :Enable, :UseSum, :ProjectId, :ProjectName, :Namespace, :ConditionTemplateId, :Condition, :EventCondition, :NoticeIds, :Notices, :TriggerTasks, :ConditionsTemp, :LastEditUin, :UpdateTime, :InsertTime, :Region, :NamespaceShowName, :IsDefault, :CanSetDefault, :InstanceGroupId, :InstanceSum, :InstanceGroupName, :RuleType, :OriginId, :TagInstances, :Filter, :GroupBy, :FilterDimensionsParam, :IsOneClick, :OneClickStatus, :AdvancedMetricNumber, :IsBindAll, :Tags, :IsSupportAlarmTag
514
569
 
515
- def initialize(policyid=nil, policyname=nil, remark=nil, monitortype=nil, enable=nil, usesum=nil, projectid=nil, projectname=nil, namespace=nil, conditiontemplateid=nil, condition=nil, eventcondition=nil, noticeids=nil, notices=nil, triggertasks=nil, conditionstemp=nil, lastedituin=nil, updatetime=nil, inserttime=nil, region=nil, namespaceshowname=nil, isdefault=nil, cansetdefault=nil, instancegroupid=nil, instancesum=nil, instancegroupname=nil, ruletype=nil, originid=nil, taginstances=nil, filterdimensionsparam=nil, isoneclick=nil, oneclickstatus=nil, advancedmetricnumber=nil, isbindall=nil, tags=nil, issupportalarmtag=nil)
570
+ def initialize(policyid=nil, policyname=nil, remark=nil, monitortype=nil, enable=nil, usesum=nil, projectid=nil, projectname=nil, namespace=nil, conditiontemplateid=nil, condition=nil, eventcondition=nil, noticeids=nil, notices=nil, triggertasks=nil, conditionstemp=nil, lastedituin=nil, updatetime=nil, inserttime=nil, region=nil, namespaceshowname=nil, isdefault=nil, cansetdefault=nil, instancegroupid=nil, instancesum=nil, instancegroupname=nil, ruletype=nil, originid=nil, taginstances=nil, filter=nil, groupby=nil, filterdimensionsparam=nil, isoneclick=nil, oneclickstatus=nil, advancedmetricnumber=nil, isbindall=nil, tags=nil, issupportalarmtag=nil)
516
571
  @PolicyId = policyid
517
572
  @PolicyName = policyname
518
573
  @Remark = remark
@@ -542,6 +597,8 @@ module TencentCloud
542
597
  @RuleType = ruletype
543
598
  @OriginId = originid
544
599
  @TagInstances = taginstances
600
+ @Filter = filter
601
+ @GroupBy = groupby
545
602
  @FilterDimensionsParam = filterdimensionsparam
546
603
  @IsOneClick = isoneclick
547
604
  @OneClickStatus = oneclickstatus
@@ -611,6 +668,18 @@ module TencentCloud
611
668
  @TagInstances << taginstance_tmp
612
669
  end
613
670
  end
671
+ unless params['Filter'].nil?
672
+ @Filter = AlarmConditionFilter.new
673
+ @Filter.deserialize(params['Filter'])
674
+ end
675
+ unless params['GroupBy'].nil?
676
+ @GroupBy = []
677
+ params['GroupBy'].each do |i|
678
+ alarmgroupbyitem_tmp = AlarmGroupByItem.new
679
+ alarmgroupbyitem_tmp.deserialize(i)
680
+ @GroupBy << alarmgroupbyitem_tmp
681
+ end
682
+ end
614
683
  @FilterDimensionsParam = params['FilterDimensionsParam']
615
684
  @IsOneClick = params['IsOneClick']
616
685
  @OneClickStatus = params['OneClickStatus']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.723
4
+ version: 3.0.724
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-12-07 00:00:00.000000000 Z
11
+ date: 2023-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common