Class: TencentCloud::Tke::V20180525::ModifyPrometheusAlertRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::ModifyPrometheusAlertRuleRequest
- Defined in:
- lib/v20180525/models.rb
Overview
ModifyPrometheusAlertRule请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, alertrule = nil) ⇒ ModifyPrometheusAlertRuleRequest
constructor
A new instance of ModifyPrometheusAlertRuleRequest.
Constructor Details
#initialize(instanceid = nil, alertrule = nil) ⇒ ModifyPrometheusAlertRuleRequest
Returns a new instance of ModifyPrometheusAlertRuleRequest.
14565 14566 14567 14568 |
# File 'lib/v20180525/models.rb', line 14565 def initialize(instanceid=nil, alertrule=nil) @InstanceId = instanceid @AlertRule = alertrule end |
Instance Attribute Details
#AlertRule ⇒ Object
14563 14564 14565 |
# File 'lib/v20180525/models.rb', line 14563 def AlertRule @AlertRule end |
#InstanceId ⇒ Object
14563 14564 14565 |
# File 'lib/v20180525/models.rb', line 14563 def InstanceId @InstanceId end |
Instance Method Details
#deserialize(params) ⇒ Object
14570 14571 14572 14573 14574 14575 14576 |
# File 'lib/v20180525/models.rb', line 14570 def deserialize(params) @InstanceId = params['InstanceId'] unless params['AlertRule'].nil? @AlertRule = PrometheusAlertRuleDetail.new @AlertRule.deserialize(params['AlertRule']) end end |