Class: TencentCloud::Cls::V20201016::CreateMetricSubscribeRequest

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

Overview

CreateMetricSubscribe请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, topicid = nil, namespace = nil, metrics = nil, instanceinfo = nil) ⇒ CreateMetricSubscribeRequest

Returns a new instance of CreateMetricSubscribeRequest.



4330
4331
4332
4333
4334
4335
4336
# File 'lib/v20201016/models.rb', line 4330

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

Instance Attribute Details

#InstanceInfo ⇒ Object

Parameters:

  • Name: —

    名称:长度不超过64字符,以字母开头,接受0-9,a-z,A-Z, _,-,中文字符。

  • TopicId: —

    日志主题id。

  • Namespace: —

    云产品命名空间。

  • Metrics: —

    数据库配置信息。

  • InstanceInfo: —

    实例配置配置。



4328
4329
4330
# File 'lib/v20201016/models.rb', line 4328

def InstanceInfo
  @InstanceInfo
end

#Metrics ⇒ Object

Parameters:

  • Name: —

    名称:长度不超过64字符,以字母开头,接受0-9,a-z,A-Z, _,-,中文字符。

  • TopicId: —

    日志主题id。

  • Namespace: —

    云产品命名空间。

  • Metrics: —

    数据库配置信息。

  • InstanceInfo: —

    实例配置配置。



4328
4329
4330
# File 'lib/v20201016/models.rb', line 4328

def Metrics
  @Metrics
end

#Name ⇒ Object

Parameters:

  • Name: —

    名称:长度不超过64字符,以字母开头,接受0-9,a-z,A-Z, _,-,中文字符。

  • TopicId: —

    日志主题id。

  • Namespace: —

    云产品命名空间。

  • Metrics: —

    数据库配置信息。

  • InstanceInfo: —

    实例配置配置。



4328
4329
4330
# File 'lib/v20201016/models.rb', line 4328

def Name
  @Name
end

#Namespace ⇒ Object

Parameters:

  • Name: —

    名称:长度不超过64字符,以字母开头,接受0-9,a-z,A-Z, _,-,中文字符。

  • TopicId: —

    日志主题id。

  • Namespace: —

    云产品命名空间。

  • Metrics: —

    数据库配置信息。

  • InstanceInfo: —

    实例配置配置。



4328
4329
4330
# File 'lib/v20201016/models.rb', line 4328

def Namespace
  @Namespace
end

#TopicId ⇒ Object

Parameters:

  • Name: —

    名称:长度不超过64字符,以字母开头,接受0-9,a-z,A-Z, _,-,中文字符。

  • TopicId: —

    日志主题id。

  • Namespace: —

    云产品命名空间。

  • Metrics: —

    数据库配置信息。

  • InstanceInfo: —

    实例配置配置。



4328
4329
4330
# File 'lib/v20201016/models.rb', line 4328

def TopicId
  @TopicId
end

Instance Method Details

#deserialize(params) ⇒ Object



4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
# File 'lib/v20201016/models.rb', line 4338

def deserialize(params)
  @Name = params['Name']
  @TopicId = params['TopicId']
  @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
end