Show / Hide Table of Contents

    Class MetricSettings

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

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

    Constructors

    MetricSettings()

    Initializes a new instance of the MetricSettings class.

    Declaration
    public MetricSettings ();

    MetricSettings(Boolean, Nullable<TimeSpan>, String, RetentionPolicy)

    Initializes a new instance of the MetricSettings class.

    Declaration
    public MetricSettings (bool enabled, Nullable<TimeSpan> timeGrain = null, string category = null, Microsoft.Azure.Management.Monitor.Models.RetentionPolicy retentionPolicy = null);
    Parameters
    Boolean enabled

    a value indicating whether this category is enabled.

    Nullable<TimeSpan> timeGrain

    the timegrain of the metric in ISO8601 format.

    String category

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

    RetentionPolicy retentionPolicy

    the retention policy for this category.

    Properties

    Category

    Gets or sets name of a Diagnostic Metric category for a resource type this setting is applied to. To obtain the list of Diagnostic metric 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 category 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 category.

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

    TimeGrain

    Gets or sets the timegrain of the metric in ISO8601 format.

    Declaration
    [Newtonsoft.Json.JsonProperty(PropertyName="timeGrain")]
    public Nullable<TimeSpan> TimeGrain { get; set; }
    Property Value
    Nullable<TimeSpan>

    Methods

    Validate()

    Validate the object.

    Declaration
    public virtual void Validate ();
    Exceptions
    ValidationException

    Thrown if validation fails

    Back to top Azure SDK for Net