ArmCosmosDBModelFactory.CosmosDBMetricDefinition 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 CosmosDBMetricDefinition.
public static Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricDefinition CosmosDBMetricDefinition (System.Collections.Generic.IEnumerable<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricAvailability> metricAvailabilities = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricPrimaryAggregationType? primaryAggregationType = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricUnitType? unit = default, Azure.Core.ResourceIdentifier resourceId = default, Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricName name = default);
static member CosmosDBMetricDefinition : seq<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricAvailability> * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricPrimaryAggregationType> * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricUnitType> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricName -> Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricDefinition
Public Shared Function CosmosDBMetricDefinition (Optional metricAvailabilities As IEnumerable(Of CosmosDBMetricAvailability) = Nothing, Optional primaryAggregationType As Nullable(Of CosmosDBMetricPrimaryAggregationType) = Nothing, Optional unit As Nullable(Of CosmosDBMetricUnitType) = Nothing, Optional resourceId As ResourceIdentifier = Nothing, Optional name As CosmosDBMetricName = Nothing) As CosmosDBMetricDefinition
Parameters
- metricAvailabilities
- IEnumerable<CosmosDBMetricAvailability>
The list of metric availabilities for the account.
- primaryAggregationType
- Nullable<CosmosDBMetricPrimaryAggregationType>
The primary aggregation type of the metric.
The unit of the metric.
- resourceId
- ResourceIdentifier
The resource uri of the database.
- name
- CosmosDBMetricName
The name information for the metric.
Returns
A new CosmosDBMetricDefinition instance for mocking.