IMetricValueOperations.ListAsync Method (String, IList<String>, String, TimeSpan, DateTime, DateTime, CancellationToken)
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
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)
Parameters
resourceId
Type: System.StringThe id of the resource.
metricNames
Type: System.Collections.Generic.IList<String>The names of the metrics.
metricNamespace
Type: System.StringThe namespace of the metrics.
timeGrain
Type: System.TimeSpanThe time grain of the metrics.
startTime
Type: System.DateTimeThe start time (in UTC) of the metrics.
endTime
Type: System.DateTimeThe end time (in UTC) of the metrics.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<MetricValueListResponse>
The List Metric values operation response.
See Also
IMetricValueOperations Interface
Microsoft.WindowsAzure.Management.Monitoring.Metrics Namespace
Return to top