Class: TencentCloud::Ckafka::V20190819::ClsParam

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

Overview

Cls类型入参

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(decodejson = nil, resource = nil, logset = nil, contentkey = nil, timefield = nil) ⇒ ClsParam

Returns a new instance of ClsParam.



966
967
968
969
970
971
972
# File 'lib/v20190819/models.rb', line 966

def initialize(decodejson=nil, resource=nil, logset=nil, contentkey=nil, timefield=nil)
  @DecodeJson = decodejson
  @Resource = resource
  @LogSet = logset
  @ContentKey = contentkey
  @TimeField = timefield
end

Instance Attribute Details

#ContentKeyObject

字段内容格式需要是秒级时间戳

Parameters:

  • DecodeJson:

    生产的信息是否为json格式

  • Resource:

    cls日志主题id

  • LogSet:

    cls日志集id

  • ContentKey:

    当DecodeJson为false时必填

  • TimeField:

    指定消息中的某字段内容作为cls日志的时间。



964
965
966
# File 'lib/v20190819/models.rb', line 964

def ContentKey
  @ContentKey
end

#DecodeJsonObject

字段内容格式需要是秒级时间戳

Parameters:

  • DecodeJson:

    生产的信息是否为json格式

  • Resource:

    cls日志主题id

  • LogSet:

    cls日志集id

  • ContentKey:

    当DecodeJson为false时必填

  • TimeField:

    指定消息中的某字段内容作为cls日志的时间。



964
965
966
# File 'lib/v20190819/models.rb', line 964

def DecodeJson
  @DecodeJson
end

#LogSetObject

字段内容格式需要是秒级时间戳

Parameters:

  • DecodeJson:

    生产的信息是否为json格式

  • Resource:

    cls日志主题id

  • LogSet:

    cls日志集id

  • ContentKey:

    当DecodeJson为false时必填

  • TimeField:

    指定消息中的某字段内容作为cls日志的时间。



964
965
966
# File 'lib/v20190819/models.rb', line 964

def LogSet
  @LogSet
end

#ResourceObject

字段内容格式需要是秒级时间戳

Parameters:

  • DecodeJson:

    生产的信息是否为json格式

  • Resource:

    cls日志主题id

  • LogSet:

    cls日志集id

  • ContentKey:

    当DecodeJson为false时必填

  • TimeField:

    指定消息中的某字段内容作为cls日志的时间。



964
965
966
# File 'lib/v20190819/models.rb', line 964

def Resource
  @Resource
end

#TimeFieldObject

字段内容格式需要是秒级时间戳

Parameters:

  • DecodeJson:

    生产的信息是否为json格式

  • Resource:

    cls日志主题id

  • LogSet:

    cls日志集id

  • ContentKey:

    当DecodeJson为false时必填

  • TimeField:

    指定消息中的某字段内容作为cls日志的时间。



964
965
966
# File 'lib/v20190819/models.rb', line 964

def TimeField
  @TimeField
end

Instance Method Details

#deserialize(params) ⇒ Object



974
975
976
977
978
979
980
# File 'lib/v20190819/models.rb', line 974

def deserialize(params)
  @DecodeJson = params['DecodeJson']
  @Resource = params['Resource']
  @LogSet = params['LogSet']
  @ContentKey = params['ContentKey']
  @TimeField = params['TimeField']
end