RetentionPolicy Class
By default, Storage Analytics will not delete any logging or metrics data. Blobs will continue to be written until the shared 20TB limit is reached. Once the 20TB limit is reached, Storage Analytics will stop writing new data and will not resume until free space is available. This 20TB limit is independent of the total limit for your storage account.
There are two ways to delete Storage Analytics data: by manually making deletion requests or by setting a data retention policy. Manual requests to delete Storage Analytics data are billable, but delete requests resulting from a retention policy are not billable.
- Inheritance
-
builtins.objectRetentionPolicy
Constructor
RetentionPolicy(enabled=False, days=None)
Parameters
Name | Description |
---|---|
enabled
|
Indicates whether a retention policy is enabled for the storage service. If disabled, logging and metrics data will be retained infinitely by the service unless explicitly deleted. Default value: False
|
days
|
Required if enabled is true. Indicates the number of days that metrics or logging data should be retained. All data older than this value will be deleted. The minimum value you can specify is 1; the largest value is 365 (one year). Default value: None
|
Azure SDK for Python