Class: TencentCloud::Tke::V20180525::DescribePrometheusAlertRuleResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DescribePrometheusAlertRuleResponse
- Defined in:
- lib/v20180525/models.rb
Overview
DescribePrometheusAlertRule返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(alertrules = nil, total = nil, requestid = nil) ⇒ DescribePrometheusAlertRuleResponse
constructor
A new instance of DescribePrometheusAlertRuleResponse.
Constructor Details
#initialize(alertrules = nil, total = nil, requestid = nil) ⇒ DescribePrometheusAlertRuleResponse
Returns a new instance of DescribePrometheusAlertRuleResponse.
9600 9601 9602 9603 9604 |
# File 'lib/v20180525/models.rb', line 9600 def initialize(alertrules=nil, total=nil, requestid=nil) @AlertRules = alertrules @Total = total @RequestId = requestid end |
Instance Attribute Details
#AlertRules ⇒ Object
9598 9599 9600 |
# File 'lib/v20180525/models.rb', line 9598 def AlertRules @AlertRules end |
#RequestId ⇒ Object
9598 9599 9600 |
# File 'lib/v20180525/models.rb', line 9598 def RequestId @RequestId end |
#Total ⇒ Object
9598 9599 9600 |
# File 'lib/v20180525/models.rb', line 9598 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 |
# File 'lib/v20180525/models.rb', line 9606 def deserialize(params) unless params['AlertRules'].nil? @AlertRules = [] params['AlertRules'].each do |i| prometheusalertruledetail_tmp = PrometheusAlertRuleDetail.new prometheusalertruledetail_tmp.deserialize(i) @AlertRules << prometheusalertruledetail_tmp end end @Total = params['Total'] @RequestId = params['RequestId'] end |