RetentionPolicy Class
Specifies the retention policy for the log.
All required parameters must be populated in order to send to server.
Constructor
RetentionPolicy(*, enabled: bool, days: int, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
enabled
|
a value indicating whether the retention policy is enabled. Required. |
|
days
|
the number of days for the retention in days. A value of 0 will retain the events indefinitely. Required. |