IMetricDefinitionOperations.ListAsync 方法

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

命名空间: Microsoft.WindowsAzure.Management.Monitoring.Metrics
程序集: Microsoft.WindowsAzure.Management.Monitoring(在 Microsoft.WindowsAzure.Management.Monitoring.dll 中)

使用

用法
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)

语法

声明
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>

参数

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

返回值

The List Metric Definitions operation response.

线程安全

此类型的所有公开静态(在 Visual Basic 中为共享)成员均为线程安全型成员。但不保证所有实例成员都是线程安全的。

平台

开发平台

Windows Vista、Windows 7 和 Windows Server 2008

目标平台

另请参阅

参考

IMetricDefinitionOperations 接口
IMetricDefinitionOperations 成员
Microsoft.WindowsAzure.Management.Monitoring.Metrics 命名空间