Class: TencentCloud::Tke::V20180525::ComponentLogConfig

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

Overview

组件日志采集配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, loglevel = nil, logsetid = nil, topicid = nil, topicregion = nil) ⇒ ComponentLogConfig

Returns a new instance of ComponentLogConfig.



1835
1836
1837
1838
1839
1840
1841
# File 'lib/v20180525/models.rb', line 1835

def initialize(name=nil, loglevel=nil, logsetid=nil, topicid=nil, topicregion=nil)
  @Name = name
  @LogLevel = loglevel
  @LogSetId = logsetid
  @TopicId = topicid
  @TopicRegion = topicregion
end

Instance Attribute Details

#LogLevelObject

Parameters:

  • Name:

    组件名称

  • LogLevel:

    日志级别,对于支持动态调整日志级别的组件,开启日志时可指定该参数

  • LogSetId:

    日志集ID。如果不指定,则自动创建

  • TopicId:

    日志主题ID。如果不指定,则自动创建

  • TopicRegion:

    topic 所属region。 该参数可实现日志跨地域投递



1833
1834
1835
# File 'lib/v20180525/models.rb', line 1833

def LogLevel
  @LogLevel
end

#LogSetIdObject

Parameters:

  • Name:

    组件名称

  • LogLevel:

    日志级别,对于支持动态调整日志级别的组件,开启日志时可指定该参数

  • LogSetId:

    日志集ID。如果不指定,则自动创建

  • TopicId:

    日志主题ID。如果不指定,则自动创建

  • TopicRegion:

    topic 所属region。 该参数可实现日志跨地域投递



1833
1834
1835
# File 'lib/v20180525/models.rb', line 1833

def LogSetId
  @LogSetId
end

#NameObject

Parameters:

  • Name:

    组件名称

  • LogLevel:

    日志级别,对于支持动态调整日志级别的组件,开启日志时可指定该参数

  • LogSetId:

    日志集ID。如果不指定,则自动创建

  • TopicId:

    日志主题ID。如果不指定,则自动创建

  • TopicRegion:

    topic 所属region。 该参数可实现日志跨地域投递



1833
1834
1835
# File 'lib/v20180525/models.rb', line 1833

def Name
  @Name
end

#TopicIdObject

Parameters:

  • Name:

    组件名称

  • LogLevel:

    日志级别,对于支持动态调整日志级别的组件,开启日志时可指定该参数

  • LogSetId:

    日志集ID。如果不指定,则自动创建

  • TopicId:

    日志主题ID。如果不指定,则自动创建

  • TopicRegion:

    topic 所属region。 该参数可实现日志跨地域投递



1833
1834
1835
# File 'lib/v20180525/models.rb', line 1833

def TopicId
  @TopicId
end

#TopicRegionObject

Parameters:

  • Name:

    组件名称

  • LogLevel:

    日志级别,对于支持动态调整日志级别的组件,开启日志时可指定该参数

  • LogSetId:

    日志集ID。如果不指定,则自动创建

  • TopicId:

    日志主题ID。如果不指定,则自动创建

  • TopicRegion:

    topic 所属region。 该参数可实现日志跨地域投递



1833
1834
1835
# File 'lib/v20180525/models.rb', line 1833

def TopicRegion
  @TopicRegion
end

Instance Method Details

#deserialize(params) ⇒ Object



1843
1844
1845
1846
1847
1848
1849
# File 'lib/v20180525/models.rb', line 1843

def deserialize(params)
  @Name = params['Name']
  @LogLevel = params['LogLevel']
  @LogSetId = params['LogSetId']
  @TopicId = params['TopicId']
  @TopicRegion = params['TopicRegion']
end