共用方式為


MetricsOperationsExtensions.List 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
String

The identifier of the resource.

odataQuery
ODataQuery<MetadataValue>

OData parameters to apply to the operation.

timespan
String

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

interval
Nullable<TimeSpan>

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

metricnames
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
String

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

top
Nullable<Int32>

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

orderby
String

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

resultType
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
String

Metric namespace to query metric definitions for.

Returns

Applies to