RetentionPolicy Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the retention policy for the log.
public class RetentionPolicy : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Monitor.Models.RetentionPolicy>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Monitor.Models.RetentionPolicy>
type RetentionPolicy = class
interface IJsonModel<RetentionPolicy>
interface IPersistableModel<RetentionPolicy>
Public Class RetentionPolicy
Implements IJsonModel(Of RetentionPolicy), IPersistableModel(Of RetentionPolicy)
- Inheritance
-
RetentionPolicy
- Implements
Retention |
Initializes a new instance of RetentionPolicy. |
Days |
the number of days for the retention in days. A value of 0 will retain the events indefinitely. |
Is |
a value indicating whether the retention policy is enabled. |
IJson |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJson |
Writes the model to the provided Utf8JsonWriter. |
IPersistable |
Converts the provided BinaryData into a model. |
IPersistable |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistable |
Writes the model into a BinaryData. |
Toode | Versioonid |
---|---|
Azure SDK for .NET | Latest, Preview |
Toote „Azure SDK for .NET“ tagasiside
Azure SDK for .NET on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: