你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RetentionDescription interface

配置事件中心保留设置的属性

属性

cleanupPolicy

枚举清理策略的可能值

retentionTimeInHours

保留此事件中心的事件的小时数。 仅当 cleanupPolicy 为 Delete 时,才使用此值。 如果 cleanupPolicy 为 Compact,则此属性的返回值为 Long.MaxValue

tombstoneRetentionTimeInHours

保留压缩事件中心的逻辑删除标记的小时数。 仅当 cleanupPolicy 为 Compact 时,才使用此值。 使用者必须在此指定的时间范围内完成读取墓碑标记(如果使用者从起始偏移开始)以确保它们获取压缩事件中心内逻辑删除标记所描述的特定键的有效快照

属性详细信息

cleanupPolicy

枚举清理策略的可能值

cleanupPolicy?: string

属性值

string

retentionTimeInHours

保留此事件中心的事件的小时数。 仅当 cleanupPolicy 为 Delete 时,才使用此值。 如果 cleanupPolicy 为 Compact,则此属性的返回值为 Long.MaxValue

retentionTimeInHours?: number

属性值

number

tombstoneRetentionTimeInHours

保留压缩事件中心的逻辑删除标记的小时数。 仅当 cleanupPolicy 为 Compact 时,才使用此值。 使用者必须在此指定的时间范围内完成读取墓碑标记(如果使用者从起始偏移开始)以确保它们获取压缩事件中心内逻辑删除标记所描述的特定键的有效快照

tombstoneRetentionTimeInHours?: number

属性值

number