MetricSettings Constructors

Definition

Overloads

MetricSettings()

Initializes a new instance of the MetricSettings class.

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

Initializes a new instance of the MetricSettings class.

MetricSettings()

Initializes a new instance of the MetricSettings class.

public MetricSettings ();
Public Sub New ()

Applies to

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

Initializes a new instance of the MetricSettings class.

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

Parameters

enabled
Boolean

a value indicating whether this category is enabled.

timeGrain
Nullable<TimeSpan>

the timegrain of the metric in ISO8601 format.

category
String

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.

Applies to