Partager via


IMetricSettings Interface

Definition

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.MetricSettingsTypeConverter))]
public interface IMetricSettings : Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Runtime.IJsonSerializable
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.MetricSettingsTypeConverter))>]
type IMetricSettings = interface
    interface IJsonSerializable
Public Interface IMetricSettings
Implements IJsonSerializable
Derived
Attributes
Implements

Properties

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.

Enabled

a value indicating whether this category is enabled.

RetentionPolicyDay

the number of days for the retention in days. A value of 0 will retain the events indefinitely.

RetentionPolicyEnabled

a value indicating whether the retention policy is enabled.

TimeGrain

the timegrain of the metric in ISO8601 format.

Methods

ToJson(JsonObject, SerializationMode) (Inherited from IJsonSerializable)

Applies to