Class: TencentCloud::Tke::V20180525::ModifyPrometheusAlertPolicyRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::ModifyPrometheusAlertPolicyRequest
- Defined in:
- lib/v20180525/models.rb
Overview
ModifyPrometheusAlertPolicy请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, alertrule = nil) ⇒ ModifyPrometheusAlertPolicyRequest
constructor
A new instance of ModifyPrometheusAlertPolicyRequest.
Constructor Details
#initialize(instanceid = nil, alertrule = nil) ⇒ ModifyPrometheusAlertPolicyRequest
Returns a new instance of ModifyPrometheusAlertPolicyRequest.
14526 14527 14528 14529 |
# File 'lib/v20180525/models.rb', line 14526 def initialize(instanceid=nil, alertrule=nil) @InstanceId = instanceid @AlertRule = alertrule end |
Instance Attribute Details
#AlertRule ⇒ Object
14524 14525 14526 |
# File 'lib/v20180525/models.rb', line 14524 def AlertRule @AlertRule end |
#InstanceId ⇒ Object
14524 14525 14526 |
# File 'lib/v20180525/models.rb', line 14524 def InstanceId @InstanceId end |
Instance Method Details
#deserialize(params) ⇒ Object
14531 14532 14533 14534 14535 14536 14537 |
# File 'lib/v20180525/models.rb', line 14531 def deserialize(params) @InstanceId = params['InstanceId'] unless params['AlertRule'].nil? @AlertRule = PrometheusAlertPolicyItem.new @AlertRule.deserialize(params['AlertRule']) end end |