Class: TencentCloud::Tke::V20180525::CreatePrometheusAlertPolicyRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::CreatePrometheusAlertPolicyRequest
- Defined in:
- lib/v20180525/models.rb
Overview
CreatePrometheusAlertPolicy请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, alertrule = nil) ⇒ CreatePrometheusAlertPolicyRequest
constructor
A new instance of CreatePrometheusAlertPolicyRequest.
Constructor Details
#initialize(instanceid = nil, alertrule = nil) ⇒ CreatePrometheusAlertPolicyRequest
Returns a new instance of CreatePrometheusAlertPolicyRequest.
3251 3252 3253 3254 |
# File 'lib/v20180525/models.rb', line 3251 def initialize(instanceid=nil, alertrule=nil) @InstanceId = instanceid @AlertRule = alertrule end |
Instance Attribute Details
#AlertRule ⇒ Object
3249 3250 3251 |
# File 'lib/v20180525/models.rb', line 3249 def AlertRule @AlertRule end |
#InstanceId ⇒ Object
3249 3250 3251 |
# File 'lib/v20180525/models.rb', line 3249 def InstanceId @InstanceId end |
Instance Method Details
#deserialize(params) ⇒ Object
3256 3257 3258 3259 3260 3261 3262 |
# File 'lib/v20180525/models.rb', line 3256 def deserialize(params) @InstanceId = params['InstanceId'] unless params['AlertRule'].nil? @AlertRule = PrometheusAlertPolicyItem.new @AlertRule.deserialize(params['AlertRule']) end end |