RetentionDescription interface
配置事件中心保留设置的属性
属性
| cleanup |
枚举清理策略的可能值 |
| retention |
保留此事件中心的事件的小时数。 仅当 cleanupPolicy 为 Delete 时,才使用此值。 如果 cleanupPolicy 为 Compact,则此属性的返回值为 Long.MaxValue |
| tombstone |
保留压缩事件中心的逻辑删除标记的小时数。 仅当 cleanupPolicy 为 Compact 时,才使用此值。 使用者必须在此指定的时间范围内完成读取墓碑标记(如果使用者从起始偏移开始)以确保它们获取压缩事件中心内逻辑删除标记所描述的特定键的有效快照 |
属性详细信息
cleanupPolicy
枚举清理策略的可能值
cleanupPolicy?: string
属性值
string
retentionTimeInHours
保留此事件中心的事件的小时数。 仅当 cleanupPolicy 为 Delete 时,才使用此值。 如果 cleanupPolicy 为 Compact,则此属性的返回值为 Long.MaxValue
retentionTimeInHours?: number
属性值
number
tombstoneRetentionTimeInHours
保留压缩事件中心的逻辑删除标记的小时数。 仅当 cleanupPolicy 为 Compact 时,才使用此值。 使用者必须在此指定的时间范围内完成读取墓碑标记(如果使用者从起始偏移开始)以确保它们获取压缩事件中心内逻辑删除标记所描述的特定键的有效快照
tombstoneRetentionTimeInHours?: number
属性值
number