LogSettings Class

Definition

Part of MultiTenantDiagnosticSettings. Specifies the settings for a particular log.

public class LogSettings : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Monitor.Models.LogSettings>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Monitor.Models.LogSettings>
type LogSettings = class
    interface IJsonModel<LogSettings>
    interface IPersistableModel<LogSettings>
Public Class LogSettings
Implements IJsonModel(Of LogSettings), IPersistableModel(Of LogSettings)
Inheritance
LogSettings
Implements

Constructors

LogSettings(Boolean)

Initializes a new instance of LogSettings.

Properties

Category

Name of a Diagnostic Log category for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.

CategoryGroup

Name of a Diagnostic Log category group for a resource type this setting is applied to. To obtain the list of Diagnostic Log categories for a resource, first perform a GET diagnostic settings operation.

IsEnabled

a value indicating whether this log is enabled.

RetentionPolicy

the retention policy for this log.

Explicit Interface Implementations

IJsonModel<LogSettings>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<LogSettings>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LogSettings>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LogSettings>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<LogSettings>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to