Share via


IMetricDefinitionOperations.ListAsync Method

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)

Usage

'Usage
Dim instance As IMetricDefinitionOperations
Dim resourceId As String
Dim metricNames As IList(Of String)
Dim metricNamespace As String
Dim cancellationToken As CancellationToken
Dim returnValue As Task(Of MetricDefinitionListResponse)

returnValue = instance.ListAsync(resourceId, metricNames, metricNamespace, cancellationToken)

Syntax

'Declaration
Function ListAsync ( _
    resourceId As String, _
    metricNames As IList(Of String), _
    metricNamespace As String, _
    cancellationToken As CancellationToken _
) As Task(Of MetricDefinitionListResponse)
Task<MetricDefinitionListResponse> ListAsync (
    string resourceId,
    IList<string> metricNames,
    string metricNamespace,
    CancellationToken cancellationToken
)
Task<MetricDefinitionListResponse^>^ ListAsync (
    String^ resourceId, 
    IList<String^>^ metricNames, 
    String^ metricNamespace, 
    CancellationToken cancellationToken
)
Task<MetricDefinitionListResponse> ListAsync (
    String resourceId, 
    IList<String> metricNames, 
    String metricNamespace, 
    CancellationToken cancellationToken
)
function ListAsync (
    resourceId : String, 
    metricNames : IList<String>, 
    metricNamespace : String, 
    cancellationToken : CancellationToken
) : Task<MetricDefinitionListResponse>

Parameters

  • resourceId
    The id of the resource.The resource id can be built using the resource id builder class under utilities
  • metricNames
    The names of the metrics.
  • metricNamespace
    The namespace of the metrics.The value is either null or WindowsAzure.Availability.WindowsAzure.Availability returns the metric definitions for endpoint monitoring metrics
  • cancellationToken
    Cancellation token.

Return Value

The List Metric Definitions operation response.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012

Target Platforms

See Also

Reference

IMetricDefinitionOperations Interface
IMetricDefinitionOperations Members
Microsoft.WindowsAzure.Management.Monitoring.Metrics Namespace