Class: TencentCloud::Tke::V20180525::DescribePrometheusAgentsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DescribePrometheusAgentsResponse
- Defined in:
- lib/v20180525/models.rb
Overview
DescribePrometheusAgents返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(agents = nil, total = nil, requestid = nil) ⇒ DescribePrometheusAgentsResponse
constructor
A new instance of DescribePrometheusAgentsResponse.
Constructor Details
#initialize(agents = nil, total = nil, requestid = nil) ⇒ DescribePrometheusAgentsResponse
Returns a new instance of DescribePrometheusAgentsResponse.
8609 8610 8611 8612 8613 |
# File 'lib/v20180525/models.rb', line 8609 def initialize(agents=nil, total=nil, requestid=nil) @Agents = agents @Total = total @RequestId = requestid end |
Instance Attribute Details
#Agents ⇒ Object
8607 8608 8609 |
# File 'lib/v20180525/models.rb', line 8607 def Agents @Agents end |
#RequestId ⇒ Object
8607 8608 8609 |
# File 'lib/v20180525/models.rb', line 8607 def RequestId @RequestId end |
#Total ⇒ Object
8607 8608 8609 |
# File 'lib/v20180525/models.rb', line 8607 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 |
# File 'lib/v20180525/models.rb', line 8615 def deserialize(params) unless params['Agents'].nil? @Agents = [] params['Agents'].each do |i| prometheusagentoverview_tmp = PrometheusAgentOverview.new prometheusagentoverview_tmp.deserialize(i) @Agents << prometheusagentoverview_tmp end end @Total = params['Total'] @RequestId = params['RequestId'] end |