Class: TencentCloud::Tke::V20180525::DescribePrometheusClusterAgentsResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tke::V20180525::DescribePrometheusClusterAgentsResponse
- Defined in:
- lib/v20180525/models.rb
Overview
DescribePrometheusClusterAgents返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(agents = nil, total = nil, requestid = nil) ⇒ DescribePrometheusClusterAgentsResponse
constructor
A new instance of DescribePrometheusClusterAgentsResponse.
Constructor Details
#initialize(agents = nil, total = nil, requestid = nil) ⇒ DescribePrometheusClusterAgentsResponse
Returns a new instance of DescribePrometheusClusterAgentsResponse.
8870 8871 8872 8873 8874 |
# File 'lib/v20180525/models.rb', line 8870 def initialize(agents=nil, total=nil, requestid=nil) @Agents = agents @Total = total @RequestId = requestid end |
Instance Attribute Details
#Agents ⇒ Object
8868 8869 8870 |
# File 'lib/v20180525/models.rb', line 8868 def Agents @Agents end |
#RequestId ⇒ Object
8868 8869 8870 |
# File 'lib/v20180525/models.rb', line 8868 def RequestId @RequestId end |
#Total ⇒ Object
8868 8869 8870 |
# File 'lib/v20180525/models.rb', line 8868 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 |
# File 'lib/v20180525/models.rb', line 8876 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 |