Class: TencentCloud::Tke::V20180525::DescribePrometheusClusterAgentsResponse

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

DescribePrometheusClusterAgents返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(agents = nil, total = nil, requestid = nil) ⇒ DescribePrometheusClusterAgentsResponse

Returns a new instance of DescribePrometheusClusterAgentsResponse.



8848
8849
8850
8851
8852
# File 'lib/v20180525/models.rb', line 8848

def initialize(agents=nil, total=nil, requestid=nil)
  @Agents = agents
  @Total = total
  @RequestId = requestid
end

Instance Attribute Details

#AgentsObject

Parameters:

  • Agents:

    被关联集群信息

  • Total:

    被关联集群总量

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8846
8847
8848
# File 'lib/v20180525/models.rb', line 8846

def Agents
  @Agents
end

#RequestIdObject

Parameters:

  • Agents:

    被关联集群信息

  • Total:

    被关联集群总量

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8846
8847
8848
# File 'lib/v20180525/models.rb', line 8846

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • Agents:

    被关联集群信息

  • Total:

    被关联集群总量

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8846
8847
8848
# File 'lib/v20180525/models.rb', line 8846

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
# File 'lib/v20180525/models.rb', line 8854

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