Share via


Metric Class

Definition

The result data of a query.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.MetricTypeConverter))]
public class Metric : Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IMetric
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.MetricTypeConverter))>]
type Metric = class
    interface IMetric
    interface IJsonSerializable
Public Class Metric
Implements IMetric
Inheritance
Metric
Attributes
Implements

Constructors

Metric()

Creates an new Metric instance.

Properties

DisplayDescription

Detailed description of this metric.

ErrorCode

'Success' or the error details on query failures for this metric.

ErrorMessage

Error message encountered querying this specific metric.

Id

The metric Id.

NameLocalizedValue

The display name.

NameValue

The invariant value.

Timesery

The time series returned when a data query is performed.

Type

The resource type of the metric resource.

Unit

The unit of the metric.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of Metric.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of Metric.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Metric.Models.IMetric.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of Metric into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to