IMetricValueOperations.ListAsync 方法 (String, IList<String>, String, TimeSpan, DateTime, DateTime, CancellationToken)

 

列表指标值操作列出资源度量指标的跃点值集。

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

语法

Task<MetricValueListResponse> ListAsync(
    string resourceId,
    IList<string> metricNames,
    string metricNamespace,
    TimeSpan timeGrain,
    DateTime startTime,
    DateTime endTime,
    CancellationToken cancellationToken
)
Task<MetricValueListResponse^>^ ListAsync(
    String^ resourceId,
    IList<String^>^ metricNames,
    String^ metricNamespace,
    TimeSpan timeGrain,
    DateTime startTime,
    DateTime endTime,
    CancellationToken cancellationToken
)
abstract ListAsync : 
        resourceId:string *
        metricNames:IList<string> *
        metricNamespace:string *
        timeGrain:TimeSpan *
        startTime:DateTime *
        endTime:DateTime *
        cancellationToken:CancellationToken -> Task<MetricValueListResponse>
Function ListAsync (
    resourceId As String,
    metricNames As IList(Of String),
    metricNamespace As String,
    timeGrain As TimeSpan,
    startTime As Date,
    endTime As Date,
    cancellationToken As CancellationToken
) As Task(Of MetricValueListResponse)

参数

  • metricNamespace
    Type: System.String

    度量值的命名空间。

返回值

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

列表度量值的操作响应。

请参阅

IMetricValueOperations 接口
Microsoft.WindowsAzure.Management.Monitoring.Metrics 命名空间

返回页首