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.
8793 8794 8795 8796 8797 |
# File 'lib/v20180525/models.rb', line 8793 def initialize(alertrules=nil, total=nil, requestid=nil) @AlertRules = alertrules @Total = total @RequestId = requestid end |
Instance Attribute Details
#AlertRules ⇒ Object
8791 8792 8793 |
# File 'lib/v20180525/models.rb', line 8791 def AlertRules @AlertRules end |
#RequestId ⇒ Object
8791 8792 8793 |
# File 'lib/v20180525/models.rb', line 8791 def RequestId @RequestId end |
#Total ⇒ Object
8791 8792 8793 |
# File 'lib/v20180525/models.rb', line 8791 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 |
# File 'lib/v20180525/models.rb', line 8799 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 |