tencentcloud-sdk-monitor 1.0.260 → 1.0.263
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/client.rb +24 -0
- data/lib/v20180724/models.rb +397 -0
- 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: 459fa16a66f841f7a076d2ad700497acb695719e
|
4
|
+
data.tar.gz: 91976e5ec4af2bba35707051160ad66c11a9d544
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1625bfc1db6644df71fea7488db3c1901a7eef419b5beff7ec28d6225ef17c436dea04fdceb469f50d241ecbe972b08d6cdf76fefc26491ce1ce73467f3bd98
|
7
|
+
data.tar.gz: c7b42a37e0794928330974e21f9c49d4e5a15c42b80608d6944e86e5f586c1b3f1cdb2404dbc815a3fa3e0eb63556a5e758aeecf52d6f2a7e869d90ec57c9bb3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.263
|
data/lib/v20180724/client.rb
CHANGED
@@ -661,6 +661,30 @@ module TencentCloud
|
|
661
661
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
662
662
|
end
|
663
663
|
|
664
|
+
# 获取条件模板列表
|
665
|
+
|
666
|
+
# @param request: Request instance for DescribeConditionsTemplateList.
|
667
|
+
# @type request: :class:`Tencentcloud::monitor::V20180724::DescribeConditionsTemplateListRequest`
|
668
|
+
# @rtype: :class:`Tencentcloud::monitor::V20180724::DescribeConditionsTemplateListResponse`
|
669
|
+
def DescribeConditionsTemplateList(request)
|
670
|
+
body = send_request('DescribeConditionsTemplateList', request.serialize)
|
671
|
+
response = JSON.parse(body)
|
672
|
+
if response['Response'].key?('Error') == false
|
673
|
+
model = DescribeConditionsTemplateListResponse.new
|
674
|
+
model.deserialize(response['Response'])
|
675
|
+
model
|
676
|
+
else
|
677
|
+
code = response['Response']['Error']['Code']
|
678
|
+
message = response['Response']['Error']['Message']
|
679
|
+
reqid = response['Response']['RequestId']
|
680
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
681
|
+
end
|
682
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
683
|
+
raise e
|
684
|
+
rescue StandardError => e
|
685
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
686
|
+
end
|
687
|
+
|
664
688
|
# 云监控支持多种类型的监控,此接口列出支持的所有类型
|
665
689
|
|
666
690
|
# @param request: Request instance for DescribeMonitorTypes.
|
data/lib/v20180724/models.rb
CHANGED
@@ -837,6 +837,61 @@ module TencentCloud
|
|
837
837
|
end
|
838
838
|
end
|
839
839
|
|
840
|
+
# 告警条件
|
841
|
+
class Condition < TencentCloud::Common::AbstractModel
|
842
|
+
# @param AlarmNotifyPeriod: 告警通知频率
|
843
|
+
# @type AlarmNotifyPeriod: Integer
|
844
|
+
# @param AlarmNotifyType: 重复通知策略预定义(0 - 只告警一次, 1 - 指数告警,2 - 连接告警)
|
845
|
+
# @type AlarmNotifyType: Integer
|
846
|
+
# @param CalcType: 检测方式
|
847
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
848
|
+
# @type CalcType: String
|
849
|
+
# @param CalcValue: 检测值
|
850
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
851
|
+
# @type CalcValue: String
|
852
|
+
# @param ContinueTime: 持续时间
|
853
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
854
|
+
# @type ContinueTime: String
|
855
|
+
# @param MetricID: 指标ID
|
856
|
+
# @type MetricID: Integer
|
857
|
+
# @param MetricDisplayName: 指标展示名称(对外)
|
858
|
+
# @type MetricDisplayName: String
|
859
|
+
# @param Period: 周期
|
860
|
+
# @type Period: Integer
|
861
|
+
# @param RuleID: 规则ID
|
862
|
+
# @type RuleID: Integer
|
863
|
+
# @param Unit: 指标单位
|
864
|
+
# @type Unit: String
|
865
|
+
|
866
|
+
attr_accessor :AlarmNotifyPeriod, :AlarmNotifyType, :CalcType, :CalcValue, :ContinueTime, :MetricID, :MetricDisplayName, :Period, :RuleID, :Unit
|
867
|
+
|
868
|
+
def initialize(alarmnotifyperiod=nil, alarmnotifytype=nil, calctype=nil, calcvalue=nil, continuetime=nil, metricid=nil, metricdisplayname=nil, period=nil, ruleid=nil, unit=nil)
|
869
|
+
@AlarmNotifyPeriod = alarmnotifyperiod
|
870
|
+
@AlarmNotifyType = alarmnotifytype
|
871
|
+
@CalcType = calctype
|
872
|
+
@CalcValue = calcvalue
|
873
|
+
@ContinueTime = continuetime
|
874
|
+
@MetricID = metricid
|
875
|
+
@MetricDisplayName = metricdisplayname
|
876
|
+
@Period = period
|
877
|
+
@RuleID = ruleid
|
878
|
+
@Unit = unit
|
879
|
+
end
|
880
|
+
|
881
|
+
def deserialize(params)
|
882
|
+
@AlarmNotifyPeriod = params['AlarmNotifyPeriod']
|
883
|
+
@AlarmNotifyType = params['AlarmNotifyType']
|
884
|
+
@CalcType = params['CalcType']
|
885
|
+
@CalcValue = params['CalcValue']
|
886
|
+
@ContinueTime = params['ContinueTime']
|
887
|
+
@MetricID = params['MetricID']
|
888
|
+
@MetricDisplayName = params['MetricDisplayName']
|
889
|
+
@Period = params['Period']
|
890
|
+
@RuleID = params['RuleID']
|
891
|
+
@Unit = params['Unit']
|
892
|
+
end
|
893
|
+
end
|
894
|
+
|
840
895
|
# 告警条件模版
|
841
896
|
class ConditionsTemp < TencentCloud::Common::AbstractModel
|
842
897
|
# @param TemplateName: 模版名称
|
@@ -2148,6 +2203,8 @@ module TencentCloud
|
|
2148
2203
|
# 具体也可以参考下方的示例 2。
|
2149
2204
|
|
2150
2205
|
# 不同云产品参数示例详见 [维度信息Dimensions列表](https://cloud.tencent.com/document/product/248/50397)
|
2206
|
+
|
2207
|
+
# 注意:如果NeedCorrespondence传入1,即需要返回策略与实例对应关系,请传入不多于20个告警对象维度,否则容易请求超时
|
2151
2208
|
# @type Dimensions: String
|
2152
2209
|
# @param ReceiverUids: 根据接收人搜索,可以使用“访问管理”的 [拉取子用户 ListUsers](https://cloud.tencent.com/document/product/598/34587) 接口获取用户列表 或 [查询子用户 GetUser](https://cloud.tencent.com/document/product/598/34590) 接口查询子用户详情,此处填入返回结果中的 `Uid` 字段
|
2153
2210
|
# @type ReceiverUids: Array
|
@@ -2911,6 +2968,78 @@ module TencentCloud
|
|
2911
2968
|
end
|
2912
2969
|
end
|
2913
2970
|
|
2971
|
+
# DescribeConditionsTemplateList请求参数结构体
|
2972
|
+
class DescribeConditionsTemplateListRequest < TencentCloud::Common::AbstractModel
|
2973
|
+
# @param Module: 固定值,为"monitor"
|
2974
|
+
# @type Module: String
|
2975
|
+
# @param ViewName: 视图名,由 [DescribeAllNamespaces](https://cloud.tencent.com/document/product/248/48683) 获得。对于云产品监控,取接口出参的 QceNamespacesNew.N.Id,例如 cvm_device
|
2976
|
+
# @type ViewName: String
|
2977
|
+
# @param GroupName: 根据触发条件模板名称过滤查询
|
2978
|
+
# @type GroupName: String
|
2979
|
+
# @param GroupID: 根据触发条件模板ID过滤查询
|
2980
|
+
# @type GroupID: String
|
2981
|
+
# @param Limit: 分页参数,每页返回的数量,取值1~100,默认20
|
2982
|
+
# @type Limit: Integer
|
2983
|
+
# @param Offset: 分页参数,页偏移量,从0开始计数,默认0
|
2984
|
+
# @type Offset: Integer
|
2985
|
+
# @param UpdateTimeOrder: 指定按更新时间的排序方式,asc=升序, desc=降序
|
2986
|
+
# @type UpdateTimeOrder: String
|
2987
|
+
|
2988
|
+
attr_accessor :Module, :ViewName, :GroupName, :GroupID, :Limit, :Offset, :UpdateTimeOrder
|
2989
|
+
|
2990
|
+
def initialize(_module=nil, viewname=nil, groupname=nil, groupid=nil, limit=nil, offset=nil, updatetimeorder=nil)
|
2991
|
+
@Module = _module
|
2992
|
+
@ViewName = viewname
|
2993
|
+
@GroupName = groupname
|
2994
|
+
@GroupID = groupid
|
2995
|
+
@Limit = limit
|
2996
|
+
@Offset = offset
|
2997
|
+
@UpdateTimeOrder = updatetimeorder
|
2998
|
+
end
|
2999
|
+
|
3000
|
+
def deserialize(params)
|
3001
|
+
@Module = params['Module']
|
3002
|
+
@ViewName = params['ViewName']
|
3003
|
+
@GroupName = params['GroupName']
|
3004
|
+
@GroupID = params['GroupID']
|
3005
|
+
@Limit = params['Limit']
|
3006
|
+
@Offset = params['Offset']
|
3007
|
+
@UpdateTimeOrder = params['UpdateTimeOrder']
|
3008
|
+
end
|
3009
|
+
end
|
3010
|
+
|
3011
|
+
# DescribeConditionsTemplateList返回参数结构体
|
3012
|
+
class DescribeConditionsTemplateListResponse < TencentCloud::Common::AbstractModel
|
3013
|
+
# @param Total: 模板总数
|
3014
|
+
# @type Total: Integer
|
3015
|
+
# @param TemplateGroupList: 模板列表
|
3016
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3017
|
+
# @type TemplateGroupList: Array
|
3018
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3019
|
+
# @type RequestId: String
|
3020
|
+
|
3021
|
+
attr_accessor :Total, :TemplateGroupList, :RequestId
|
3022
|
+
|
3023
|
+
def initialize(total=nil, templategrouplist=nil, requestid=nil)
|
3024
|
+
@Total = total
|
3025
|
+
@TemplateGroupList = templategrouplist
|
3026
|
+
@RequestId = requestid
|
3027
|
+
end
|
3028
|
+
|
3029
|
+
def deserialize(params)
|
3030
|
+
@Total = params['Total']
|
3031
|
+
unless params['TemplateGroupList'].nil?
|
3032
|
+
@TemplateGroupList = []
|
3033
|
+
params['TemplateGroupList'].each do |i|
|
3034
|
+
templategroup_tmp = TemplateGroup.new
|
3035
|
+
templategroup_tmp.deserialize(i)
|
3036
|
+
@TemplateGroupList << templategroup_tmp
|
3037
|
+
end
|
3038
|
+
end
|
3039
|
+
@RequestId = params['RequestId']
|
3040
|
+
end
|
3041
|
+
end
|
3042
|
+
|
2914
3043
|
# DescribeMonitorTypes请求参数结构体
|
2915
3044
|
class DescribeMonitorTypesRequest < TencentCloud::Common::AbstractModel
|
2916
3045
|
# @param Module: 模块名,固定值 monitor
|
@@ -4688,6 +4817,40 @@ module TencentCloud
|
|
4688
4817
|
end
|
4689
4818
|
end
|
4690
4819
|
|
4820
|
+
# 事件告警条件
|
4821
|
+
class EventCondition < TencentCloud::Common::AbstractModel
|
4822
|
+
# @param AlarmNotifyPeriod: 告警通知频率
|
4823
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4824
|
+
# @type AlarmNotifyPeriod: String
|
4825
|
+
# @param AlarmNotifyType: 重复通知策略预定义(0 - 只告警一次, 1 - 指数告警,2 - 连接告警)
|
4826
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4827
|
+
# @type AlarmNotifyType: String
|
4828
|
+
# @param EventID: 事件ID
|
4829
|
+
# @type EventID: String
|
4830
|
+
# @param EventDisplayName: 事件展示名称(对外)
|
4831
|
+
# @type EventDisplayName: String
|
4832
|
+
# @param RuleID: 规则ID
|
4833
|
+
# @type RuleID: String
|
4834
|
+
|
4835
|
+
attr_accessor :AlarmNotifyPeriod, :AlarmNotifyType, :EventID, :EventDisplayName, :RuleID
|
4836
|
+
|
4837
|
+
def initialize(alarmnotifyperiod=nil, alarmnotifytype=nil, eventid=nil, eventdisplayname=nil, ruleid=nil)
|
4838
|
+
@AlarmNotifyPeriod = alarmnotifyperiod
|
4839
|
+
@AlarmNotifyType = alarmnotifytype
|
4840
|
+
@EventID = eventid
|
4841
|
+
@EventDisplayName = eventdisplayname
|
4842
|
+
@RuleID = ruleid
|
4843
|
+
end
|
4844
|
+
|
4845
|
+
def deserialize(params)
|
4846
|
+
@AlarmNotifyPeriod = params['AlarmNotifyPeriod']
|
4847
|
+
@AlarmNotifyType = params['AlarmNotifyType']
|
4848
|
+
@EventID = params['EventID']
|
4849
|
+
@EventDisplayName = params['EventDisplayName']
|
4850
|
+
@RuleID = params['RuleID']
|
4851
|
+
end
|
4852
|
+
end
|
4853
|
+
|
4691
4854
|
# GetMonitorData请求参数结构体
|
4692
4855
|
class GetMonitorDataRequest < TencentCloud::Common::AbstractModel
|
4693
4856
|
# @param Namespace: 命名空间,如QCE/CVM。各个云产品的详细命名空间说明请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档
|
@@ -5671,6 +5834,160 @@ module TencentCloud
|
|
5671
5834
|
end
|
5672
5835
|
end
|
5673
5836
|
|
5837
|
+
# 策略组信息
|
5838
|
+
class PolicyGroup < TencentCloud::Common::AbstractModel
|
5839
|
+
# @param CanSetDefault: 是否可设为默认告警策略
|
5840
|
+
# @type CanSetDefault: Boolean
|
5841
|
+
# @param GroupID: 告警策略组ID
|
5842
|
+
# @type GroupID: Integer
|
5843
|
+
# @param GroupName: 告警策略组名称
|
5844
|
+
# @type GroupName: String
|
5845
|
+
# @param InsertTime: 创建时间
|
5846
|
+
# @type InsertTime: Integer
|
5847
|
+
# @param IsDefault: 是否为默认告警策略
|
5848
|
+
# @type IsDefault: Integer
|
5849
|
+
# @param Enable: 告警策略启用状态
|
5850
|
+
# @type Enable: Boolean
|
5851
|
+
# @param LastEditUin: 最后修改人UIN
|
5852
|
+
# @type LastEditUin: Integer
|
5853
|
+
# @param NoShieldedInstanceCount: 未屏蔽的实例数
|
5854
|
+
# @type NoShieldedInstanceCount: Integer
|
5855
|
+
# @param ParentGroupID: 父策略组ID
|
5856
|
+
# @type ParentGroupID: Integer
|
5857
|
+
# @param ProjectID: 所属项目ID
|
5858
|
+
# @type ProjectID: Integer
|
5859
|
+
# @param ReceiverInfos: 告警接收对象信息
|
5860
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5861
|
+
# @type ReceiverInfos: Array
|
5862
|
+
# @param Remark: 备注信息
|
5863
|
+
# @type Remark: String
|
5864
|
+
# @param UpdateTime: 修改时间
|
5865
|
+
# @type UpdateTime: Integer
|
5866
|
+
# @param TotalInstanceCount: 总绑定实例数
|
5867
|
+
# @type TotalInstanceCount: Integer
|
5868
|
+
# @param ViewName: 视图
|
5869
|
+
# @type ViewName: String
|
5870
|
+
# @param IsUnionRule: 是否为与关系规则
|
5871
|
+
# @type IsUnionRule: Integer
|
5872
|
+
|
5873
|
+
attr_accessor :CanSetDefault, :GroupID, :GroupName, :InsertTime, :IsDefault, :Enable, :LastEditUin, :NoShieldedInstanceCount, :ParentGroupID, :ProjectID, :ReceiverInfos, :Remark, :UpdateTime, :TotalInstanceCount, :ViewName, :IsUnionRule
|
5874
|
+
|
5875
|
+
def initialize(cansetdefault=nil, groupid=nil, groupname=nil, inserttime=nil, isdefault=nil, enable=nil, lastedituin=nil, noshieldedinstancecount=nil, parentgroupid=nil, projectid=nil, receiverinfos=nil, remark=nil, updatetime=nil, totalinstancecount=nil, viewname=nil, isunionrule=nil)
|
5876
|
+
@CanSetDefault = cansetdefault
|
5877
|
+
@GroupID = groupid
|
5878
|
+
@GroupName = groupname
|
5879
|
+
@InsertTime = inserttime
|
5880
|
+
@IsDefault = isdefault
|
5881
|
+
@Enable = enable
|
5882
|
+
@LastEditUin = lastedituin
|
5883
|
+
@NoShieldedInstanceCount = noshieldedinstancecount
|
5884
|
+
@ParentGroupID = parentgroupid
|
5885
|
+
@ProjectID = projectid
|
5886
|
+
@ReceiverInfos = receiverinfos
|
5887
|
+
@Remark = remark
|
5888
|
+
@UpdateTime = updatetime
|
5889
|
+
@TotalInstanceCount = totalinstancecount
|
5890
|
+
@ViewName = viewname
|
5891
|
+
@IsUnionRule = isunionrule
|
5892
|
+
end
|
5893
|
+
|
5894
|
+
def deserialize(params)
|
5895
|
+
@CanSetDefault = params['CanSetDefault']
|
5896
|
+
@GroupID = params['GroupID']
|
5897
|
+
@GroupName = params['GroupName']
|
5898
|
+
@InsertTime = params['InsertTime']
|
5899
|
+
@IsDefault = params['IsDefault']
|
5900
|
+
@Enable = params['Enable']
|
5901
|
+
@LastEditUin = params['LastEditUin']
|
5902
|
+
@NoShieldedInstanceCount = params['NoShieldedInstanceCount']
|
5903
|
+
@ParentGroupID = params['ParentGroupID']
|
5904
|
+
@ProjectID = params['ProjectID']
|
5905
|
+
unless params['ReceiverInfos'].nil?
|
5906
|
+
@ReceiverInfos = []
|
5907
|
+
params['ReceiverInfos'].each do |i|
|
5908
|
+
policygroupreceiverinfo_tmp = PolicyGroupReceiverInfo.new
|
5909
|
+
policygroupreceiverinfo_tmp.deserialize(i)
|
5910
|
+
@ReceiverInfos << policygroupreceiverinfo_tmp
|
5911
|
+
end
|
5912
|
+
end
|
5913
|
+
@Remark = params['Remark']
|
5914
|
+
@UpdateTime = params['UpdateTime']
|
5915
|
+
@TotalInstanceCount = params['TotalInstanceCount']
|
5916
|
+
@ViewName = params['ViewName']
|
5917
|
+
@IsUnionRule = params['IsUnionRule']
|
5918
|
+
end
|
5919
|
+
end
|
5920
|
+
|
5921
|
+
# 2018版策略模板列表接收人信息
|
5922
|
+
class PolicyGroupReceiverInfo < TencentCloud::Common::AbstractModel
|
5923
|
+
# @param EndTime: 有效时段结束时间
|
5924
|
+
# @type EndTime: Integer
|
5925
|
+
# @param NeedSendNotice: 是否需要发送通知
|
5926
|
+
# @type NeedSendNotice: Integer
|
5927
|
+
# @param NotifyWay: 告警接收渠道
|
5928
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5929
|
+
# @type NotifyWay: Array
|
5930
|
+
# @param PersonInterval: 电话告警对个人间隔(秒)
|
5931
|
+
# @type PersonInterval: Integer
|
5932
|
+
# @param ReceiverGroupList: 消息接收组列表
|
5933
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5934
|
+
# @type ReceiverGroupList: Array
|
5935
|
+
# @param ReceiverType: 接受者类型
|
5936
|
+
# @type ReceiverType: String
|
5937
|
+
# @param ReceiverUserList: 接收人列表。通过平台接口查询到的接收人id列表
|
5938
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5939
|
+
# @type ReceiverUserList: Array
|
5940
|
+
# @param RecoverNotify: 告警恢复通知方式
|
5941
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5942
|
+
# @type RecoverNotify: Array
|
5943
|
+
# @param RoundInterval: 电话告警每轮间隔(秒)
|
5944
|
+
# @type RoundInterval: Integer
|
5945
|
+
# @param RoundNumber: 电话告警轮数
|
5946
|
+
# @type RoundNumber: Integer
|
5947
|
+
# @param SendFor: 电话告警通知时机。可选"OCCUR"(告警时通知),"RECOVER"(恢复时通知)
|
5948
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5949
|
+
# @type SendFor: Array
|
5950
|
+
# @param StartTime: 有效时段开始时间
|
5951
|
+
# @type StartTime: Integer
|
5952
|
+
# @param UIDList: 电话告警接收者uid
|
5953
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5954
|
+
# @type UIDList: Array
|
5955
|
+
|
5956
|
+
attr_accessor :EndTime, :NeedSendNotice, :NotifyWay, :PersonInterval, :ReceiverGroupList, :ReceiverType, :ReceiverUserList, :RecoverNotify, :RoundInterval, :RoundNumber, :SendFor, :StartTime, :UIDList
|
5957
|
+
|
5958
|
+
def initialize(endtime=nil, needsendnotice=nil, notifyway=nil, personinterval=nil, receivergrouplist=nil, receivertype=nil, receiveruserlist=nil, recovernotify=nil, roundinterval=nil, roundnumber=nil, sendfor=nil, starttime=nil, uidlist=nil)
|
5959
|
+
@EndTime = endtime
|
5960
|
+
@NeedSendNotice = needsendnotice
|
5961
|
+
@NotifyWay = notifyway
|
5962
|
+
@PersonInterval = personinterval
|
5963
|
+
@ReceiverGroupList = receivergrouplist
|
5964
|
+
@ReceiverType = receivertype
|
5965
|
+
@ReceiverUserList = receiveruserlist
|
5966
|
+
@RecoverNotify = recovernotify
|
5967
|
+
@RoundInterval = roundinterval
|
5968
|
+
@RoundNumber = roundnumber
|
5969
|
+
@SendFor = sendfor
|
5970
|
+
@StartTime = starttime
|
5971
|
+
@UIDList = uidlist
|
5972
|
+
end
|
5973
|
+
|
5974
|
+
def deserialize(params)
|
5975
|
+
@EndTime = params['EndTime']
|
5976
|
+
@NeedSendNotice = params['NeedSendNotice']
|
5977
|
+
@NotifyWay = params['NotifyWay']
|
5978
|
+
@PersonInterval = params['PersonInterval']
|
5979
|
+
@ReceiverGroupList = params['ReceiverGroupList']
|
5980
|
+
@ReceiverType = params['ReceiverType']
|
5981
|
+
@ReceiverUserList = params['ReceiverUserList']
|
5982
|
+
@RecoverNotify = params['RecoverNotify']
|
5983
|
+
@RoundInterval = params['RoundInterval']
|
5984
|
+
@RoundNumber = params['RoundNumber']
|
5985
|
+
@SendFor = params['SendFor']
|
5986
|
+
@StartTime = params['StartTime']
|
5987
|
+
@UIDList = params['UIDList']
|
5988
|
+
end
|
5989
|
+
end
|
5990
|
+
|
5674
5991
|
# 策略标签
|
5675
5992
|
class PolicyTag < TencentCloud::Common::AbstractModel
|
5676
5993
|
# @param Key: 标签Key
|
@@ -6357,6 +6674,86 @@ module TencentCloud
|
|
6357
6674
|
end
|
6358
6675
|
end
|
6359
6676
|
|
6677
|
+
# 模板列表
|
6678
|
+
class TemplateGroup < TencentCloud::Common::AbstractModel
|
6679
|
+
# @param Conditions: 指标告警规则
|
6680
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6681
|
+
# @type Conditions: Array
|
6682
|
+
# @param EventConditions: 事件告警规则
|
6683
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6684
|
+
# @type EventConditions: Array
|
6685
|
+
# @param PolicyGroups: 关联告警策略组
|
6686
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
6687
|
+
# @type PolicyGroups: Array
|
6688
|
+
# @param GroupID: 模板策略组ID
|
6689
|
+
# @type GroupID: Integer
|
6690
|
+
# @param GroupName: 模板策略组名称
|
6691
|
+
# @type GroupName: String
|
6692
|
+
# @param InsertTime: 创建时间
|
6693
|
+
# @type InsertTime: Integer
|
6694
|
+
# @param LastEditUin: 最后修改人UIN
|
6695
|
+
# @type LastEditUin: Integer
|
6696
|
+
# @param Remark: 备注
|
6697
|
+
# @type Remark: String
|
6698
|
+
# @param UpdateTime: 更新时间
|
6699
|
+
# @type UpdateTime: Integer
|
6700
|
+
# @param ViewName: 视图
|
6701
|
+
# @type ViewName: String
|
6702
|
+
# @param IsUnionRule: 是否为与关系
|
6703
|
+
# @type IsUnionRule: Integer
|
6704
|
+
|
6705
|
+
attr_accessor :Conditions, :EventConditions, :PolicyGroups, :GroupID, :GroupName, :InsertTime, :LastEditUin, :Remark, :UpdateTime, :ViewName, :IsUnionRule
|
6706
|
+
|
6707
|
+
def initialize(conditions=nil, eventconditions=nil, policygroups=nil, groupid=nil, groupname=nil, inserttime=nil, lastedituin=nil, remark=nil, updatetime=nil, viewname=nil, isunionrule=nil)
|
6708
|
+
@Conditions = conditions
|
6709
|
+
@EventConditions = eventconditions
|
6710
|
+
@PolicyGroups = policygroups
|
6711
|
+
@GroupID = groupid
|
6712
|
+
@GroupName = groupname
|
6713
|
+
@InsertTime = inserttime
|
6714
|
+
@LastEditUin = lastedituin
|
6715
|
+
@Remark = remark
|
6716
|
+
@UpdateTime = updatetime
|
6717
|
+
@ViewName = viewname
|
6718
|
+
@IsUnionRule = isunionrule
|
6719
|
+
end
|
6720
|
+
|
6721
|
+
def deserialize(params)
|
6722
|
+
unless params['Conditions'].nil?
|
6723
|
+
@Conditions = []
|
6724
|
+
params['Conditions'].each do |i|
|
6725
|
+
condition_tmp = Condition.new
|
6726
|
+
condition_tmp.deserialize(i)
|
6727
|
+
@Conditions << condition_tmp
|
6728
|
+
end
|
6729
|
+
end
|
6730
|
+
unless params['EventConditions'].nil?
|
6731
|
+
@EventConditions = []
|
6732
|
+
params['EventConditions'].each do |i|
|
6733
|
+
eventcondition_tmp = EventCondition.new
|
6734
|
+
eventcondition_tmp.deserialize(i)
|
6735
|
+
@EventConditions << eventcondition_tmp
|
6736
|
+
end
|
6737
|
+
end
|
6738
|
+
unless params['PolicyGroups'].nil?
|
6739
|
+
@PolicyGroups = []
|
6740
|
+
params['PolicyGroups'].each do |i|
|
6741
|
+
policygroup_tmp = PolicyGroup.new
|
6742
|
+
policygroup_tmp.deserialize(i)
|
6743
|
+
@PolicyGroups << policygroup_tmp
|
6744
|
+
end
|
6745
|
+
end
|
6746
|
+
@GroupID = params['GroupID']
|
6747
|
+
@GroupName = params['GroupName']
|
6748
|
+
@InsertTime = params['InsertTime']
|
6749
|
+
@LastEditUin = params['LastEditUin']
|
6750
|
+
@Remark = params['Remark']
|
6751
|
+
@UpdateTime = params['UpdateTime']
|
6752
|
+
@ViewName = params['ViewName']
|
6753
|
+
@IsUnionRule = params['IsUnionRule']
|
6754
|
+
end
|
6755
|
+
end
|
6756
|
+
|
6360
6757
|
# 云监控告警通知模板 - 回调通知详情
|
6361
6758
|
class URLNotice < TencentCloud::Common::AbstractModel
|
6362
6759
|
# @param URL: 回调 url(限长256字符)
|
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: 1.0.
|
4
|
+
version: 1.0.263
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|