Share via


ArmSqlModelFactory.TopQueries Method

Definition

Initializes a new instance of TopQueries.

public static Azure.ResourceManager.Sql.Models.TopQueries TopQueries (int? numberOfQueries = default, string aggregationFunction = default, string observationMetric = default, Azure.ResourceManager.Sql.Models.QueryTimeGrainType? intervalType = default, string startTime = default, string endTime = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Sql.Models.QueryStatisticsProperties> queries = default);
static member TopQueries : Nullable<int> * string * string * Nullable<Azure.ResourceManager.Sql.Models.QueryTimeGrainType> * string * string * seq<Azure.ResourceManager.Sql.Models.QueryStatisticsProperties> -> Azure.ResourceManager.Sql.Models.TopQueries
Public Shared Function TopQueries (Optional numberOfQueries As Nullable(Of Integer) = Nothing, Optional aggregationFunction As String = Nothing, Optional observationMetric As String = Nothing, Optional intervalType As Nullable(Of QueryTimeGrainType) = Nothing, Optional startTime As String = Nothing, Optional endTime As String = Nothing, Optional queries As IEnumerable(Of QueryStatisticsProperties) = Nothing) As TopQueries

Parameters

numberOfQueries
Nullable<Int32>

Requested number of top queries.

aggregationFunction
String

Aggregation function used to calculate query metrics.

observationMetric
String

Metric used to rank queries.

intervalType
Nullable<QueryTimeGrainType>

Interval type (length).

startTime
String

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

endTime
String

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

queries
IEnumerable<QueryStatisticsProperties>

List of top resource consuming queries with appropriate metric data.

Returns

A new TopQueries instance for mocking.

Applies to