tencentcloud-sdk-monitor 3.0.519 → 3.0.521
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180724/models.rb +100 -23
- 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: f13da2401fcc5684025bb24f2c45fc8e4cd7b6f2
|
4
|
+
data.tar.gz: c618feb49c30c1989e04ec661b77e622be857aa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8de841a64ff53a315da6f15558556db62d66cabed98ca66264b4900a3179a13043abb314f4a533f45e66abb8b5eeadb4383700795bfc34981d93807fba165a8f
|
7
|
+
data.tar.gz: cd79694b9687ed05ef04102a875ee7f2db37de41255d92bf5fec3a8c5de72d284b15d52dfab14b1a407790c5807bbb6430db0b12b579aeff115437ac4e63154e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.521
|
data/lib/v20180724/models.rb
CHANGED
@@ -41,7 +41,7 @@ module TencentCloud
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
#
|
44
|
+
# 通知模板ID及通知等级列表,["Remind","Serious"]表示该通知模板仅接收提醒和严重类别的告警
|
45
45
|
class AlarmHierarchicalNotice < TencentCloud::Common::AbstractModel
|
46
46
|
# @param NoticeId: 通知模板ID
|
47
47
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
@@ -284,7 +284,7 @@ module TencentCloud
|
|
284
284
|
# @param CLSNotices: 推送cls渠道
|
285
285
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
286
286
|
# @type CLSNotices: Array
|
287
|
-
# @param Tags:
|
287
|
+
# @param Tags: 通知模板绑定的标签
|
288
288
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
289
289
|
# @type Tags: Array
|
290
290
|
|
@@ -580,18 +580,22 @@ module TencentCloud
|
|
580
580
|
|
581
581
|
# 告警策略指标触发条件
|
582
582
|
class AlarmPolicyCondition < TencentCloud::Common::AbstractModel
|
583
|
-
# @param IsUnionRule:
|
583
|
+
# @param IsUnionRule: 告警触发条件的判断方式. 0: 任意; 1: 全部; 2: 复合. 当取值为2的时候为复合告警,与参数 ComplexExpression 配合使用.
|
584
584
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
585
585
|
# @type IsUnionRule: Integer
|
586
586
|
# @param Rules: 告警触发条件列表
|
587
587
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
588
588
|
# @type Rules: Array
|
589
|
+
# @param ComplexExpression: 复合告警触发条件的判断表达式,当 IsUnionRule 取值为2的时候有效. 其作用是描述多个触发条件需要满足表达式求值为True时才算是满足告警条件.
|
590
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
591
|
+
# @type ComplexExpression: String
|
589
592
|
|
590
|
-
attr_accessor :IsUnionRule, :Rules
|
593
|
+
attr_accessor :IsUnionRule, :Rules, :ComplexExpression
|
591
594
|
|
592
|
-
def initialize(isunionrule=nil, rules=nil)
|
595
|
+
def initialize(isunionrule=nil, rules=nil, complexexpression=nil)
|
593
596
|
@IsUnionRule = isunionrule
|
594
597
|
@Rules = rules
|
598
|
+
@ComplexExpression = complexexpression
|
595
599
|
end
|
596
600
|
|
597
601
|
def deserialize(params)
|
@@ -604,6 +608,7 @@ module TencentCloud
|
|
604
608
|
@Rules << alarmpolicyrule_tmp
|
605
609
|
end
|
606
610
|
end
|
611
|
+
@ComplexExpression = params['ComplexExpression']
|
607
612
|
end
|
608
613
|
end
|
609
614
|
|
@@ -1274,7 +1279,7 @@ module TencentCloud
|
|
1274
1279
|
# @type URLNotices: Array
|
1275
1280
|
# @param CLSNotices: 推送CLS日志服务的操作 最多1个
|
1276
1281
|
# @type CLSNotices: Array
|
1277
|
-
# @param Tags:
|
1282
|
+
# @param Tags: 模板绑定的标签
|
1278
1283
|
# @type Tags: Array
|
1279
1284
|
|
1280
1285
|
attr_accessor :Module, :Name, :NoticeType, :NoticeLanguage, :UserNotices, :URLNotices, :CLSNotices, :Tags
|
@@ -1380,7 +1385,7 @@ module TencentCloud
|
|
1380
1385
|
# @type Filter: :class:`Tencentcloud::Monitor.v20180724.models.AlarmPolicyFilter`
|
1381
1386
|
# @param GroupBy: 聚合维度列表,指定按哪些维度 key 来做 group by
|
1382
1387
|
# @type GroupBy: Array
|
1383
|
-
# @param Tags:
|
1388
|
+
# @param Tags: 模板绑定的标签
|
1384
1389
|
# @type Tags: Array
|
1385
1390
|
# @param LogAlarmReqInfo: 日志告警信息
|
1386
1391
|
# @type LogAlarmReqInfo: :class:`Tencentcloud::Monitor.v20180724.models.LogAlarmReq`
|
@@ -1818,7 +1823,7 @@ module TencentCloud
|
|
1818
1823
|
# @type CalcPeriod: Integer
|
1819
1824
|
# @param ContinuePeriod: 持续几个检测周期触发规则会告警
|
1820
1825
|
# @type ContinuePeriod: Integer
|
1821
|
-
# @param RuleId:
|
1826
|
+
# @param RuleId: 如果通过模板创建,需要传入模板中该指标的对应RuleId
|
1822
1827
|
# @type RuleId: Integer
|
1823
1828
|
|
1824
1829
|
attr_accessor :MetricId, :AlarmNotifyType, :AlarmNotifyPeriod, :CalcType, :CalcValue, :CalcPeriod, :ContinuePeriod, :RuleId
|
@@ -1854,7 +1859,7 @@ module TencentCloud
|
|
1854
1859
|
# @type AlarmNotifyType: Integer
|
1855
1860
|
# @param AlarmNotifyPeriod: 告警发送周期单位秒。<0 不触发, 0 只触发一次, >0 每隔triggerTime秒触发一次
|
1856
1861
|
# @type AlarmNotifyPeriod: Integer
|
1857
|
-
# @param RuleId:
|
1862
|
+
# @param RuleId: 如果通过模板创建,需要传入模板中该指标的对应RuleId
|
1858
1863
|
# @type RuleId: Integer
|
1859
1864
|
|
1860
1865
|
attr_accessor :EventId, :AlarmNotifyType, :AlarmNotifyPeriod, :RuleId
|
@@ -1880,11 +1885,11 @@ module TencentCloud
|
|
1880
1885
|
# @type GroupName: String
|
1881
1886
|
# @param Module: 固定值,为"monitor"
|
1882
1887
|
# @type Module: String
|
1883
|
-
# @param ViewName:
|
1888
|
+
# @param ViewName: 策略组所属视图的名称,若通过模板创建,可不传入
|
1884
1889
|
# @type ViewName: String
|
1885
1890
|
# @param ProjectId: 策略组所属项目Id,会进行鉴权操作
|
1886
1891
|
# @type ProjectId: Integer
|
1887
|
-
# @param ConditionTempGroupId:
|
1892
|
+
# @param ConditionTempGroupId: 模板策略组Id, 通过模板创建时才需要传
|
1888
1893
|
# @type ConditionTempGroupId: Integer
|
1889
1894
|
# @param IsShielded: 是否屏蔽策略组,0表示不屏蔽,1表示屏蔽。不填默认为0
|
1890
1895
|
# @type IsShielded: Integer
|
@@ -1896,7 +1901,7 @@ module TencentCloud
|
|
1896
1901
|
# @type Conditions: Array
|
1897
1902
|
# @param EventConditions: 策略组中的事件告警规则
|
1898
1903
|
# @type EventConditions: Array
|
1899
|
-
# @param BackEndCall: 是否为后端调用。当且仅当值为1
|
1904
|
+
# @param BackEndCall: 是否为后端调用。当且仅当值为1时,后台拉取策略模板中的规则填充入Conditions以及EventConditions字段
|
1900
1905
|
# @type BackEndCall: Integer
|
1901
1906
|
# @param IsUnionRule: 指标告警规则的且或关系,0表示或规则(满足任意规则就告警),1表示且规则(满足所有规则才告警)
|
1902
1907
|
# @type IsUnionRule: Integer
|
@@ -3795,7 +3800,7 @@ module TencentCloud
|
|
3795
3800
|
# @type GroupIds: Array
|
3796
3801
|
# @param NoticeIds: 根据通知模板 id 过滤,空数组/不传则不过滤
|
3797
3802
|
# @type NoticeIds: Array
|
3798
|
-
# @param Tags:
|
3803
|
+
# @param Tags: 模板根据标签过滤
|
3799
3804
|
# @type Tags: Array
|
3800
3805
|
|
3801
3806
|
attr_accessor :Module, :PageNumber, :PageSize, :Order, :OwnerUid, :Name, :ReceiverType, :UserIds, :GroupIds, :NoticeIds, :Tags
|
@@ -5400,10 +5405,13 @@ module TencentCloud
|
|
5400
5405
|
# @param SupportRegions: 支持该策略类型的地域列表
|
5401
5406
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
5402
5407
|
# @type SupportRegions: Array
|
5408
|
+
# @param DeprecatingInfo: 弃用信息
|
5409
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5410
|
+
# @type DeprecatingInfo: :class:`Tencentcloud::Monitor.v20180724.models.DescribePolicyConditionListResponseDeprecatingInfo`
|
5403
5411
|
|
5404
|
-
attr_accessor :PolicyViewName, :EventMetrics, :IsSupportMultiRegion, :Metrics, :Name, :SortId, :SupportDefault, :SupportRegions
|
5412
|
+
attr_accessor :PolicyViewName, :EventMetrics, :IsSupportMultiRegion, :Metrics, :Name, :SortId, :SupportDefault, :SupportRegions, :DeprecatingInfo
|
5405
5413
|
|
5406
|
-
def initialize(policyviewname=nil, eventmetrics=nil, issupportmultiregion=nil, metrics=nil, name=nil, sortid=nil, supportdefault=nil, supportregions=nil)
|
5414
|
+
def initialize(policyviewname=nil, eventmetrics=nil, issupportmultiregion=nil, metrics=nil, name=nil, sortid=nil, supportdefault=nil, supportregions=nil, deprecatinginfo=nil)
|
5407
5415
|
@PolicyViewName = policyviewname
|
5408
5416
|
@EventMetrics = eventmetrics
|
5409
5417
|
@IsSupportMultiRegion = issupportmultiregion
|
@@ -5412,6 +5420,7 @@ module TencentCloud
|
|
5412
5420
|
@SortId = sortid
|
5413
5421
|
@SupportDefault = supportdefault
|
5414
5422
|
@SupportRegions = supportregions
|
5423
|
+
@DeprecatingInfo = deprecatinginfo
|
5415
5424
|
end
|
5416
5425
|
|
5417
5426
|
def deserialize(params)
|
@@ -5437,6 +5446,10 @@ module TencentCloud
|
|
5437
5446
|
@SortId = params['SortId']
|
5438
5447
|
@SupportDefault = params['SupportDefault']
|
5439
5448
|
@SupportRegions = params['SupportRegions']
|
5449
|
+
unless params['DeprecatingInfo'].nil?
|
5450
|
+
@DeprecatingInfo = DescribePolicyConditionListResponseDeprecatingInfo.new
|
5451
|
+
@DeprecatingInfo.deserialize(params['DeprecatingInfo'])
|
5452
|
+
end
|
5440
5453
|
end
|
5441
5454
|
end
|
5442
5455
|
|
@@ -5790,6 +5803,33 @@ module TencentCloud
|
|
5790
5803
|
end
|
5791
5804
|
end
|
5792
5805
|
|
5806
|
+
# DescribePolicyConditionListResponseDeprecatingInfo
|
5807
|
+
class DescribePolicyConditionListResponseDeprecatingInfo < TencentCloud::Common::AbstractModel
|
5808
|
+
# @param Hidden: 是否隐藏
|
5809
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5810
|
+
# @type Hidden: Boolean
|
5811
|
+
# @param NewViewNames: 新视图名称
|
5812
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5813
|
+
# @type NewViewNames: Array
|
5814
|
+
# @param Description: 描述
|
5815
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5816
|
+
# @type Description: String
|
5817
|
+
|
5818
|
+
attr_accessor :Hidden, :NewViewNames, :Description
|
5819
|
+
|
5820
|
+
def initialize(hidden=nil, newviewnames=nil, description=nil)
|
5821
|
+
@Hidden = hidden
|
5822
|
+
@NewViewNames = newviewnames
|
5823
|
+
@Description = description
|
5824
|
+
end
|
5825
|
+
|
5826
|
+
def deserialize(params)
|
5827
|
+
@Hidden = params['Hidden']
|
5828
|
+
@NewViewNames = params['NewViewNames']
|
5829
|
+
@Description = params['Description']
|
5830
|
+
end
|
5831
|
+
end
|
5832
|
+
|
5793
5833
|
# 查询策略输出的用户回调信息
|
5794
5834
|
class DescribePolicyGroupInfoCallback < TencentCloud::Common::AbstractModel
|
5795
5835
|
# @param CallbackUrl: 用户回调接口地址
|
@@ -6677,15 +6717,15 @@ module TencentCloud
|
|
6677
6717
|
class DescribeProductEventListRequest < TencentCloud::Common::AbstractModel
|
6678
6718
|
# @param Module: 接口模块名,固定值"monitor"
|
6679
6719
|
# @type Module: String
|
6680
|
-
# @param ProductName:
|
6720
|
+
# @param ProductName: 产品类型过滤,例如"cvm"表示云服务器
|
6681
6721
|
# @type ProductName: Array
|
6682
|
-
# @param EventName:
|
6722
|
+
# @param EventName: 事件名称过滤,例如"guest_reboot"表示机器重启
|
6683
6723
|
# @type EventName: Array
|
6684
|
-
# @param InstanceId:
|
6724
|
+
# @param InstanceId: 影响对象,例如"ins-19708ino"
|
6685
6725
|
# @type InstanceId: Array
|
6686
|
-
# @param Dimensions:
|
6726
|
+
# @param Dimensions: 维度过滤,例如外网IP:10.0.0.1
|
6687
6727
|
# @type Dimensions: Array
|
6688
|
-
# @param RegionList:
|
6728
|
+
# @param RegionList: 产品事件地域过滤参数,例如gz,各地域缩写可参见[地域列表](https://cloud.tencent.com/document/product/248/50863)
|
6689
6729
|
# @type RegionList: Array
|
6690
6730
|
# @param Type: 事件类型过滤,取值范围["status_change","abnormal"],分别表示状态变更、异常事件
|
6691
6731
|
# @type Type: Array
|
@@ -7104,16 +7144,53 @@ module TencentCloud
|
|
7104
7144
|
|
7105
7145
|
# DescribePrometheusConfig返回参数结构体
|
7106
7146
|
class DescribePrometheusConfigResponse < TencentCloud::Common::AbstractModel
|
7147
|
+
# @param Config: 全局配置
|
7148
|
+
# @type Config: String
|
7149
|
+
# @param ServiceMonitors: ServiceMonitor配置
|
7150
|
+
# @type ServiceMonitors: Array
|
7151
|
+
# @param PodMonitors: PodMonitor配置
|
7152
|
+
# @type PodMonitors: Array
|
7153
|
+
# @param RawJobs: 原生Job
|
7154
|
+
# @type RawJobs: Array
|
7107
7155
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7108
7156
|
# @type RequestId: String
|
7109
7157
|
|
7110
|
-
attr_accessor :RequestId
|
7158
|
+
attr_accessor :Config, :ServiceMonitors, :PodMonitors, :RawJobs, :RequestId
|
7111
7159
|
|
7112
|
-
def initialize(requestid=nil)
|
7160
|
+
def initialize(config=nil, servicemonitors=nil, podmonitors=nil, rawjobs=nil, requestid=nil)
|
7161
|
+
@Config = config
|
7162
|
+
@ServiceMonitors = servicemonitors
|
7163
|
+
@PodMonitors = podmonitors
|
7164
|
+
@RawJobs = rawjobs
|
7113
7165
|
@RequestId = requestid
|
7114
7166
|
end
|
7115
7167
|
|
7116
7168
|
def deserialize(params)
|
7169
|
+
@Config = params['Config']
|
7170
|
+
unless params['ServiceMonitors'].nil?
|
7171
|
+
@ServiceMonitors = []
|
7172
|
+
params['ServiceMonitors'].each do |i|
|
7173
|
+
prometheusconfigitem_tmp = PrometheusConfigItem.new
|
7174
|
+
prometheusconfigitem_tmp.deserialize(i)
|
7175
|
+
@ServiceMonitors << prometheusconfigitem_tmp
|
7176
|
+
end
|
7177
|
+
end
|
7178
|
+
unless params['PodMonitors'].nil?
|
7179
|
+
@PodMonitors = []
|
7180
|
+
params['PodMonitors'].each do |i|
|
7181
|
+
prometheusconfigitem_tmp = PrometheusConfigItem.new
|
7182
|
+
prometheusconfigitem_tmp.deserialize(i)
|
7183
|
+
@PodMonitors << prometheusconfigitem_tmp
|
7184
|
+
end
|
7185
|
+
end
|
7186
|
+
unless params['RawJobs'].nil?
|
7187
|
+
@RawJobs = []
|
7188
|
+
params['RawJobs'].each do |i|
|
7189
|
+
prometheusconfigitem_tmp = PrometheusConfigItem.new
|
7190
|
+
prometheusconfigitem_tmp.deserialize(i)
|
7191
|
+
@RawJobs << prometheusconfigitem_tmp
|
7192
|
+
end
|
7193
|
+
end
|
7117
7194
|
@RequestId = params['RequestId']
|
7118
7195
|
end
|
7119
7196
|
end
|
@@ -10520,7 +10597,7 @@ module TencentCloud
|
|
10520
10597
|
end
|
10521
10598
|
end
|
10522
10599
|
|
10523
|
-
#
|
10600
|
+
# 通知模板与策略绑定关系
|
10524
10601
|
class NoticeBindPolicys < TencentCloud::Common::AbstractModel
|
10525
10602
|
# @param NoticeId: 告警通知模板 ID
|
10526
10603
|
# @type NoticeId: String
|
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.
|
4
|
+
version: 3.0.521
|
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-03-
|
11
|
+
date: 2023-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|