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.
16143 16144 16145 16146 |
# File 'lib/v20180525/models.rb', line 16143 def initialize(instanceid=nil, alertrule=nil) @InstanceId = instanceid @AlertRule = alertrule end |
Instance Attribute Details
#AlertRule ⇒ Object
16141 16142 16143 |
# File 'lib/v20180525/models.rb', line 16141 def AlertRule @AlertRule end |
#InstanceId ⇒ Object
16141 16142 16143 |
# File 'lib/v20180525/models.rb', line 16141 def InstanceId @InstanceId end |
Instance Method Details
#deserialize(params) ⇒ Object
16148 16149 16150 16151 16152 16153 16154 |
# File 'lib/v20180525/models.rb', line 16148 def deserialize(params) @InstanceId = params['InstanceId'] unless params['AlertRule'].nil? @AlertRule = PrometheusAlertRuleDetail.new @AlertRule.deserialize(params['AlertRule']) end end |