Share via


MetricValueOperationsExtensions.ListAsync Method (IMetricValueOperations, String, IList<String>, String, TimeSpan, DateTime, DateTime)

 

The List Metric Value operation lists the metric value sets for the resource metrics.

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

Syntax

public static Task<MetricValueListResponse> ListAsync(
    this IMetricValueOperations operations,
    string resourceId,
    IList<string> metricNames,
    string metricNamespace,
    TimeSpan timeGrain,
    DateTime startTime,
    DateTime endTime
)
public:
[ExtensionAttribute]
static Task<MetricValueListResponse^>^ ListAsync(
    IMetricValueOperations^ operations,
    String^ resourceId,
    IList<String^>^ metricNames,
    String^ metricNamespace,
    TimeSpan timeGrain,
    DateTime startTime,
    DateTime endTime
)
static member ListAsync : 
        operations:IMetricValueOperations *
        resourceId:string *
        metricNames:IList<string> *
        metricNamespace:string *
        timeGrain:TimeSpan *
        startTime:DateTime *
        endTime:DateTime -> Task<MetricValueListResponse>
<ExtensionAttribute>
Public Shared Function ListAsync (
    operations As IMetricValueOperations,
    resourceId As String,
    metricNames As IList(Of String),
    metricNamespace As String,
    timeGrain As TimeSpan,
    startTime As Date,
    endTime As Date
) As Task(Of MetricValueListResponse)

Parameters

  • resourceId
    Type: System.String

    Required. The id of the resource.

  • metricNamespace
    Type: System.String

    Optional. The namespace of the metrics.

  • startTime
    Type: System.DateTime

    Required. The start time (in UTC) of the metrics.

  • endTime
    Type: System.DateTime

    Required. The end time (in UTC) of the metrics.

Return Value

Type: System.Threading.Tasks.Task<MetricValueListResponse>

The List Metric values operation response.

See Also

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

Return to top