Share via


MetricSettings Class

Definition

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

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

Constructors

MetricSettings()

Creates an new MetricSettings instance.

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

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of MetricSettings.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of MetricSettings.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Monitor.DiagnosticSetting.Models.Api20210501Preview.IMetricSettings.

FromJsonString(String)

Creates a new instance of MetricSettings, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of MetricSettings into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to