共用方式為


MetricSettings Class

Definition

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

public class MetricSettings
type MetricSettings = class
Public Class MetricSettings
Inheritance
MetricSettings

Constructors

MetricSettings()

Initializes a new instance of the MetricSettings class.

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

Initializes a new instance of the MetricSettings class.

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.

Enabled

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

RetentionPolicy

Gets or sets the retention policy for this category.

TimeGrain

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

Methods

Validate()

Validate the object.

Applies to