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
8947 8948 8949 8950 8951 |
# File 'lib/v20180525/models.rb', line 8947 def initialize(alertrules=nil, total=nil, requestid=nil) @AlertRules = alertrules @Total = total @RequestId = requestid end |
Instance Attribute Details
#AlertRules ⇒ Object
8945 8946 8947 |
# File 'lib/v20180525/models.rb', line 8945 def AlertRules @AlertRules end |
#RequestId ⇒ Object
8945 8946 8947 |
# File 'lib/v20180525/models.rb', line 8945 def RequestId @RequestId end |
#Total ⇒ Object
8945 8946 8947 |
# File 'lib/v20180525/models.rb', line 8945 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 |
# File 'lib/v20180525/models.rb', line 8953 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 |