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)
参数
resourceId
Type: System.String该资源的 id。
metricNames
Type: System.Collections.Generic.IList<String>度量值名称。
metricNamespace
Type: System.String度量值的命名空间。
timeGrain
Type: System.TimeSpan度量值的时间粒度。
startTime
Type: System.DateTime开始时间 (UTC) 中的度量值。
endTime
Type: System.DateTime结束时间 (UTC) 中的度量值。
cancellationToken
Type: System.Threading.CancellationToken取消标记。
返回值
Type: System.Threading.Tasks.Task<MetricValueListResponse>
列表度量值的操作响应。
请参阅
IMetricValueOperations 接口
Microsoft.WindowsAzure.Management.Monitoring.Metrics 命名空间
返回页首