Class: TencentCloud::Dts::V20211206::GroupInfo

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

Overview

kafka消费者组详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(account = nil, consumergroupname = nil, description = nil, consumergroupoffset = nil, consumergrouplag = nil, latency = nil, stateofpartition = nil, createdat = nil, updatedat = nil, consumergroupstate = nil, partitionassignment = nil) ⇒ GroupInfo

Returns a new instance of GroupInfo.



4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
# File 'lib/v20211206/models.rb', line 4345

def initialize(=nil, consumergroupname=nil, description=nil, consumergroupoffset=nil, consumergrouplag=nil, latency=nil, stateofpartition=nil, createdat=nil, updatedat=nil, consumergroupstate=nil, partitionassignment=nil)
  @Account = 
  @ConsumerGroupName = consumergroupname
  @Description = description
  @ConsumerGroupOffset = consumergroupoffset
  @ConsumerGroupLag = consumergrouplag
  @Latency = latency
  @StateOfPartition = stateofpartition
  @CreatedAt = createdat
  @UpdatedAt = updatedat
  @ConsumerGroupState = consumergroupstate
  @PartitionAssignment = partitionassignment
end

Instance Attribute Details

#AccountObject

Parameters:

  • Account:

    消费者组账号

  • ConsumerGroupName:

    消费者组名称

  • Description:

    消费者组备注

  • ConsumerGroupOffset:

    消费组偏移量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区的偏移量。各分区的偏移量详见StateOfPartition字段

  • ConsumerGroupLag:

    消费组未消费的数据量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区未消费的数据量。各分区未消费数据量详见StateOfPartition字段

  • Latency:

    消费延迟(单位为秒)

  • StateOfPartition:

    各分区的消费状态

  • CreatedAt:

    消费者组创建时间,格式为YYYY-MM-DD hh:mm:ss

  • UpdatedAt:

    消费者组修改时间,格式为YYYY-MM-DD hh:mm:ss

  • ConsumerGroupState:

    消费者组状态,包括Dead、Empty、Stable等,只有Dead和Empty两种状态可以执行reset操作

  • PartitionAssignment:

    每个消费者正在消费的分区



4343
4344
4345
# File 'lib/v20211206/models.rb', line 4343

def Account
  @Account
end

#ConsumerGroupLagObject

Parameters:

  • Account:

    消费者组账号

  • ConsumerGroupName:

    消费者组名称

  • Description:

    消费者组备注

  • ConsumerGroupOffset:

    消费组偏移量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区的偏移量。各分区的偏移量详见StateOfPartition字段

  • ConsumerGroupLag:

    消费组未消费的数据量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区未消费的数据量。各分区未消费数据量详见StateOfPartition字段

  • Latency:

    消费延迟(单位为秒)

  • StateOfPartition:

    各分区的消费状态

  • CreatedAt:

    消费者组创建时间,格式为YYYY-MM-DD hh:mm:ss

  • UpdatedAt:

    消费者组修改时间,格式为YYYY-MM-DD hh:mm:ss

  • ConsumerGroupState:

    消费者组状态,包括Dead、Empty、Stable等,只有Dead和Empty两种状态可以执行reset操作

  • PartitionAssignment:

    每个消费者正在消费的分区



4343
4344
4345
# File 'lib/v20211206/models.rb', line 4343

def ConsumerGroupLag
  @ConsumerGroupLag
end

#ConsumerGroupNameObject

Parameters:

  • Account:

    消费者组账号

  • ConsumerGroupName:

    消费者组名称

  • Description:

    消费者组备注

  • ConsumerGroupOffset:

    消费组偏移量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区的偏移量。各分区的偏移量详见StateOfPartition字段

  • ConsumerGroupLag:

    消费组未消费的数据量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区未消费的数据量。各分区未消费数据量详见StateOfPartition字段

  • Latency:

    消费延迟(单位为秒)

  • StateOfPartition:

    各分区的消费状态

  • CreatedAt:

    消费者组创建时间,格式为YYYY-MM-DD hh:mm:ss

  • UpdatedAt:

    消费者组修改时间,格式为YYYY-MM-DD hh:mm:ss

  • ConsumerGroupState:

    消费者组状态,包括Dead、Empty、Stable等,只有Dead和Empty两种状态可以执行reset操作

  • PartitionAssignment:

    每个消费者正在消费的分区



4343
4344
4345
# File 'lib/v20211206/models.rb', line 4343

def ConsumerGroupName
  @ConsumerGroupName
end

#ConsumerGroupOffsetObject

Parameters:

  • Account:

    消费者组账号

  • ConsumerGroupName:

    消费者组名称

  • Description:

    消费者组备注

  • ConsumerGroupOffset:

    消费组偏移量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区的偏移量。各分区的偏移量详见StateOfPartition字段

  • ConsumerGroupLag:

    消费组未消费的数据量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区未消费的数据量。各分区未消费数据量详见StateOfPartition字段

  • Latency:

    消费延迟(单位为秒)

  • StateOfPartition:

    各分区的消费状态

  • CreatedAt:

    消费者组创建时间,格式为YYYY-MM-DD hh:mm:ss

  • UpdatedAt:

    消费者组修改时间,格式为YYYY-MM-DD hh:mm:ss

  • ConsumerGroupState:

    消费者组状态,包括Dead、Empty、Stable等,只有Dead和Empty两种状态可以执行reset操作

  • PartitionAssignment:

    每个消费者正在消费的分区



4343
4344
4345
# File 'lib/v20211206/models.rb', line 4343

def ConsumerGroupOffset
  @ConsumerGroupOffset
end

#ConsumerGroupStateObject

Parameters:

  • Account:

    消费者组账号

  • ConsumerGroupName:

    消费者组名称

  • Description:

    消费者组备注

  • ConsumerGroupOffset:

    消费组偏移量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区的偏移量。各分区的偏移量详见StateOfPartition字段

  • ConsumerGroupLag:

    消费组未消费的数据量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区未消费的数据量。各分区未消费数据量详见StateOfPartition字段

  • Latency:

    消费延迟(单位为秒)

  • StateOfPartition:

    各分区的消费状态

  • CreatedAt:

    消费者组创建时间,格式为YYYY-MM-DD hh:mm:ss

  • UpdatedAt:

    消费者组修改时间,格式为YYYY-MM-DD hh:mm:ss

  • ConsumerGroupState:

    消费者组状态,包括Dead、Empty、Stable等,只有Dead和Empty两种状态可以执行reset操作

  • PartitionAssignment:

    每个消费者正在消费的分区



4343
4344
4345
# File 'lib/v20211206/models.rb', line 4343

def ConsumerGroupState
  @ConsumerGroupState
end

#CreatedAtObject

Parameters:

  • Account:

    消费者组账号

  • ConsumerGroupName:

    消费者组名称

  • Description:

    消费者组备注

  • ConsumerGroupOffset:

    消费组偏移量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区的偏移量。各分区的偏移量详见StateOfPartition字段

  • ConsumerGroupLag:

    消费组未消费的数据量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区未消费的数据量。各分区未消费数据量详见StateOfPartition字段

  • Latency:

    消费延迟(单位为秒)

  • StateOfPartition:

    各分区的消费状态

  • CreatedAt:

    消费者组创建时间,格式为YYYY-MM-DD hh:mm:ss

  • UpdatedAt:

    消费者组修改时间,格式为YYYY-MM-DD hh:mm:ss

  • ConsumerGroupState:

    消费者组状态,包括Dead、Empty、Stable等,只有Dead和Empty两种状态可以执行reset操作

  • PartitionAssignment:

    每个消费者正在消费的分区



4343
4344
4345
# File 'lib/v20211206/models.rb', line 4343

def CreatedAt
  @CreatedAt
end

#DescriptionObject

Parameters:

  • Account:

    消费者组账号

  • ConsumerGroupName:

    消费者组名称

  • Description:

    消费者组备注

  • ConsumerGroupOffset:

    消费组偏移量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区的偏移量。各分区的偏移量详见StateOfPartition字段

  • ConsumerGroupLag:

    消费组未消费的数据量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区未消费的数据量。各分区未消费数据量详见StateOfPartition字段

  • Latency:

    消费延迟(单位为秒)

  • StateOfPartition:

    各分区的消费状态

  • CreatedAt:

    消费者组创建时间,格式为YYYY-MM-DD hh:mm:ss

  • UpdatedAt:

    消费者组修改时间,格式为YYYY-MM-DD hh:mm:ss

  • ConsumerGroupState:

    消费者组状态,包括Dead、Empty、Stable等,只有Dead和Empty两种状态可以执行reset操作

  • PartitionAssignment:

    每个消费者正在消费的分区



4343
4344
4345
# File 'lib/v20211206/models.rb', line 4343

def Description
  @Description
end

#LatencyObject

Parameters:

  • Account:

    消费者组账号

  • ConsumerGroupName:

    消费者组名称

  • Description:

    消费者组备注

  • ConsumerGroupOffset:

    消费组偏移量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区的偏移量。各分区的偏移量详见StateOfPartition字段

  • ConsumerGroupLag:

    消费组未消费的数据量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区未消费的数据量。各分区未消费数据量详见StateOfPartition字段

  • Latency:

    消费延迟(单位为秒)

  • StateOfPartition:

    各分区的消费状态

  • CreatedAt:

    消费者组创建时间,格式为YYYY-MM-DD hh:mm:ss

  • UpdatedAt:

    消费者组修改时间,格式为YYYY-MM-DD hh:mm:ss

  • ConsumerGroupState:

    消费者组状态,包括Dead、Empty、Stable等,只有Dead和Empty两种状态可以执行reset操作

  • PartitionAssignment:

    每个消费者正在消费的分区



4343
4344
4345
# File 'lib/v20211206/models.rb', line 4343

def Latency
  @Latency
end

#PartitionAssignmentObject

Parameters:

  • Account:

    消费者组账号

  • ConsumerGroupName:

    消费者组名称

  • Description:

    消费者组备注

  • ConsumerGroupOffset:

    消费组偏移量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区的偏移量。各分区的偏移量详见StateOfPartition字段

  • ConsumerGroupLag:

    消费组未消费的数据量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区未消费的数据量。各分区未消费数据量详见StateOfPartition字段

  • Latency:

    消费延迟(单位为秒)

  • StateOfPartition:

    各分区的消费状态

  • CreatedAt:

    消费者组创建时间,格式为YYYY-MM-DD hh:mm:ss

  • UpdatedAt:

    消费者组修改时间,格式为YYYY-MM-DD hh:mm:ss

  • ConsumerGroupState:

    消费者组状态,包括Dead、Empty、Stable等,只有Dead和Empty两种状态可以执行reset操作

  • PartitionAssignment:

    每个消费者正在消费的分区



4343
4344
4345
# File 'lib/v20211206/models.rb', line 4343

def PartitionAssignment
  @PartitionAssignment
end

#StateOfPartitionObject

Parameters:

  • Account:

    消费者组账号

  • ConsumerGroupName:

    消费者组名称

  • Description:

    消费者组备注

  • ConsumerGroupOffset:

    消费组偏移量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区的偏移量。各分区的偏移量详见StateOfPartition字段

  • ConsumerGroupLag:

    消费组未消费的数据量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区未消费的数据量。各分区未消费数据量详见StateOfPartition字段

  • Latency:

    消费延迟(单位为秒)

  • StateOfPartition:

    各分区的消费状态

  • CreatedAt:

    消费者组创建时间,格式为YYYY-MM-DD hh:mm:ss

  • UpdatedAt:

    消费者组修改时间,格式为YYYY-MM-DD hh:mm:ss

  • ConsumerGroupState:

    消费者组状态,包括Dead、Empty、Stable等,只有Dead和Empty两种状态可以执行reset操作

  • PartitionAssignment:

    每个消费者正在消费的分区



4343
4344
4345
# File 'lib/v20211206/models.rb', line 4343

def StateOfPartition
  @StateOfPartition
end

#UpdatedAtObject

Parameters:

  • Account:

    消费者组账号

  • ConsumerGroupName:

    消费者组名称

  • Description:

    消费者组备注

  • ConsumerGroupOffset:

    消费组偏移量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区的偏移量。各分区的偏移量详见StateOfPartition字段

  • ConsumerGroupLag:

    消费组未消费的数据量。该字段是为了兼容以前单Partition的情况,取值为最后一个分区未消费的数据量。各分区未消费数据量详见StateOfPartition字段

  • Latency:

    消费延迟(单位为秒)

  • StateOfPartition:

    各分区的消费状态

  • CreatedAt:

    消费者组创建时间,格式为YYYY-MM-DD hh:mm:ss

  • UpdatedAt:

    消费者组修改时间,格式为YYYY-MM-DD hh:mm:ss

  • ConsumerGroupState:

    消费者组状态,包括Dead、Empty、Stable等,只有Dead和Empty两种状态可以执行reset操作

  • PartitionAssignment:

    每个消费者正在消费的分区



4343
4344
4345
# File 'lib/v20211206/models.rb', line 4343

def UpdatedAt
  @UpdatedAt
end

Instance Method Details

#deserialize(params) ⇒ Object



4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
# File 'lib/v20211206/models.rb', line 4359

def deserialize(params)
  @Account = params['Account']
  @ConsumerGroupName = params['ConsumerGroupName']
  @Description = params['Description']
  @ConsumerGroupOffset = params['ConsumerGroupOffset']
  @ConsumerGroupLag = params['ConsumerGroupLag']
  @Latency = params['Latency']
  unless params['StateOfPartition'].nil?
    @StateOfPartition = []
    params['StateOfPartition'].each do |i|
      monitorinfo_tmp = MonitorInfo.new
      monitorinfo_tmp.deserialize(i)
      @StateOfPartition << monitorinfo_tmp
    end
  end
  @CreatedAt = params['CreatedAt']
  @UpdatedAt = params['UpdatedAt']
  @ConsumerGroupState = params['ConsumerGroupState']
  unless params['PartitionAssignment'].nil?
    @PartitionAssignment = []
    params['PartitionAssignment'].each do |i|
      partitionassignment_tmp = PartitionAssignment.new
      partitionassignment_tmp.deserialize(i)
      @PartitionAssignment << partitionassignment_tmp
    end
  end
end