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.
9465 9466 9467 9468 9469 |
# File 'lib/v20180525/models.rb', line 9465 def initialize(items=nil, total=nil, requestid=nil) @Items = items @Total = total @RequestId = requestid end |
Instance Attribute Details
#Items ⇒ Object
9463 9464 9465 |
# File 'lib/v20180525/models.rb', line 9463 def Items @Items end |
#RequestId ⇒ Object
9463 9464 9465 |
# File 'lib/v20180525/models.rb', line 9463 def RequestId @RequestId end |
#Total ⇒ Object
9463 9464 9465 |
# File 'lib/v20180525/models.rb', line 9463 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 |
# File 'lib/v20180525/models.rb', line 9471 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 |