MetricValueOperationsExtensions.List 方法
The List Metric Value operation lists the metric value sets for the resource metrics.
命名空间: Microsoft.WindowsAzure.Management.Monitoring.Metrics
程序集: Microsoft.WindowsAzure.Management.Monitoring(在 Microsoft.WindowsAzure.Management.Monitoring.dll 中)
使用
用法
Dim operations As IMetricValueOperations
Dim resourceId As String
Dim metricNames As IList(Of String)
Dim metricNamespace As String
Dim timeGrain As TimeSpan
Dim startTime As DateTime
Dim endTime As DateTime
Dim returnValue As MetricValueListResponse
returnValue = MetricValueOperationsExtensions.List(operations, resourceId, metricNames, metricNamespace, timeGrain, startTime, endTime)
语法
声明
<ExtensionAttribute> _
Public Shared Function List ( _
operations As IMetricValueOperations, _
resourceId As String, _
metricNames As IList(Of String), _
metricNamespace As String, _
timeGrain As TimeSpan, _
startTime As DateTime, _
endTime As DateTime _
) As MetricValueListResponse
[ExtensionAttribute]
public static MetricValueListResponse List (
IMetricValueOperations operations,
string resourceId,
IList<string> metricNames,
string metricNamespace,
TimeSpan timeGrain,
DateTime startTime,
DateTime endTime
)
[ExtensionAttribute]
public:
static MetricValueListResponse^ List (
IMetricValueOperations^ operations,
String^ resourceId,
IList<String^>^ metricNames,
String^ metricNamespace,
TimeSpan timeGrain,
DateTime startTime,
DateTime endTime
)
/** @attribute ExtensionAttribute() */
public static MetricValueListResponse List (
IMetricValueOperations operations,
String resourceId,
IList<String> metricNames,
String metricNamespace,
TimeSpan timeGrain,
DateTime startTime,
DateTime endTime
)
ExtensionAttribute
public static function List (
operations : IMetricValueOperations,
resourceId : String,
metricNames : IList<String>,
metricNamespace : String,
timeGrain : TimeSpan,
startTime : DateTime,
endTime : DateTime
) : MetricValueListResponse
参数
- operations
Reference to the Microsoft.WindowsAzure.Management.Monitoring.Metrics.IMetricValueOperations.
- resourceId
Required. The id of the resource.
- metricNames
Required. The names of the metrics.
- metricNamespace
Optional. The namespace of the metrics.
- timeGrain
Required. The time grain of the metrics.
- startTime
Required. The start time (in UTC) of the metrics.
- endTime
Required. The end time (in UTC) of the metrics.
返回值
The List Metric values operation response.
线程安全
此类型的所有公开静态(在 Visual Basic 中为共享)成员均为线程安全型成员。但不保证所有实例成员都是线程安全的。
平台
开发平台
Windows Vista、Windows 7 和 Windows Server 2008
目标平台
另请参阅
参考
MetricValueOperationsExtensions 类
MetricValueOperationsExtensions 成员
Microsoft.WindowsAzure.Management.Monitoring.Metrics 命名空间