Compartilhar via


Método MetricDefinitionOperationsExtensions.ListAsync

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

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

Uso

'Uso
Dim operations As IMetricDefinitionOperations
Dim resourceId As String
Dim metricNames As IList(Of String)
Dim metricNamespace As String
Dim returnValue As Task(Of MetricDefinitionListResponse)

returnValue = MetricDefinitionOperationsExtensions.ListAsync(operations, resourceId, metricNames, metricNamespace)

Sintaxe

'Declaração
<ExtensionAttribute> _
Public Shared Function ListAsync ( _
    operations As IMetricDefinitionOperations, _
    resourceId As String, _
    metricNames As IList(Of String), _
    metricNamespace As String _
) As Task(Of MetricDefinitionListResponse)
[ExtensionAttribute] 
public static Task<MetricDefinitionListResponse> ListAsync (
    IMetricDefinitionOperations operations,
    string resourceId,
    IList<string> metricNames,
    string metricNamespace
)
[ExtensionAttribute] 
public:
static Task<MetricDefinitionListResponse^>^ ListAsync (
    IMetricDefinitionOperations^ operations, 
    String^ resourceId, 
    IList<String^>^ metricNames, 
    String^ metricNamespace
)
/** @attribute ExtensionAttribute() */ 
public static Task<MetricDefinitionListResponse> ListAsync (
    IMetricDefinitionOperations operations, 
    String resourceId, 
    IList<String> metricNames, 
    String metricNamespace
)
ExtensionAttribute 
public static function ListAsync (
    operations : IMetricDefinitionOperations, 
    resourceId : String, 
    metricNames : IList<String>, 
    metricNamespace : String
) : Task<MetricDefinitionListResponse>

Parâmetros

  • operations
    Reference to the Microsoft.WindowsAzure.Management.Monitoring.Metrics.IMetricDefinitionOperations.
  • resourceId
    Required. The id of the resource.The resource id can be built using the resource id builder class under utilities
  • metricNames
    Optional. The names of the metrics.
  • metricNamespace
    Optional. The namespace of the metrics.The value is either null or WindowsAzure.Availability.WindowsAzure.Availability returns the metric definitions for endpoint monitoring metrics

Valor de retorno

The List Metric Definitions operation response.

Segurança de thread

Qualquer membro estático público (compartilhado no Visual Basic) desse tipo é thread-safe. Não há garantia de que qualquer membro de instância seja seguro para threads.

Plataformas

Plataformas de desenvolvimento

Windows Vista, Windows 7 e Windows Server 2008

Plataformas de destino

Consulte também

Referência

Classe MetricDefinitionOperationsExtensions
Membros MetricDefinitionOperationsExtensions
Namespace Microsoft.WindowsAzure.Management.Monitoring.Metrics