다음을 통해 공유


Metric Constructors

Definition

Overloads

Metric()

Initializes a new instance of the Metric class.

Metric(Nullable<DateTime>, Nullable<DateTime>, String, String, MetricName, IList<MetricValue>)

Initializes a new instance of the Metric class.

Metric()

Initializes a new instance of the Metric class.

public Metric ();
Public Sub New ()

Applies to

Metric(Nullable<DateTime>, Nullable<DateTime>, String, String, MetricName, IList<MetricValue>)

Initializes a new instance of the Metric class.

public Metric (DateTime? startTime = default, DateTime? endTime = default, string timeGrain = default, string unit = default, Microsoft.Azure.Management.CosmosDB.Models.MetricName name = default, System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Models.MetricValue> metricValues = default);
new Microsoft.Azure.Management.CosmosDB.Models.Metric : Nullable<DateTime> * Nullable<DateTime> * string * string * Microsoft.Azure.Management.CosmosDB.Models.MetricName * System.Collections.Generic.IList<Microsoft.Azure.Management.CosmosDB.Models.MetricValue> -> Microsoft.Azure.Management.CosmosDB.Models.Metric
Public Sub New (Optional startTime As Nullable(Of DateTime) = Nothing, Optional endTime As Nullable(Of DateTime) = Nothing, Optional timeGrain As String = Nothing, Optional unit As String = Nothing, Optional name As MetricName = Nothing, Optional metricValues As IList(Of MetricValue) = Nothing)

Parameters

startTime
Nullable<DateTime>

The start time for the metric (ISO-8601 format).

endTime
Nullable<DateTime>

The end time for the metric (ISO-8601 format).

timeGrain
String

The time grain to be used to summarize the metric values.

unit
String

The unit of the metric. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond', 'Milliseconds'

name
MetricName

The name information for the metric.

metricValues
IList<MetricValue>

The metric values for the specified time window and timestep.

Applies to