MetricDefinitionsOperations.List(String, String, CancellationToken) Method

Definition

Lists the metric definitions for the resource.

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

Parameters

resourceUri
System.String

The identifier of the resource.

metricnamespace
System.String

Metric namespace to query metric definitions for.

cancellationToken
System.Threading.CancellationToken

The cancellation token to use.

Returns

Pageable<MetricDefinition>

Exceptions

System.ArgumentNullException

resourceUri is null.

Applies to