Class: TencentCloud::Monitor::V20180724::UpdatePrometheusAlertGroupRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::UpdatePrometheusAlertGroupRequest
- Defined in:
- lib/v20180724/models.rb
Overview
UpdatePrometheusAlertGroup请求参数结构体
Instance Attribute Summary collapse
-
#AMPReceivers ⇒ Object
2 -- 启用 3 -- 禁用 不为空时会覆盖
Rules字段下所有告警规则状态. -
#CustomReceiver ⇒ Object
2 -- 启用 3 -- 禁用 不为空时会覆盖
Rules字段下所有告警规则状态. -
#GroupId ⇒ Object
2 -- 启用 3 -- 禁用 不为空时会覆盖
Rules字段下所有告警规则状态. -
#GroupName ⇒ Object
2 -- 启用 3 -- 禁用 不为空时会覆盖
Rules字段下所有告警规则状态. -
#GroupState ⇒ Object
2 -- 启用 3 -- 禁用 不为空时会覆盖
Rules字段下所有告警规则状态. -
#InstanceId ⇒ Object
2 -- 启用 3 -- 禁用 不为空时会覆盖
Rules字段下所有告警规则状态. -
#RepeatInterval ⇒ Object
2 -- 启用 3 -- 禁用 不为空时会覆盖
Rules字段下所有告警规则状态. -
#Rules ⇒ Object
2 -- 启用 3 -- 禁用 不为空时会覆盖
Rules字段下所有告警规则状态.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, groupid = nil, groupname = nil, groupstate = nil, ampreceivers = nil, customreceiver = nil, repeatinterval = nil, rules = nil) ⇒ UpdatePrometheusAlertGroupRequest
constructor
A new instance of UpdatePrometheusAlertGroupRequest.
Constructor Details
#initialize(instanceid = nil, groupid = nil, groupname = nil, groupstate = nil, ampreceivers = nil, customreceiver = nil, repeatinterval = nil, rules = nil) ⇒ UpdatePrometheusAlertGroupRequest
Returns a new instance of UpdatePrometheusAlertGroupRequest.
16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 |
# File 'lib/v20180724/models.rb', line 16024 def initialize(instanceid=nil, groupid=nil, groupname=nil, groupstate=nil, ampreceivers=nil, customreceiver=nil, repeatinterval=nil, rules=nil) @InstanceId = instanceid @GroupId = groupid @GroupName = groupname @GroupState = groupstate @AMPReceivers = ampreceivers @CustomReceiver = customreceiver @RepeatInterval = repeatinterval @Rules = rules end |
Instance Attribute Details
#AMPReceivers ⇒ Object
2 -- 启用
3 -- 禁用
不为空时会覆盖 Rules字段下所有告警规则状态
16022 16023 16024 |
# File 'lib/v20180724/models.rb', line 16022 def AMPReceivers @AMPReceivers end |
#CustomReceiver ⇒ Object
2 -- 启用
3 -- 禁用
不为空时会覆盖 Rules字段下所有告警规则状态
16022 16023 16024 |
# File 'lib/v20180724/models.rb', line 16022 def CustomReceiver @CustomReceiver end |
#GroupId ⇒ Object
2 -- 启用
3 -- 禁用
不为空时会覆盖 Rules字段下所有告警规则状态
16022 16023 16024 |
# File 'lib/v20180724/models.rb', line 16022 def GroupId @GroupId end |
#GroupName ⇒ Object
2 -- 启用
3 -- 禁用
不为空时会覆盖 Rules字段下所有告警规则状态
16022 16023 16024 |
# File 'lib/v20180724/models.rb', line 16022 def GroupName @GroupName end |
#GroupState ⇒ Object
2 -- 启用
3 -- 禁用
不为空时会覆盖 Rules字段下所有告警规则状态
16022 16023 16024 |
# File 'lib/v20180724/models.rb', line 16022 def GroupState @GroupState end |
#InstanceId ⇒ Object
2 -- 启用
3 -- 禁用
不为空时会覆盖 Rules字段下所有告警规则状态
16022 16023 16024 |
# File 'lib/v20180724/models.rb', line 16022 def InstanceId @InstanceId end |
#RepeatInterval ⇒ Object
2 -- 启用
3 -- 禁用
不为空时会覆盖 Rules字段下所有告警规则状态
16022 16023 16024 |
# File 'lib/v20180724/models.rb', line 16022 def RepeatInterval @RepeatInterval end |
#Rules ⇒ Object
2 -- 启用
3 -- 禁用
不为空时会覆盖 Rules字段下所有告警规则状态
16022 16023 16024 |
# File 'lib/v20180724/models.rb', line 16022 def Rules @Rules end |
Instance Method Details
#deserialize(params) ⇒ Object
16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 |
# File 'lib/v20180724/models.rb', line 16035 def deserialize(params) @InstanceId = params['InstanceId'] @GroupId = params['GroupId'] @GroupName = params['GroupName'] @GroupState = params['GroupState'] @AMPReceivers = params['AMPReceivers'] unless params['CustomReceiver'].nil? @CustomReceiver = PrometheusAlertCustomReceiver.new @CustomReceiver.deserialize(params['CustomReceiver']) end @RepeatInterval = params['RepeatInterval'] unless params['Rules'].nil? @Rules = [] params['Rules'].each do |i| prometheusalertgroupruleset_tmp = PrometheusAlertGroupRuleSet.new prometheusalertgroupruleset_tmp.deserialize(i) @Rules << prometheusalertgroupruleset_tmp end end end |