Class: TencentCloud::Ckafka::V20190819::Config

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(retention = nil, mininsyncreplicas = nil, cleanuppolicy = nil, segmentms = nil, uncleanleaderelectionenable = nil, segmentbytes = nil, maxmessagebytes = nil, retentionbytes = nil, logmsgtimestamptype = nil) ⇒ Config

Returns a new instance of Config.



1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
# File 'lib/v20190819/models.rb', line 1059

def initialize(retention=nil, mininsyncreplicas=nil, cleanuppolicy=nil, segmentms=nil, uncleanleaderelectionenable=nil, segmentbytes=nil, maxmessagebytes=nil, retentionbytes=nil, logmsgtimestamptype=nil)
  @Retention = retention
  @MinInsyncReplicas = mininsyncreplicas
  @CleanUpPolicy = cleanuppolicy
  @SegmentMs = segmentms
  @UncleanLeaderElectionEnable = uncleanleaderelectionenable
  @SegmentBytes = segmentbytes
  @MaxMessageBytes = maxmessagebytes
  @RetentionBytes = retentionbytes
  @LogMsgTimestampType = logmsgtimestamptype
end

Instance Attribute Details

#CleanUpPolicyObject

注意:此字段可能返回 null,表示取不到有效值。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Retention:

    消息保留时间,单位ms。

  • MinInsyncReplicas:

    最小同步复制数

  • CleanUpPolicy:

    日志清理模式,默认 delete。

  • SegmentMs:

    Segment 分片滚动的时长,单位ms。

  • UncleanLeaderElectionEnable:

    0表示 false。 1表示 true。

  • SegmentBytes:

    Segment 分片滚动的字节数,单位bytes

  • MaxMessageBytes:

    最大消息字节数,单位bytes

  • RetentionBytes:

    消息保留文件大小,单位Bytes

  • LogMsgTimestampType:

    消息保存的时间类型,CreateTime表示生产者创建这条消息的时间;LogAppendTime表示broker接收到消息的时间。



1057
1058
1059
# File 'lib/v20190819/models.rb', line 1057

def CleanUpPolicy
  @CleanUpPolicy
end

#LogMsgTimestampTypeObject

注意:此字段可能返回 null,表示取不到有效值。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Retention:

    消息保留时间,单位ms。

  • MinInsyncReplicas:

    最小同步复制数

  • CleanUpPolicy:

    日志清理模式,默认 delete。

  • SegmentMs:

    Segment 分片滚动的时长,单位ms。

  • UncleanLeaderElectionEnable:

    0表示 false。 1表示 true。

  • SegmentBytes:

    Segment 分片滚动的字节数,单位bytes

  • MaxMessageBytes:

    最大消息字节数,单位bytes

  • RetentionBytes:

    消息保留文件大小,单位Bytes

  • LogMsgTimestampType:

    消息保存的时间类型,CreateTime表示生产者创建这条消息的时间;LogAppendTime表示broker接收到消息的时间。



1057
1058
1059
# File 'lib/v20190819/models.rb', line 1057

def LogMsgTimestampType
  @LogMsgTimestampType
end

#MaxMessageBytesObject

注意:此字段可能返回 null,表示取不到有效值。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Retention:

    消息保留时间,单位ms。

  • MinInsyncReplicas:

    最小同步复制数

  • CleanUpPolicy:

    日志清理模式,默认 delete。

  • SegmentMs:

    Segment 分片滚动的时长,单位ms。

  • UncleanLeaderElectionEnable:

    0表示 false。 1表示 true。

  • SegmentBytes:

    Segment 分片滚动的字节数,单位bytes

  • MaxMessageBytes:

    最大消息字节数,单位bytes

  • RetentionBytes:

    消息保留文件大小,单位Bytes

  • LogMsgTimestampType:

    消息保存的时间类型,CreateTime表示生产者创建这条消息的时间;LogAppendTime表示broker接收到消息的时间。



1057
1058
1059
# File 'lib/v20190819/models.rb', line 1057

def MaxMessageBytes
  @MaxMessageBytes
end

#MinInsyncReplicasObject

注意:此字段可能返回 null,表示取不到有效值。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Retention:

    消息保留时间,单位ms。

  • MinInsyncReplicas:

    最小同步复制数

  • CleanUpPolicy:

    日志清理模式,默认 delete。

  • SegmentMs:

    Segment 分片滚动的时长,单位ms。

  • UncleanLeaderElectionEnable:

    0表示 false。 1表示 true。

  • SegmentBytes:

    Segment 分片滚动的字节数,单位bytes

  • MaxMessageBytes:

    最大消息字节数,单位bytes

  • RetentionBytes:

    消息保留文件大小,单位Bytes

  • LogMsgTimestampType:

    消息保存的时间类型,CreateTime表示生产者创建这条消息的时间;LogAppendTime表示broker接收到消息的时间。



1057
1058
1059
# File 'lib/v20190819/models.rb', line 1057

def MinInsyncReplicas
  @MinInsyncReplicas
end

#RetentionObject

注意:此字段可能返回 null,表示取不到有效值。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Retention:

    消息保留时间,单位ms。

  • MinInsyncReplicas:

    最小同步复制数

  • CleanUpPolicy:

    日志清理模式,默认 delete。

  • SegmentMs:

    Segment 分片滚动的时长,单位ms。

  • UncleanLeaderElectionEnable:

    0表示 false。 1表示 true。

  • SegmentBytes:

    Segment 分片滚动的字节数,单位bytes

  • MaxMessageBytes:

    最大消息字节数,单位bytes

  • RetentionBytes:

    消息保留文件大小,单位Bytes

  • LogMsgTimestampType:

    消息保存的时间类型,CreateTime表示生产者创建这条消息的时间;LogAppendTime表示broker接收到消息的时间。



1057
1058
1059
# File 'lib/v20190819/models.rb', line 1057

def Retention
  @Retention
end

#RetentionBytesObject

注意:此字段可能返回 null,表示取不到有效值。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Retention:

    消息保留时间,单位ms。

  • MinInsyncReplicas:

    最小同步复制数

  • CleanUpPolicy:

    日志清理模式,默认 delete。

  • SegmentMs:

    Segment 分片滚动的时长,单位ms。

  • UncleanLeaderElectionEnable:

    0表示 false。 1表示 true。

  • SegmentBytes:

    Segment 分片滚动的字节数,单位bytes

  • MaxMessageBytes:

    最大消息字节数,单位bytes

  • RetentionBytes:

    消息保留文件大小,单位Bytes

  • LogMsgTimestampType:

    消息保存的时间类型,CreateTime表示生产者创建这条消息的时间;LogAppendTime表示broker接收到消息的时间。



1057
1058
1059
# File 'lib/v20190819/models.rb', line 1057

def RetentionBytes
  @RetentionBytes
end

#SegmentBytesObject

注意:此字段可能返回 null,表示取不到有效值。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Retention:

    消息保留时间,单位ms。

  • MinInsyncReplicas:

    最小同步复制数

  • CleanUpPolicy:

    日志清理模式,默认 delete。

  • SegmentMs:

    Segment 分片滚动的时长,单位ms。

  • UncleanLeaderElectionEnable:

    0表示 false。 1表示 true。

  • SegmentBytes:

    Segment 分片滚动的字节数,单位bytes

  • MaxMessageBytes:

    最大消息字节数,单位bytes

  • RetentionBytes:

    消息保留文件大小,单位Bytes

  • LogMsgTimestampType:

    消息保存的时间类型,CreateTime表示生产者创建这条消息的时间;LogAppendTime表示broker接收到消息的时间。



1057
1058
1059
# File 'lib/v20190819/models.rb', line 1057

def SegmentBytes
  @SegmentBytes
end

#SegmentMsObject

注意:此字段可能返回 null,表示取不到有效值。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Retention:

    消息保留时间,单位ms。

  • MinInsyncReplicas:

    最小同步复制数

  • CleanUpPolicy:

    日志清理模式,默认 delete。

  • SegmentMs:

    Segment 分片滚动的时长,单位ms。

  • UncleanLeaderElectionEnable:

    0表示 false。 1表示 true。

  • SegmentBytes:

    Segment 分片滚动的字节数,单位bytes

  • MaxMessageBytes:

    最大消息字节数,单位bytes

  • RetentionBytes:

    消息保留文件大小,单位Bytes

  • LogMsgTimestampType:

    消息保存的时间类型,CreateTime表示生产者创建这条消息的时间;LogAppendTime表示broker接收到消息的时间。



1057
1058
1059
# File 'lib/v20190819/models.rb', line 1057

def SegmentMs
  @SegmentMs
end

#UncleanLeaderElectionEnableObject

注意:此字段可能返回 null,表示取不到有效值。 delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Retention:

    消息保留时间,单位ms。

  • MinInsyncReplicas:

    最小同步复制数

  • CleanUpPolicy:

    日志清理模式,默认 delete。

  • SegmentMs:

    Segment 分片滚动的时长,单位ms。

  • UncleanLeaderElectionEnable:

    0表示 false。 1表示 true。

  • SegmentBytes:

    Segment 分片滚动的字节数,单位bytes

  • MaxMessageBytes:

    最大消息字节数,单位bytes

  • RetentionBytes:

    消息保留文件大小,单位Bytes

  • LogMsgTimestampType:

    消息保存的时间类型,CreateTime表示生产者创建这条消息的时间;LogAppendTime表示broker接收到消息的时间。



1057
1058
1059
# File 'lib/v20190819/models.rb', line 1057

def UncleanLeaderElectionEnable
  @UncleanLeaderElectionEnable
end

Instance Method Details

#deserialize(params) ⇒ Object



1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
# File 'lib/v20190819/models.rb', line 1071

def deserialize(params)
  @Retention = params['Retention']
  @MinInsyncReplicas = params['MinInsyncReplicas']
  @CleanUpPolicy = params['CleanUpPolicy']
  @SegmentMs = params['SegmentMs']
  @UncleanLeaderElectionEnable = params['UncleanLeaderElectionEnable']
  @SegmentBytes = params['SegmentBytes']
  @MaxMessageBytes = params['MaxMessageBytes']
  @RetentionBytes = params['RetentionBytes']
  @LogMsgTimestampType = params['LogMsgTimestampType']
end