Class: TencentCloud::Monitor::V20180724::CreatePrometheusClusterAgentRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::CreatePrometheusClusterAgentRequest
- Defined in:
- lib/v20180724/models.rb
Overview
CreatePrometheusClusterAgent请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, agents = nil) ⇒ CreatePrometheusClusterAgentRequest
constructor
A new instance of CreatePrometheusClusterAgentRequest.
Constructor Details
#initialize(instanceid = nil, agents = nil) ⇒ CreatePrometheusClusterAgentRequest
Returns a new instance of CreatePrometheusClusterAgentRequest.
2705 2706 2707 2708 |
# File 'lib/v20180724/models.rb', line 2705 def initialize(instanceid=nil, agents=nil) @InstanceId = instanceid @Agents = agents end |
Instance Attribute Details
#Agents ⇒ Object
2703 2704 2705 |
# File 'lib/v20180724/models.rb', line 2703 def Agents @Agents end |
#InstanceId ⇒ Object
2703 2704 2705 |
# File 'lib/v20180724/models.rb', line 2703 def InstanceId @InstanceId end |
Instance Method Details
#deserialize(params) ⇒ Object
2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 |
# File 'lib/v20180724/models.rb', line 2710 def deserialize(params) @InstanceId = params['InstanceId'] unless params['Agents'].nil? @Agents = [] params['Agents'].each do |i| prometheusclusteragentbasic_tmp = PrometheusClusterAgentBasic.new prometheusclusteragentbasic_tmp.deserialize(i) @Agents << prometheusclusteragentbasic_tmp end end end |