Delen via


ArmCosmosDBModelFactory.PartitionUsage Method

Definition

Initializes a new instance of PartitionUsage.

public static Azure.ResourceManager.CosmosDB.Models.PartitionUsage PartitionUsage (Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricUnitType? unit = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricName name = default, string quotaPeriod = default, long? limit = default, long? currentValue = default, Guid? partitionId = default, string partitionKeyRangeId = default);
static member PartitionUsage : Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricUnitType> * Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricName * string * Nullable<int64> * Nullable<int64> * Nullable<Guid> * string -> Azure.ResourceManager.CosmosDB.Models.PartitionUsage
Public Shared Function PartitionUsage (Optional unit As Nullable(Of CosmosDBMetricUnitType) = Nothing, Optional name As CosmosDBMetricName = Nothing, Optional quotaPeriod As String = Nothing, Optional limit As Nullable(Of Long) = Nothing, Optional currentValue As Nullable(Of Long) = Nothing, Optional partitionId As Nullable(Of Guid) = Nothing, Optional partitionKeyRangeId As String = Nothing) As PartitionUsage

Parameters

unit
Nullable<CosmosDBMetricUnitType>

The unit of the metric.

name
CosmosDBMetricName

The name information for the metric.

quotaPeriod
String

The quota period used to summarize the usage values.

limit
Nullable<Int64>

Maximum value for this metric.

currentValue
Nullable<Int64>

Current value for this metric.

partitionId
Nullable<Guid>

The partition id (GUID identifier) of the usages.

partitionKeyRangeId
String

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

Returns

A new PartitionUsage instance for mocking.

Applies to