共用方式為


ArmCosmosDBModelFactory.CosmosDBMetricValue Method

Definition

Initializes a new instance of CosmosDBMetricValue.

public static Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricValue CosmosDBMetricValue (int? count = default, double? average = default, double? maximum = default, double? minimum = default, DateTimeOffset? timestamp = default, double? total = default);
static member CosmosDBMetricValue : Nullable<int> * Nullable<double> * Nullable<double> * Nullable<double> * Nullable<DateTimeOffset> * Nullable<double> -> Azure.ResourceManager.CosmosDB.Models.CosmosDBMetricValue
Public Shared Function CosmosDBMetricValue (Optional count As Nullable(Of Integer) = Nothing, Optional average As Nullable(Of Double) = Nothing, Optional maximum As Nullable(Of Double) = Nothing, Optional minimum As Nullable(Of Double) = Nothing, Optional timestamp As Nullable(Of DateTimeOffset) = Nothing, Optional total As Nullable(Of Double) = Nothing) As CosmosDBMetricValue

Parameters

count
Nullable<Int32>

The number of values for the metric.

average
Nullable<Double>

The average value of the metric.

maximum
Nullable<Double>

The max value of the metric.

minimum
Nullable<Double>

The min value of the metric.

timestamp
Nullable<DateTimeOffset>

The metric timestamp (ISO-8601 format).

total
Nullable<Double>

The total value of the metric.

Returns

A new CosmosDBMetricValue instance for mocking.

Applies to