LogSettings Constructors

Definition

Overloads

LogSettings()

Initializes a new instance of the LogSettings class.

LogSettings(Boolean, String, RetentionPolicy)

Initializes a new instance of the LogSettings class.

LogSettings()

Initializes a new instance of the LogSettings class.

public LogSettings ();
Public Sub New ()

Applies to

LogSettings(Boolean, String, RetentionPolicy)

Initializes a new instance of the LogSettings class.

public LogSettings (bool enabled, string category = default, Microsoft.Azure.Management.Monitor.Models.RetentionPolicy retentionPolicy = default);
new Microsoft.Azure.Management.Monitor.Models.LogSettings : bool * string * Microsoft.Azure.Management.Monitor.Models.RetentionPolicy -> Microsoft.Azure.Management.Monitor.Models.LogSettings
Public Sub New (enabled As Boolean, Optional category As String = Nothing, Optional retentionPolicy As RetentionPolicy = Nothing)

Parameters

enabled
Boolean

a value indicating whether this log is enabled.

category
String

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.

retentionPolicy
RetentionPolicy

the retention policy for this log.

Applies to