Share via


ResourceMetricDefinition Class

Definition

Metadata for the metrics.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceMetricDefinitionTypeConverter))]
public class ResourceMetricDefinition : Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IResourceMetricDefinition, Microsoft.Azure.PowerShell.Cmdlets.Functions.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.ResourceMetricDefinitionTypeConverter))>]
type ResourceMetricDefinition = class
    interface IResourceMetricDefinition
    interface IJsonSerializable
    interface IProxyOnlyResource
    interface IValidates
Public Class ResourceMetricDefinition
Implements IResourceMetricDefinition, IValidates
Inheritance
ResourceMetricDefinition
Attributes
Implements

Constructors

ResourceMetricDefinition()

Creates an new ResourceMetricDefinition instance.

Properties

Id

Resource Id.

Kind

Kind of resource.

MetricAvailability

List of time grains supported for the metric together with retention period.

Name

Resource Name.

PrimaryAggregationType

Primary aggregation type.

ResourceMetricDefinitionProperty

Resource metric definition properties.

ResourceUri

Resource URI.

Type

Resource type.

Unit

Unit of the metric.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of ResourceMetricDefinition.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of ResourceMetricDefinition.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Functions.Models.Api20231201.IResourceMetricDefinition.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of ResourceMetricDefinition into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to