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.
8658 8659 8660 8661 8662 |
# File 'lib/v20180525/models.rb', line 8658 def initialize(items=nil, total=nil, requestid=nil) @Items = items @Total = total @RequestId = requestid end |
Instance Attribute Details
#Items ⇒ Object
8656 8657 8658 |
# File 'lib/v20180525/models.rb', line 8656 def Items @Items end |
#RequestId ⇒ Object
8656 8657 8658 |
# File 'lib/v20180525/models.rb', line 8656 def RequestId @RequestId end |
#Total ⇒ Object
8656 8657 8658 |
# File 'lib/v20180525/models.rb', line 8656 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 |
# File 'lib/v20180525/models.rb', line 8664 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 |