MetricDefinitionOperationsExtensions.ListAsync Method (IMetricDefinitionOperations, String, IList<String>, String)
The List Metric Definitions operation lists the metric definitions for the resource.
Assembly: Microsoft.WindowsAzure.Management.Monitoring (in Microsoft.WindowsAzure.Management.Monitoring.dll)
public static Task<MetricDefinitionListResponse> ListAsync( this IMetricDefinitionOperations operations, string resourceId, IList<string> metricNames, string metricNamespace )
Parameters
- operations
-
Type:
Microsoft.WindowsAzure.Management.Monitoring.Metrics.IMetricDefinitionOperations
Reference to the Microsoft.WindowsAzure.Management.Monitoring.Metrics.IMetricDefinitionOperations.
- resourceId
-
Type:
System.String
Required. 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<String>
Optional. The names of the metrics.
- metricNamespace
-
Type:
System.String
Optional. The namespace of the metrics.The value is either null or WindowsAzure.Availability.WindowsAzure.Availability returns the metric definitions for endpoint monitoring metrics
Return Value
Type: System.Threading.Tasks.Task<MetricDefinitionListResponse>The List Metric Definitions operation response.
Show: