Share via


MetricDefinitionOperationsExtensions.List 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 MetricDefinitionListResponse List(
    this IMetricDefinitionOperations operations,
    string resourceId,
    IList<string> metricNames,
    string metricNamespace
)
public:
[ExtensionAttribute]
static MetricDefinitionListResponse^ List(
    IMetricDefinitionOperations^ operations,
    String^ resourceId,
    IList<String^>^ metricNames,
    String^ metricNamespace
)
static member List : 
        operations:IMetricDefinitionOperations *
        resourceId:string *
        metricNames:IList<string> *
        metricNamespace:string -> MetricDefinitionListResponse
<ExtensionAttribute>
Public Shared Function List (
    operations As IMetricDefinitionOperations,
    resourceId As String,
    metricNames As IList(Of String),
    metricNamespace As String
) As 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: Microsoft.WindowsAzure.Management.Monitoring.Metrics.Models.MetricDefinitionListResponse

The List Metric Definitions operation response.

See Also

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

Return to top