MetricDefinition Class

Definition

Metric definition class specifies the metadata for a metric.

public class MetricDefinition
type MetricDefinition = class
Public Class MetricDefinition
Inheritance
MetricDefinition

Constructors

MetricDefinition()

Initializes a new instance of the MetricDefinition class.

MetricDefinition(Nullable<Boolean>, String, String, LocalizableString, String, String, String, String, Nullable<AggregationType>, IList<Nullable<AggregationType>>, IList<MetricAvailability>, String, IList<LocalizableString>)

Initializes a new instance of the MetricDefinition class.

Properties

Category

Gets or sets custom category name for this metric.

Dimensions

Gets or sets the name and the display name of the dimension, i.e. it is a localizable string.

DisplayDescription

Gets or sets detailed description of this metric.

Id

Gets or sets the resource identifier of the metric definition.

IsDimensionRequired

Gets or sets flag to indicate whether the dimension is required.

MetricAvailabilities

Gets or sets the collection of what aggregation intervals are available to be queried.

MetricClass

Gets or sets the class of the metric. Possible values include: 'Availability', 'Transactions', 'Errors', 'Latency', 'Saturation'

Name

Gets or sets the name and the display name of the metric, i.e. it is a localizable string.

NamespaceProperty

Gets or sets the namespace the metric belongs to.

PrimaryAggregationType

Gets or sets the primary aggregation type value defining how to use the values for display. Possible values include: 'None', 'Average', 'Count', 'Minimum', 'Maximum', 'Total'

ResourceId

Gets or sets the resource identifier of the resource that emitted the metric.

SupportedAggregationTypes

Gets or sets the collection of what aggregation types are supported.

Unit

Gets or sets the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond', 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores', 'MilliCores', 'NanoCores', 'BitsPerSecond'

Methods

Validate()

Validate the object.

Applies to