Show / Hide Table of Contents

    Class LogSettings

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

    Inheritance
    Object
    LogSettings
    Namespace: System.Dynamic.ExpandoObject
    Assembly: Microsoft.Azure.Management.Monitor.dll
    Syntax
    public class LogSettings

    Constructors

    LogSettings()

    Initializes a new instance of the LogSettings class.

    Declaration
    public LogSettings ();

    LogSettings(Boolean, String, RetentionPolicy)

    Initializes a new instance of the LogSettings class.

    Declaration
    public LogSettings (bool enabled, string category = null, Microsoft.Azure.Management.Monitor.Models.RetentionPolicy retentionPolicy = null);
    Parameters
    Boolean enabled

    a value indicating whether this log is enabled.

    String 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.

    RetentionPolicy retentionPolicy

    the retention policy for this log.

    Properties

    Category

    Gets or sets 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.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="category")]
    public string Category { get; set; }
    Property Value
    String

    Enabled

    Gets or sets a value indicating whether this log is enabled.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="enabled")]
    public bool Enabled { get; set; }
    Property Value
    Boolean

    RetentionPolicy

    Gets or sets the retention policy for this log.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="retentionPolicy")]
    public Microsoft.Azure.Management.Monitor.Models.RetentionPolicy RetentionPolicy { get; set; }
    Property Value
    RetentionPolicy

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net