ArmCosmosDBModelFactory.PartitionMetric 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 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.
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.
- partitionKeyRangeId
- String
The partition key range id (integer identifier) of the metric values.
Returns
A new PartitionMetric instance for mocking.