Delen via


ArmCosmosDBModelFactory.PartitionMetric Method

Definition

Initializes a new instance of PartitionMetric.

public static Azure.ResourceManager.CosmosDB.Models.PartitionMetric PartitionMetric (DateTimeOffset? startOn = default, DateTimeOffset? endOn = default, string timeGrain = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricUnitType? unit = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricName name = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricValue> metricValues = default, Guid? partitionId = default, string partitionKeyRangeId = default);
static member PartitionMetric : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricUnitType> * Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricName * seq<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricValue> * Nullable<Guid> * string -> Azure.ResourceManager.CosmosDB.Models.PartitionMetric
Public Shared Function PartitionMetric (Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional endOn As Nullable(Of DateTimeOffset) = Nothing, Optional timeGrain As String = Nothing, Optional unit As Nullable(Of CosmosDBMetricUnitType) = Nothing, Optional name As CosmosDBMetricName = Nothing, Optional metricValues As IEnumerable(Of CosmosDBMetricValue) = Nothing, Optional partitionId As Nullable(Of Guid) = Nothing, Optional partitionKeyRangeId As String = Nothing) As PartitionMetric

Parameters

startOn
Nullable<DateTimeOffset>

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

endOn
Nullable<DateTimeOffset>

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

timeGrain
String

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

unit
Nullable<CosmosDBMetricUnitType>

The unit of the metric.

name
CosmosDBMetricName

The name information for the metric.

metricValues
IEnumerable<CosmosDBMetricValue>

The metric values for the specified time window and timestep.

partitionId
Nullable<Guid>

The partition id (GUID identifier) of the metric values.

partitionKeyRangeId
String

The partition key range id (integer identifier) of the metric values.

Returns

A new PartitionMetric instance for mocking.

Applies to