IMetricDefinitionOperations.ListAsync Method (String, IList(Of String), String, CancellationToken)
The List Metric Definitions operation lists the metric definitions for the resource.
Assembly: Microsoft.WindowsAzure.Management.Monitoring (in Microsoft.WindowsAzure.Management.Monitoring.dll)
Function ListAsync ( resourceId As String, metricNames As IList(Of String), metricNamespace As String, cancellationToken As CancellationToken ) As Task(Of MetricDefinitionListResponse)
Parameters
- resourceId
-
Type:
System.String
The id of the resource.The resource id can be built using the resource id builder class under utilities
- metricNames
-
Type:
System.Collections.Generic.IList(Of String)
The names of the metrics.
- metricNamespace
-
Type:
System.String
The namespace of the metrics.The value is either null or WindowsAzure.Availability.WindowsAzure.Availability returns the metric definitions for endpoint monitoring metrics
- cancellationToken
-
Type:
System.Threading.CancellationToken
Cancellation token.
Return Value
Type: System.Threading.Tasks.Task(Of MetricDefinitionListResponse)The List Metric Definitions operation response.
Show: