MetricNamespacesOperations.ListAsync Method

Definition

Lists the metric namespaces for the resource.

public virtual Azure.AsyncPageable<Azure.ResourceManager.Insights.Models.MetricNamespace> ListAsync (string resourceUri, string startTime = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ListAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Insights.Models.MetricNamespace>
override this.ListAsync : string * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Insights.Models.MetricNamespace>
Public Overridable Function ListAsync (resourceUri As String, Optional startTime As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of MetricNamespace)

Parameters

resourceUri
System.String

The identifier of the resource.

startTime
System.String

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

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

AsyncPageable<MetricNamespace>

Exceptions

System.ArgumentNullException

resourceUri is null.

Applies to