Compartilhar via


MetricSpecification Class

Definition

Specifications of the Metrics for Azure Monitoring

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.Api20220501.MetricSpecificationTypeConverter))]
public class MetricSpecification : Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.Api20220501.IMetricSpecification
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.Api20220501.MetricSpecificationTypeConverter))>]
type MetricSpecification = class
    interface IMetricSpecification
    interface IJsonSerializable
Public Class MetricSpecification
Implements IMetricSpecification
Inheritance
MetricSpecification
Attributes
Implements

Constructors

MetricSpecification()

Creates an new MetricSpecification instance.

Properties

AggregationType

Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.

Dimension

Dimensions of the metric

DisplayDescription

Localized friendly description of the metric

DisplayName

Localized friendly display name of the metric

FillGapWithZero

Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published.

InternalMetricName

Internal metric name.

Name

Name of the metric

Unit

Unit that makes sense for the metric

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of MetricSpecification.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of MetricSpecification.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.AppConfiguration.Models.Api20220501.IMetricSpecification.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of MetricSpecification into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to