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

RetentionDescription Class

Properties to configure retention settings for the eventhub.

Inheritance
azure.mgmt.eventhub._serialization.Model
RetentionDescription

Constructor

RetentionDescription(*, cleanup_policy: str | _models.CleanupPolicyRetentionDescription | None = None, retention_time_in_hours: int | None = None, min_compaction_lag_in_mins: int | None = None, tombstone_retention_time_in_hours: int | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
cleanup_policy

Enumerates the possible values for cleanup policy. Known values are: "Delete", "Compact", and "DeleteOrCompact".

retention_time_in_hours
int

Number of hours to retain the events for this Event Hub. This should be positive value upto namespace SKU max. -1 is a special case where retention time is infinite, but the size of an entity is restricted and its size depends on namespace SKU type.

min_compaction_lag_in_mins
int

The minimum time a message will remain ineligible for compaction in the log. This value is used when cleanupPolicy is Compact or DeleteOrCompact.

tombstone_retention_time_in_hours
int

Number of hours to retain the tombstone markers of a compacted Event Hub. This value is used when cleanupPolicy is Compact or DeleteOrCompact. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub.

Variables

Name Description
cleanup_policy

Enumerates the possible values for cleanup policy. Known values are: "Delete", "Compact", and "DeleteOrCompact".

retention_time_in_hours
int

Number of hours to retain the events for this Event Hub. This should be positive value upto namespace SKU max. -1 is a special case where retention time is infinite, but the size of an entity is restricted and its size depends on namespace SKU type.

min_compaction_lag_in_mins
int

The minimum time a message will remain ineligible for compaction in the log. This value is used when cleanupPolicy is Compact or DeleteOrCompact.

tombstone_retention_time_in_hours
int

Number of hours to retain the tombstone markers of a compacted Event Hub. This value is used when cleanupPolicy is Compact or DeleteOrCompact. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub.