MetricOperationsExtensions.GetMetrics Method (IMetricOperations, String, String)

 

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

Namespace:   Microsoft.Azure.Insights
Assembly:  Microsoft.Azure.Insights (in Microsoft.Azure.Insights.dll)

<ExtensionAttribute>
Public Shared Function GetMetrics (
	operations As IMetricOperations,
	resourceUri As String,
	filterString As String
) As MetricListResponse

Parameters

operations
Type: Microsoft.Azure.Insights.IMetricOperations

Reference to the Microsoft.Azure.Insights.IMetricOperations.

resourceUri
Type: System.String

Required. The resource identifier of the target resource to get metrics for.

filterString
Type: System.String

Required. An OData $filter expression that supports querying by the name, startTime, endTime and timeGrain of the metric value sets. For example, "(name.value eq 'Percentage CPU') and startTime eq 2014-07-02T01:00Z and endTime eq 2014-08-21T01:00:00Z and timeGrain eq duration'PT1H'". In the expression, startTime, endTime and timeGrain are required. Name is optional.

Return Value

Type: Microsoft.Azure.Insights.Models.MetricListResponse

The List Metric values operation response.

Return to top
Show: