MetricsOperationsExtensions.List(IMetricsOperations, String, ODataQuery<MetadataValue>, String, Nullable<TimeSpan>, String, String, Nullable<Int32>, String, Nullable<ResultType>, String) Method

Definition

Lists the metric values for a resource.

public static Microsoft.Azure.Management.Monitor.Models.Response List (this Microsoft.Azure.Management.Monitor.IMetricsOperations operations, string resourceUri, Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Monitor.Models.MetadataValue> odataQuery = default, string timespan = default, TimeSpan? interval = default, string metricnames = default, string aggregation = default, int? top = default, string orderby = default, Microsoft.Azure.Management.Monitor.Models.ResultType? resultType = default, string metricnamespace = default);
static member List : Microsoft.Azure.Management.Monitor.IMetricsOperations * string * Microsoft.Rest.Azure.OData.ODataQuery<Microsoft.Azure.Management.Monitor.Models.MetadataValue> * string * Nullable<TimeSpan> * string * string * Nullable<int> * string * Nullable<Microsoft.Azure.Management.Monitor.Models.ResultType> * string -> Microsoft.Azure.Management.Monitor.Models.Response
<Extension()>
Public Function List (operations As IMetricsOperations, resourceUri As String, Optional odataQuery As ODataQuery(Of MetadataValue) = Nothing, Optional timespan As String = Nothing, Optional interval As Nullable(Of TimeSpan) = Nothing, Optional metricnames As String = Nothing, Optional aggregation As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional orderby As String = Nothing, Optional resultType As Nullable(Of ResultType) = Nothing, Optional metricnamespace As String = Nothing) As Response

Parameters

operations
IMetricsOperations

The operations group for this extension method.

resourceUri
System.String

The identifier of the resource.

odataQuery
ODataQuery<MetadataValue>

OData parameters to apply to the operation.

timespan
System.String

The timespan of the query. It is a string with the following format 'startDateTime_ISO/endDateTime_ISO'.

interval
System.Nullable<System.TimeSpan>

The interval (i.e. timegrain) of the query.

metricnames
System.String

The names of the metrics (comma separated) to retrieve. Special case: If a metricname itself has a comma in it then use %2 to indicate it. Eg: 'Metric,Name1' should be 'Metric%2Name1'

aggregation
System.String

The list of aggregation types (comma separated) to retrieve.

top
System.Nullable<System.Int32>

The maximum number of records to retrieve. Valid only if $filter is specified. Defaults to 10.

orderby
System.String

The aggregation to use for sorting results and the direction of the sort. Only one order can be specified. Examples: sum asc.

resultType
System.Nullable<ResultType>

Reduces the set of data collected. The syntax allowed depends on the operation. See the operation's description for details. Possible values include: 'Data', 'Metadata'

metricnamespace
System.String

Metric namespace to query metric definitions for.

Returns

Response

Applies to