你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmSqlModelFactory.QueryMetricInterval Method

Definition

Initializes a new instance of QueryMetricInterval.

public static Azure.ResourceManager.Sql.Models.QueryMetricInterval QueryMetricInterval (string intervalStartTime = default, Azure.ResourceManager.Sql.Models.QueryTimeGrainType? intervalType = default, long? executionCount = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.Models.QueryMetricProperties> metrics = default);
static member QueryMetricInterval : string * Nullable<Azure.ResourceManager.Sql.Models.QueryTimeGrainType> * Nullable<int64> * seq<Azure.ResourceManager.Sql.Models.QueryMetricProperties> -> Azure.ResourceManager.Sql.Models.QueryMetricInterval
Public Shared Function QueryMetricInterval (Optional intervalStartTime As String = Nothing, Optional intervalType As Nullable(Of QueryTimeGrainType) = Nothing, Optional executionCount As Nullable(Of Long) = Nothing, Optional metrics As IEnumerable(Of QueryMetricProperties) = Nothing) As QueryMetricInterval

Parameters

intervalStartTime
String

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

intervalType
Nullable<QueryTimeGrainType>

Interval type (length).

executionCount
Nullable<Int64>

Execution count of a query in this interval.

metrics
IEnumerable<QueryMetricProperties>

List of metric objects for this interval.

Returns

A new QueryMetricInterval instance for mocking.

Applies to