Class: TencentCloud::Cls::V20201016::ModifyMetricSubscribeRequest

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

Overview

ModifyMetricSubscribe请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topicid = nil, taskid = nil, name = nil, namespace = nil, metrics = nil, instanceinfo = nil, enable = nil) ⇒ ModifyMetricSubscribeRequest

Returns a new instance of ModifyMetricSubscribeRequest.



14932
14933
14934
14935
14936
14937
14938
14939
14940
# File 'lib/v20201016/models.rb', line 14932

def initialize(topicid=nil, taskid=nil, name=nil, namespace=nil, metrics=nil, instanceinfo=nil, enable=nil)
  @TopicId = topicid
  @TaskId = taskid
  @Name = name
  @Namespace = namespace
  @Metrics = metrics
  @InstanceInfo = instanceinfo
  @Enable = enable
end

Instance Attribute Details

#Enable ⇒ Object

2: 启用



14930
14931
14932
# File 'lib/v20201016/models.rb', line 14930

def Enable
  @Enable
end

#InstanceInfo ⇒ Object

2: 启用



14930
14931
14932
# File 'lib/v20201016/models.rb', line 14930

def InstanceInfo
  @InstanceInfo
end

#Metrics ⇒ Object

2: 启用



14930
14931
14932
# File 'lib/v20201016/models.rb', line 14930

def Metrics
  @Metrics
end

#Name ⇒ Object

2: 启用



14930
14931
14932
# File 'lib/v20201016/models.rb', line 14930

def Name
  @Name
end

#Namespace ⇒ Object

2: 启用



14930
14931
14932
# File 'lib/v20201016/models.rb', line 14930

def Namespace
  @Namespace
end

#TaskId ⇒ Object

2: 启用



14930
14931
14932
# File 'lib/v20201016/models.rb', line 14930

def TaskId
  @TaskId
end

#TopicId ⇒ Object

2: 启用



14930
14931
14932
# File 'lib/v20201016/models.rb', line 14930

def TopicId
  @TopicId
end

Instance Method Details

#deserialize(params) ⇒ Object



14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
# File 'lib/v20201016/models.rb', line 14942

def deserialize(params)
  @TopicId = params['TopicId']
  @TaskId = params['TaskId']
  @Name = params['Name']
  @Namespace = params['Namespace']
  unless params['Metrics'].nil?
    @Metrics = []
    params['Metrics'].each do |i|
      metricconfig_tmp = MetricConfig.new
      metricconfig_tmp.deserialize(i)
      @Metrics << metricconfig_tmp
    end
  end
  unless params['InstanceInfo'].nil?
    @InstanceInfo = InstanceConfig.new
    @InstanceInfo.deserialize(params['InstanceInfo'])
  end
  @Enable = params['Enable']
end