Class PartitionMetric
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
The metric values for a single partition.
public class PartitionMetric : Metric
- Inheritance
-
PartitionMetric
- Inherited Members
Constructors
PartitionMetric()
Initializes a new instance of the PartitionMetric class.
public PartitionMetric()
PartitionMetric(DateTime?, DateTime?, string, UnitType, MetricName, IList<MetricValue>, string, string)
Initializes a new instance of the PartitionMetric class.
public PartitionMetric(DateTime? startTime = null, DateTime? endTime = null, string timeGrain = null, UnitType unit = null, MetricName name = null, IList<MetricValue> metricValues = null, string partitionId = null, string partitionKeyRangeId = 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.
partitionId
stringThe partition id (GUID identifier) of the metric values.
partitionKeyRangeId
stringThe partition key range id (integer identifier) of the metric values.
Properties
PartitionId
Gets the partition id (GUID identifier) of the metric values.
public string PartitionId { get; }
Property Value
PartitionKeyRangeId
Gets the partition key range id (integer identifier) of the metric values.
public string PartitionKeyRangeId { get; }