Class: TencentCloud::Dts::V20211206::GroupInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dts::V20211206::GroupInfo
- Defined in:
- lib/v20211206/models.rb
Overview
kafka消费者组详情
Instance Attribute Summary collapse
- #Account ⇒ Object
- #ConsumerGroupLag ⇒ Object
- #ConsumerGroupName ⇒ Object
- #ConsumerGroupOffset ⇒ Object
- #ConsumerGroupState ⇒ Object
- #CreatedAt ⇒ Object
- #Description ⇒ Object
- #Latency ⇒ Object
- #PartitionAssignment ⇒ Object
- #StateOfPartition ⇒ Object
- #UpdatedAt ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(account = nil, consumergroupname = nil, description = nil, consumergroupoffset = nil, consumergrouplag = nil, latency = nil, stateofpartition = nil, createdat = nil, updatedat = nil, consumergroupstate = nil, partitionassignment = nil) ⇒ GroupInfo
constructor
A new instance of GroupInfo.
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(account=nil, consumergroupname=nil, description=nil, consumergroupoffset=nil, consumergrouplag=nil, latency=nil, stateofpartition=nil, createdat=nil, updatedat=nil, consumergroupstate=nil, partitionassignment=nil) @Account = 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
#Account ⇒ Object
4343 4344 4345 |
# File 'lib/v20211206/models.rb', line 4343 def Account @Account end |
#ConsumerGroupLag ⇒ Object
4343 4344 4345 |
# File 'lib/v20211206/models.rb', line 4343 def ConsumerGroupLag @ConsumerGroupLag end |
#ConsumerGroupName ⇒ Object
4343 4344 4345 |
# File 'lib/v20211206/models.rb', line 4343 def ConsumerGroupName @ConsumerGroupName end |
#ConsumerGroupOffset ⇒ Object
4343 4344 4345 |
# File 'lib/v20211206/models.rb', line 4343 def ConsumerGroupOffset @ConsumerGroupOffset end |
#ConsumerGroupState ⇒ Object
4343 4344 4345 |
# File 'lib/v20211206/models.rb', line 4343 def ConsumerGroupState @ConsumerGroupState end |
#CreatedAt ⇒ Object
4343 4344 4345 |
# File 'lib/v20211206/models.rb', line 4343 def CreatedAt @CreatedAt end |
#Description ⇒ Object
4343 4344 4345 |
# File 'lib/v20211206/models.rb', line 4343 def Description @Description end |
#Latency ⇒ Object
4343 4344 4345 |
# File 'lib/v20211206/models.rb', line 4343 def Latency @Latency end |
#PartitionAssignment ⇒ Object
4343 4344 4345 |
# File 'lib/v20211206/models.rb', line 4343 def PartitionAssignment @PartitionAssignment end |
#StateOfPartition ⇒ Object
4343 4344 4345 |
# File 'lib/v20211206/models.rb', line 4343 def StateOfPartition @StateOfPartition end |
#UpdatedAt ⇒ Object
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 |