共用方式為


ArmCosmosDBModelFactory.CosmosDBBaseUsage Method

Definition

Initializes a new instance of CosmosDBBaseUsage.

public static Azure.ResourceManager.CosmosDB.Models.CosmosDBBaseUsage CosmosDBBaseUsage (Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricUnitType? unit = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricName name = default, string quotaPeriod = default, long? limit = default, long? currentValue = default);
static member CosmosDBBaseUsage : Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricUnitType> * Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricName * string * Nullable<int64> * Nullable<int64> -> Azure.ResourceManager.CosmosDB.Models.CosmosDBBaseUsage
Public Shared Function CosmosDBBaseUsage (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) As CosmosDBBaseUsage

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.

Returns

A new CosmosDBBaseUsage instance for mocking.

Applies to