ArmCosmosDBModelFactory.PartitionUsage Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The unit of the metric.
- name
- CosmosDBMetricName
The name information for the metric.
- quotaPeriod
- String
The quota period used to summarize the usage values.
- partitionKeyRangeId
- String
The partition key range id (integer identifier) of the usages.
Returns
A new PartitionUsage instance for mocking.