Share via


ArmCosmosDBModelFactory.CosmosDBBaseMetric Method

Definition

Initializes a new instance of CosmosDBBaseMetric.

public static Azure.ResourceManager.CosmosDB.Models.CosmosDBBaseMetric CosmosDBBaseMetric (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);
static member CosmosDBBaseMetric : Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * Nullable<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricUnitType> * Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricName * seq<Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricValue> -> Azure.ResourceManager.CosmosDB.Models.CosmosDBBaseMetric
Public Shared Function CosmosDBBaseMetric (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) As CosmosDBBaseMetric

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.

unit
Nullable<CosmosDBMetricUnitType>

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.

Returns

A new CosmosDBBaseMetric instance for mocking.

Applies to