Class: TencentCloud::Tke::V20180525::DescribePrometheusAlertPolicyResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DescribePrometheusAlertPolicyResponse
- Defined in:
- lib/v20180525/models.rb
Overview
DescribePrometheusAlertPolicy返回参数结构体
Instance Attribute Summary collapse
-
#AlertRules ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Total ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(alertrules = nil, total = nil, requestid = nil) ⇒ DescribePrometheusAlertPolicyResponse
constructor
A new instance of DescribePrometheusAlertPolicyResponse.
Constructor Details
#initialize(alertrules = nil, total = nil, requestid = nil) ⇒ DescribePrometheusAlertPolicyResponse
Returns a new instance of DescribePrometheusAlertPolicyResponse.
8726 8727 8728 8729 8730 |
# File 'lib/v20180525/models.rb', line 8726 def initialize(alertrules=nil, total=nil, requestid=nil) @AlertRules = alertrules @Total = total @RequestId = requestid end |
Instance Attribute Details
#AlertRules ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8724 8725 8726 |
# File 'lib/v20180525/models.rb', line 8724 def AlertRules @AlertRules end |
#RequestId ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8724 8725 8726 |
# File 'lib/v20180525/models.rb', line 8724 def RequestId @RequestId end |
#Total ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
8724 8725 8726 |
# File 'lib/v20180525/models.rb', line 8724 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 |
# File 'lib/v20180525/models.rb', line 8732 def deserialize(params) unless params['AlertRules'].nil? @AlertRules = [] params['AlertRules'].each do |i| prometheusalertpolicyitem_tmp = PrometheusAlertPolicyItem.new prometheusalertpolicyitem_tmp.deserialize(i) @AlertRules << prometheusalertpolicyitem_tmp end end @Total = params['Total'] @RequestId = params['RequestId'] end |