Freigeben über


ArmCosmosDBModelFactory.CosmosDBBaseMetric Methode

Definition

Initialisiert eine neue instance von 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

Parameter

startOn
Nullable<DateTimeOffset>

Die Startzeit für die Metrik (ISO-8601-Format).

endOn
Nullable<DateTimeOffset>

Die Endzeit für die Metrik (ISO-8601-Format).

timeGrain
String

Das Zeitkorn, das zum Zusammenfassen der Metrikwerte verwendet werden soll.

unit
Nullable<CosmosDBMetricUnitType>

Die Einheit der Metrik.

name
CosmosDBMetricName

Die Namensinformationen für die Metrik.

metricValues
IEnumerable<CosmosDBMetricValue>

Die Metrikwerte für das angegebene Zeitfenster und den angegebenen Zeitschritt.

Gibt zurück

Eine neue CosmosDBBaseMetric instance zum Simulieren.

Gilt für: