Table of Contents

Class MetricDefinition

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent.Models
Assembly
Microsoft.Azure.Management.CosmosDB.Fluent.dll

The definition of a metric.

public class MetricDefinition
Inheritance
MetricDefinition
Inherited Members

Constructors

MetricDefinition()

Initializes a new instance of the MetricDefinition class.

public MetricDefinition()

MetricDefinition(IList<MetricAvailability>, PrimaryAggregationType, UnitType, string, MetricName)

Initializes a new instance of the MetricDefinition class.

public MetricDefinition(IList<MetricAvailability> metricAvailabilities = null, PrimaryAggregationType primaryAggregationType = null, UnitType unit = null, string resourceUri = null, MetricName name = null)

Parameters

metricAvailabilities IList<MetricAvailability>

The list of metric availabilities for the account.

primaryAggregationType PrimaryAggregationType

The primary aggregation type of the metric. Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last'

unit UnitType

The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'

resourceUri string

The resource uri of the database.

name MetricName

The name information for the metric.

Properties

MetricAvailabilities

Gets the list of metric availabilities for the account.

public IList<MetricAvailability> MetricAvailabilities { get; }

Property Value

IList<MetricAvailability>

Name

Gets the name information for the metric.

public MetricName Name { get; }

Property Value

MetricName

PrimaryAggregationType

Gets the primary aggregation type of the metric. Possible values include: 'None', 'Average', 'Total', 'Minimum', 'Maximum', 'Last'

public PrimaryAggregationType PrimaryAggregationType { get; }

Property Value

PrimaryAggregationType

ResourceUri

Gets the resource uri of the database.

public string ResourceUri { get; }

Property Value

string

Unit

Gets or sets the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'

public UnitType Unit { get; set; }

Property Value

UnitType