MetricNamespacesOperations.List(String, String, CancellationToken) Method

Definition

Lists the metric namespaces for the resource.

public virtual Azure.Pageable<Azure.ResourceManager.Insights.Models.MetricNamespace> List (string resourceUri, string startTime = default, System.Threading.CancellationToken cancellationToken = default);
abstract member List : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Insights.Models.MetricNamespace>
override this.List : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Insights.Models.MetricNamespace>
Public Overridable Function List (resourceUri As String, Optional startTime As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(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

Pageable<MetricNamespace>

Exceptions

System.ArgumentNullException

resourceUri is null.

Applies to