Table of Contents

Class Metric

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

Metric data

public class Metric
Inheritance
Metric
Derived
Inherited Members

Constructors

Metric()

Initializes a new instance of the Metric class.

public Metric()

Metric(DateTime?, DateTime?, string, UnitType, MetricName, IList<MetricValue>)

Initializes a new instance of the Metric class.

public Metric(DateTime? startTime = null, DateTime? endTime = null, string timeGrain = null, UnitType unit = null, MetricName name = null, IList<MetricValue> metricValues = null)

Parameters

startTime DateTime?

The start time for the metric (ISO-8601 format).

endTime DateTime?

The end time for the metric (ISO-8601 format).

timeGrain string

The time grain to be used to summarize the metric values.

unit UnitType

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

name MetricName

The name information for the metric.

metricValues IList<MetricValue>

The metric values for the specified time window and timestep.

Properties

EndTime

Gets the end time for the metric (ISO-8601 format).

public DateTime? EndTime { get; }

Property Value

DateTime?

MetricValues

Gets the metric values for the specified time window and timestep.

public IList<MetricValue> MetricValues { get; }

Property Value

IList<MetricValue>

Name

Gets the name information for the metric.

public MetricName Name { get; }

Property Value

MetricName

StartTime

Gets the start time for the metric (ISO-8601 format).

public DateTime? StartTime { get; }

Property Value

DateTime?

TimeGrain

Gets the time grain to be used to summarize the metric values.

public string TimeGrain { 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