Sdílet prostřednictvím


MetricNamespacesOperationsExtensions.ListAsync Method

Definition

Lists the metric namespaces for the resource.

public static System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Microsoft.Azure.Management.Monitor.Models.MetricNamespace>> ListAsync (this Microsoft.Azure.Management.Monitor.IMetricNamespacesOperations operations, string resourceUri, string startTime = default, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Management.Monitor.IMetricNamespacesOperations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<Microsoft.Azure.Management.Monitor.Models.MetricNamespace>>
<Extension()>
Public Function ListAsync (operations As IMetricNamespacesOperations, resourceUri As String, Optional startTime As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of MetricNamespace))

Parameters

operations
IMetricNamespacesOperations

The operations group for this extension method.

resourceUri
String

The identifier of the resource.

startTime
String

The ISO 8601 conform Date start time from which to query for metric namespaces.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to