Class: TencentCloud::Ckafka::V20190819::GroupOffsetPartition

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

Overview

组偏移量分区对象

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(partition = nil, offset = nil, metadata = nil, errorcode = nil, logendoffset = nil, lag = nil) ⇒ GroupOffsetPartition

Returns a new instance of GroupOffsetPartition.



7401
7402
7403
7404
7405
7406
7407
7408
# File 'lib/v20190819/models.rb', line 7401

def initialize(partition=nil, offset=nil, =nil, errorcode=nil, logendoffset=nil, lag=nil)
  @Partition = partition
  @Offset = offset
  @Metadata = 
  @ErrorCode = errorcode
  @LogEndOffset = logendoffset
  @Lag = lag
end

Instance Attribute Details

#ErrorCodeObject

Parameters:

  • Partition:

    topic 的 partitionId

  • Offset:

    consumer 提交的 offset 位置

  • Metadata:

    支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串

  • ErrorCode:

    错误码

  • LogEndOffset:

    当前 partition 最新的 offset

  • Lag:

    未消费的消息个数



7399
7400
7401
# File 'lib/v20190819/models.rb', line 7399

def ErrorCode
  @ErrorCode
end

#LagObject

Parameters:

  • Partition:

    topic 的 partitionId

  • Offset:

    consumer 提交的 offset 位置

  • Metadata:

    支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串

  • ErrorCode:

    错误码

  • LogEndOffset:

    当前 partition 最新的 offset

  • Lag:

    未消费的消息个数



7399
7400
7401
# File 'lib/v20190819/models.rb', line 7399

def Lag
  @Lag
end

#LogEndOffsetObject

Parameters:

  • Partition:

    topic 的 partitionId

  • Offset:

    consumer 提交的 offset 位置

  • Metadata:

    支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串

  • ErrorCode:

    错误码

  • LogEndOffset:

    当前 partition 最新的 offset

  • Lag:

    未消费的消息个数



7399
7400
7401
# File 'lib/v20190819/models.rb', line 7399

def LogEndOffset
  @LogEndOffset
end

#MetadataObject

Parameters:

  • Partition:

    topic 的 partitionId

  • Offset:

    consumer 提交的 offset 位置

  • Metadata:

    支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串

  • ErrorCode:

    错误码

  • LogEndOffset:

    当前 partition 最新的 offset

  • Lag:

    未消费的消息个数



7399
7400
7401
# File 'lib/v20190819/models.rb', line 7399

def Metadata
  @Metadata
end

#OffsetObject

Parameters:

  • Partition:

    topic 的 partitionId

  • Offset:

    consumer 提交的 offset 位置

  • Metadata:

    支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串

  • ErrorCode:

    错误码

  • LogEndOffset:

    当前 partition 最新的 offset

  • Lag:

    未消费的消息个数



7399
7400
7401
# File 'lib/v20190819/models.rb', line 7399

def Offset
  @Offset
end

#PartitionObject

Parameters:

  • Partition:

    topic 的 partitionId

  • Offset:

    consumer 提交的 offset 位置

  • Metadata:

    支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串

  • ErrorCode:

    错误码

  • LogEndOffset:

    当前 partition 最新的 offset

  • Lag:

    未消费的消息个数



7399
7400
7401
# File 'lib/v20190819/models.rb', line 7399

def Partition
  @Partition
end

Instance Method Details

#deserialize(params) ⇒ Object



7410
7411
7412
7413
7414
7415
7416
7417
# File 'lib/v20190819/models.rb', line 7410

def deserialize(params)
  @Partition = params['Partition']
  @Offset = params['Offset']
  @Metadata = params['Metadata']
  @ErrorCode = params['ErrorCode']
  @LogEndOffset = params['LogEndOffset']
  @Lag = params['Lag']
end