LogSettings Class

Definition

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

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.LogSettingsTypeConverter))]
public class LogSettings : Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.ILogSettings
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.LogSettingsTypeConverter))>]
type LogSettings = class
    interface ILogSettings
    interface IJsonSerializable
Public Class LogSettings
Implements ILogSettings
Inheritance
LogSettings
Attributes
Implements

Constructors

LogSettings()

Creates an new LogSettings instance.

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.

Enabled

a value indicating whether this log is enabled.

RetentionPolicyDay

the number of days for the retention in days. A value of 0 will retain the events indefinitely.

RetentionPolicyEnabled

a value indicating whether the retention policy is enabled.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of LogSettings.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of LogSettings.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.ILogSettings.

FromJsonString(String)

Creates a new instance of LogSettings, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of LogSettings into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to