MetricSettings Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- 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
Azure SDK for .NET