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.
14514 14515 14516 14517 |
# File 'lib/v20180525/models.rb', line 14514 def initialize(instanceid=nil, alertrule=nil) @InstanceId = instanceid @AlertRule = alertrule end |
Instance Attribute Details
#AlertRule ⇒ Object
14512 14513 14514 |
# File 'lib/v20180525/models.rb', line 14512 def AlertRule @AlertRule end |
#InstanceId ⇒ Object
14512 14513 14514 |
# File 'lib/v20180525/models.rb', line 14512 def InstanceId @InstanceId end |
Instance Method Details
#deserialize(params) ⇒ Object
14519 14520 14521 14522 14523 14524 14525 |
# File 'lib/v20180525/models.rb', line 14519 def deserialize(params) @InstanceId = params['InstanceId'] unless params['AlertRule'].nil? @AlertRule = PrometheusAlertRuleDetail.new @AlertRule.deserialize(params['AlertRule']) end end |