Share via


MetricDefinitionOperationsExtensions.ListAsync Method (IMetricDefinitionOperations, String, IList<String>, String)

 

The List Metric Definitions operation lists the metric definitions for the resource.

Namespace:   Microsoft.WindowsAzure.Management.Monitoring.Metrics
Assembly:  Microsoft.WindowsAzure.Management.Monitoring (in Microsoft.WindowsAzure.Management.Monitoring.dll)

Syntax

public static Task<MetricDefinitionListResponse> ListAsync(
    this IMetricDefinitionOperations operations,
    string resourceId,
    IList<string> metricNames,
    string metricNamespace
)
public:
[ExtensionAttribute]
static Task<MetricDefinitionListResponse^>^ ListAsync(
    IMetricDefinitionOperations^ operations,
    String^ resourceId,
    IList<String^>^ metricNames,
    String^ metricNamespace
)
static member ListAsync : 
        operations:IMetricDefinitionOperations *
        resourceId:string *
        metricNames:IList<string> *
        metricNamespace:string -> Task<MetricDefinitionListResponse>
<ExtensionAttribute>
Public Shared Function ListAsync (
    operations As IMetricDefinitionOperations,
    resourceId As String,
    metricNames As IList(Of String),
    metricNamespace As String
) As Task(Of MetricDefinitionListResponse)

Parameters

  • resourceId
    Type: System.String

    Required. The id of the resource.The resource id can be built using the resource id builder class under utilities

  • 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.

See Also

MetricDefinitionOperationsExtensions Class
Microsoft.WindowsAzure.Management.Monitoring.Metrics Namespace

Return to top