Class: TencentCloud::Tke::V20180525::CreatePrometheusAlertRuleRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::CreatePrometheusAlertRuleRequest
- Defined in:
- lib/v20180525/models.rb
Overview
CreatePrometheusAlertRule请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, alertrule = nil) ⇒ CreatePrometheusAlertRuleRequest
constructor
A new instance of CreatePrometheusAlertRuleRequest.
Constructor Details
#initialize(instanceid = nil, alertrule = nil) ⇒ CreatePrometheusAlertRuleRequest
Returns a new instance of CreatePrometheusAlertRuleRequest.
3294 3295 3296 3297 |
# File 'lib/v20180525/models.rb', line 3294 def initialize(instanceid=nil, alertrule=nil) @InstanceId = instanceid @AlertRule = alertrule end |
Instance Attribute Details
#AlertRule ⇒ Object
3292 3293 3294 |
# File 'lib/v20180525/models.rb', line 3292 def AlertRule @AlertRule end |
#InstanceId ⇒ Object
3292 3293 3294 |
# File 'lib/v20180525/models.rb', line 3292 def InstanceId @InstanceId end |
Instance Method Details
#deserialize(params) ⇒ Object
3299 3300 3301 3302 3303 3304 3305 |
# File 'lib/v20180525/models.rb', line 3299 def deserialize(params) @InstanceId = params['InstanceId'] unless params['AlertRule'].nil? @AlertRule = PrometheusAlertRuleDetail.new @AlertRule.deserialize(params['AlertRule']) end end |