Class: TencentCloud::Tke::V20180525::DescribePrometheusAlertHistoryResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DescribePrometheusAlertHistoryResponse
- Defined in:
- lib/v20180525/models.rb
Overview
DescribePrometheusAlertHistory返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(items = nil, total = nil, requestid = nil) ⇒ DescribePrometheusAlertHistoryResponse
constructor
A new instance of DescribePrometheusAlertHistoryResponse.
Constructor Details
#initialize(items = nil, total = nil, requestid = nil) ⇒ DescribePrometheusAlertHistoryResponse
Returns a new instance of DescribePrometheusAlertHistoryResponse.
8680 8681 8682 8683 8684 |
# File 'lib/v20180525/models.rb', line 8680 def initialize(items=nil, total=nil, requestid=nil) @Items = items @Total = total @RequestId = requestid end |
Instance Attribute Details
#Items ⇒ Object
8678 8679 8680 |
# File 'lib/v20180525/models.rb', line 8678 def Items @Items end |
#RequestId ⇒ Object
8678 8679 8680 |
# File 'lib/v20180525/models.rb', line 8678 def RequestId @RequestId end |
#Total ⇒ Object
8678 8679 8680 |
# File 'lib/v20180525/models.rb', line 8678 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 |
# File 'lib/v20180525/models.rb', line 8686 def deserialize(params) unless params['Items'].nil? @Items = [] params['Items'].each do |i| prometheusalerthistoryitem_tmp = PrometheusAlertHistoryItem.new prometheusalerthistoryitem_tmp.deserialize(i) @Items << prometheusalerthistoryitem_tmp end end @Total = params['Total'] @RequestId = params['RequestId'] end |