Class Metric
- 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
stringThe time grain to be used to summarize the metric values.
unit
UnitTypeThe unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'
name
MetricNameThe 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
MetricValues
Gets the metric values for the specified time window and timestep.
public IList<MetricValue> MetricValues { get; }
Property Value
Name
Gets the name information for the metric.
public MetricName Name { get; }
Property Value
StartTime
Gets the start time for the metric (ISO-8601 format).
public DateTime? StartTime { get; }
Property Value
TimeGrain
Gets the time grain to be used to summarize the metric values.
public string TimeGrain { get; }
Property Value
Unit
Gets or sets the unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'
public UnitType Unit { get; set; }